diff options
author | Kamil Debski <[email protected]> | 2014-09-09 10:44:08 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2014-09-09 10:17:38 -0700 |
commit | 0655314be0d9c54ad5f63500219485c6a9d9e5e2 (patch) | |
tree | a9e9fd072f63156234340c458255f4f0d0f8a08f /net/lapb/lapb_subr.c | |
parent | 675f0ab2fe5a0f7325208e60b617a5f32b86d72c (diff) |
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 <[email protected]>
Signed-off-by: Marek Szyprowski <[email protected]>
Signed-off-by: Robert Baldyga <[email protected]>
Cc: stable <[email protected]> # 3.16
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions