summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorZixun LI <[email protected]>2025-06-02 17:45:08 +0200
committerMattijs Korpershoek <[email protected]>2025-06-16 11:56:19 +0200
commitca036308a513759e3e4cbe9f8191861c3232c611 (patch)
tree37f9aef04a97543fb32cb70211aa12146d6673b6 /include/linux
parent9de873b4c3098c0662d4adaeb1cc31be4e6d2688 (diff)
usb: gadget: atmel: reliably generate disconnect by disabling controller
Contrary to the datasheet, setting both DETACH and PULLD_DIS bits to 1 does not always drive the DP and DM lines to high-impedance. This prevents the host from reliably detecting a USB disconnect and subsequent reconnect. The symptom is that the first gadget command (e.g., dhcp) succeeds, while subsequent commands (e.g., nfs) fail. Disabling and re-enabling the controller entirely, instead of toggling the PULLD_DIS bit, reliably generates a disconnect event. The Linux driver works correctly because gadget_disconnect/gadget_connect are always followed by gadget_udc_start/gadget_udc_stop. In U-Boot pullup() is used solely. This behavior has been observed on the SAM9X60-Curiosity and AT91SAM9G25-EK boards and has been reported to Microchip. Signed-off-by: Zixun LI <[email protected]> Link: https://lore.kernel.org/r/[email protected] [mkorpershoek: reworded commit title + comment to usba_udc_pullup()] Signed-off-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions