]> git.karo-electronics.de Git - linux-beck.git/commit
usb: dwc2: embed storage for reg backup in struct dwc2_hsotg
authorMian Yousaf Kaukab <yousaf.kaukab@intel.com>
Mon, 29 Jun 2015 09:05:30 +0000 (11:05 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 6 Jul 2015 17:34:08 +0000 (12:34 -0500)
commitcc1e204cb092da8495fe2c24bdc4543c259d6b34
treedd0b348d86062aeaabe0794e4395db868c5eca89
parentb5a468a6aa1ca9176594cd603760d80fa1e8b15e
usb: dwc2: embed storage for reg backup in struct dwc2_hsotg

Register backup function can be called from atomic context. Instead
of using atomic memory pool, embed backup storage space in
struct dwc2_hsotg.

Also add a valid flag in each struct as NULL pointer can't be used as
the content validity check any more.

Acked-by: John Youn <johnyoun@synopsys.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/core.c
drivers/usb/dwc2/core.h