Skip to content
Commit 9dcb1844 authored by Cristian Birsan's avatar Cristian Birsan Committed by Greg Kroah-Hartman
Browse files

usb: gadget: udc: atmel: Fix vbus disconnect handling



commit 12b94da4 upstream.

A DMA transfer can be in progress while vbus is lost due to a cable
disconnect. For endpoints that use DMA, this condition can lead to
peripheral hang. The patch ensures that endpoints are disabled before
the clocks are stopped to prevent this issue.

Fixes: a64ef71d ("usb: gadget: atmel_usba_udc: condition clocks to vbus state")
Signed-off-by: default avatarCristian Birsan <cristian.birsan@microchip.com>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 71554161
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment