]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: start session in resume for host port
authorBin Liu <b-liu@ti.com>
Mon, 25 May 2020 02:50:45 +0000 (21:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 May 2020 11:36:30 +0000 (13:36 +0200)
commitc54f7811cc149aed05a0d18dcb834a252971fff5
tree701cee6ba25934823ed0b9c865966de79d361e6c
parent3daeec16e0ea5cc24cc56944cae918e3ce95de6f
usb: musb: start session in resume for host port

Commit f6d268a670e3 ("usb: musb: fix enumeration after resume") replaced
musb_start() in musb_resume() to not override softconnect bit, but it
doesn't restart the session for host port which was done in musb_start().
The session could be disabled in musb_suspend(), which leads the host
port doesn't stay in host mode.

So let's start the session specifically for host port in musb_resume().

Fixes: f6d268a670e3 ("usb: musb: fix enumeration after resume")
Cc: stable@vger.kernel.org
Signed-off-by: Bin Liu <b-liu@ti.com>
Link: https://lore.kernel.org/r/20200525025049.3400-3-b-liu@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c