usb: musb: Check devctl status again for a spurious session request
authorTony Lindgren <tony@atomide.com>
Tue, 18 May 2021 15:06:15 +0000 (18:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 May 2021 12:07:57 +0000 (14:07 +0200)
commit7d076c2f5590e7a2eaba73ded1dbf553fa15a6af
tree9f0518163047ec4e15dd1cc199353ef6855a3254
parent62d472d8ad886d3e3fe2da20ba0965f8628513db
usb: musb: Check devctl status again for a spurious session request

On start-up, we can get a spurious session request interrupt with nothing
connected. After that the devctl session bit will silently clear, but the
musb hardware is never idled until a cable is plugged in, or the glue
layer module is reloaded.

Let's just check the session bit again in 3 seconds in peripheral mode
to catch the issue.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20210518150615.53464-1-tony@atomide.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c