linux/drivers/usb/dwc2
Kamil Debski 0655314be0 usb: dwc2/gadget: fix phy disable sequence
When the driver is removed s3c_hsotg_phy_disable is called three times
instead of once. This results in decreasing of the phy reference counter
below zero and thus consecutive inserts of the module fails.

This patch removes calls to s3c_hsotg_phy_disable from s3c_hsotg_remove
and s3c_hsotg_udc_stop.

s3c_hsotg_udc_stop is called from udc-core.c only after
usb_gadget_disconnect, which in turn calls s3c_hsotg_pullup, which
already calls s3c_hsotg_phy_disable.

s3c_hsotg_remove must be called only after udc_stop, so there is no
point in disabling phy once again there.

Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Cc: stable <stable@vger.kernel.org> # 3.16
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-09 10:17:38 -07:00
..
core_intr.c usb: dwc2: handle the Host Port Interrupt when it occurs in device mode 2014-02-07 14:34:38 -08:00
core.c usb: dwc2: Add function to calculate correct FIFO sizes 2014-05-27 15:42:42 -07:00
core.h usb: dwc2: move s3c-hsotg data structures 2014-04-24 13:12:43 -07:00
gadget.c usb: dwc2/gadget: fix phy disable sequence 2014-09-09 10:17:38 -07:00
hcd_ddma.c
hcd_intr.c usb: dwc2: fix dereference before NULL check 2014-02-15 12:26:14 -08:00
hcd_queue.c
hcd.c usb: dwc2: fix memory corruption in dwc2 driver 2014-02-04 12:59:14 -08:00
hcd.h
hw.h usb: dwc2: add defines to support s3c-hsotg driver 2014-04-24 13:12:43 -07:00
Kconfig usb: dwc2/s3c-hsotg: move s3c-hsotg into dwc2 directory 2014-04-24 13:12:43 -07:00
Makefile usb: dwc2/s3c-hsotg: move s3c-hsotg into dwc2 directory 2014-04-24 13:12:43 -07:00
pci.c
platform.c usb: dwc2: Disable descriptor dma mode by default 2014-05-27 15:42:41 -07:00