]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: gadget: udc: renesas_usb3: fix pm_runtime functions calling
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 26 Apr 2017 11:50:07 +0000 (20:50 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 2 Jun 2017 09:44:50 +0000 (12:44 +0300)
commitcdc876877ebc3f0677b267756d4564e2a429e730
tree0fc6fc28627f6beaaf21203020af012bc9c7afd4
parentdc9217b69dd6089dcfeb86ed4b3c671504326087
usb: gadget: udc: renesas_usb3: fix pm_runtime functions calling

This patch fixes an issue that this driver is possible to access
the registers before pm_runtime_get_sync() if a gadget driver is
installed first. After that, oops happens on R-Car Gen3 environment.
To avoid it, this patch changes the pm_runtime call timing from
probe/remove to udc_start/udc_stop.

Fixes: 746bfe63bba3 ("usb: gadget: renesas_usb3: add support for Renesas USB3.0 peripheral controller")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/renesas_usb3.c