summaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs
diff options
context:
space:
mode:
authorHemant Kumar <hemantk@codeaurora.org>2018-01-09 12:30:53 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-09 16:18:50 +0100
commitce5bf9a50daf2d9078b505aca1cea22e88ecb94a (patch)
treea49ee3c4a5ad6477fe0265d44847737442bb0e8f /drivers/usb/renesas_usbhs
parent7c0143153cd33a0a267908ca419e2adc40ee513a (diff)
downloadop-kernel-dev-ce5bf9a50daf2d9078b505aca1cea22e88ecb94a.zip
op-kernel-dev-ce5bf9a50daf2d9078b505aca1cea22e88ecb94a.tar.gz
usb: f_fs: Prevent gadget unbind if it is already unbound
Upon usb composition switch there is possibility of ep0 file release happening after gadget driver bind. In case of composition switch from adb to a non-adb composition gadget will never gets bound again resulting into failure of usb device enumeration. Fix this issue by checking FFS_FL_BOUND flag and avoid extra gadget driver unbind if it is already done as part of composition switch. This fixes adb reconnection error reported on Android running v4.4 and above kernel versions. Verified on Hikey running vanilla v4.15-rc7 + few out of tree Mali patches. Reviewed-at: https://android-review.googlesource.com/#/c/582632/ Cc: Felipe Balbi <balbi@kernel.org> Cc: Greg KH <gregkh@linux-foundation.org> Cc: Michal Nazarewicz <mina86@mina86.com> Cc: John Stultz <john.stultz@linaro.org> Cc: Dmitry Shmidt <dimitrysh@google.com> Cc: Badhri <badhri@google.com> Cc: Android Kernel Team <kernel-team@android.com> Cc: stable@vger.kernel.org Signed-off-by: Hemant Kumar <hemantk@codeaurora.org> [AmitP: Cherry-picked it from android-4.14 and updated the commit log] Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/renesas_usbhs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud