| From f4c60efb4fc4269eebae46ec0e348ee5ad51a49b Mon Sep 17 00:00:00 2001 |
| From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> |
| Date: Wed, 26 Apr 2017 20:50:08 +0900 |
| Subject: [PATCH 137/286] usb: gadget: udc: renesas_usb3: fix deadlock by |
| spinlock |
| |
| This patch fixes an issue that this driver is possible to cause |
| deadlock by double-spinclocked in renesas_usb3_stop_controller(). |
| So, this patch removes spinlock API calling in renesas_usb3_stop(). |
| (In other words, the previous code had a redundant lock.) |
| |
| 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> |
| (cherry picked from commit 067d6fdc558d2c43f0bfdc7af99630dd5eb08dc5) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| |
| Conflicts: |
| drivers/usb/gadget/udc/renesas_usb3.c |
| --- |
| drivers/usb/gadget/udc/renesas_usb3.c | 3 --- |
| 1 file changed, 3 deletions(-) |
| |
| --- a/drivers/usb/gadget/udc/renesas_usb3.c |
| +++ b/drivers/usb/gadget/udc/renesas_usb3.c |
| @@ -1870,9 +1870,6 @@ static int renesas_usb3_stop(struct usb_ |
| pm_runtime_put(usb3_to_dev(usb3)); |
| pm_runtime_disable(usb3_to_dev(usb3)); |
| |
| - pm_runtime_put(usb3_to_dev(usb3)); |
| - pm_runtime_disable(usb3_to_dev(usb3)); |
| - |
| return 0; |
| } |
| |