]> www.infradead.org Git - users/dwmw2/linux.git/commit
usb: bdc: change state when port disconnected
authorJustin Chen <justinpopo6@gmail.com>
Wed, 5 Oct 2022 19:13:55 +0000 (12:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Nov 2022 14:57:49 +0000 (23:57 +0900)
commit2bc4f99ee24391bc05f0f464c4414ab0ad7b4f74
tree38aa471253e4985a1b65eb463a4f4dbe532caafc
parente440957f9c8bedae784f718c42207af222c25818
usb: bdc: change state when port disconnected

commit fb8f60dd1b67520e0e0d7978ef17d015690acfc1 upstream.

When port is connected and then disconnected, the state stays as
configured. Which is incorrect as the port is no longer configured,
but in a not attached state.

Signed-off-by: Justin Chen <justinpopo6@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Fixes: efed421a94e6 ("usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC")
Cc: stable <stable@kernel.org>
Link: https://lore.kernel.org/r/1664997235-18198-1-git-send-email-justinpopo6@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/bdc/bdc_udc.c