]> git.baikalelectronics.ru Git - kernel.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:56:53 +0000 (23:56 +0900)
commit4ded9b612b01f449117cc2611b117b8d2850cd49
tree1bce660a465d7ea3e468796bc8f6852ba15e7fe7
parentf51f5ab06281bfa9aeb97d52e3635770d5f29bee
usb: bdc: change state when port disconnected

commit 7fa275aa1297daebe2562449cdb376adf69eace8 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: 437e57c5103d ("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