]> git.itanic.dy.fi Git - linux-stable/commit
USB: UHCI: adjust zhaoxin UHCI controllers OverCurrent bit value
authorWeitao Wang <WeitaoWang-oc@zhaoxin.com>
Sun, 23 Apr 2023 10:59:52 +0000 (18:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:30:19 +0000 (17:30 +0100)
commit0b6bf9dd2b560a53e8b1760baa3d349aadad4596
tree4fe6981828a2ece6c67f04350bd6172c62eac09b
parentd36dcf9dabde02f86a20ead6427e91a344c14cd0
USB: UHCI: adjust zhaoxin UHCI controllers OverCurrent bit value

commit dddb342b5b9e482bb213aecc08cbdb201ea4f8da upstream.

OverCurrent condition is not standardized in the UHCI spec.
Zhaoxin UHCI controllers report OverCurrent bit active off.
In order to handle OverCurrent condition correctly, the uhci-hcd
driver needs to be told to expect the active-off behavior.

Suggested-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable@vger.kernel.org
Signed-off-by: Weitao Wang <WeitaoWang-oc@zhaoxin.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20230423105952.4526-1-WeitaoWang-oc@zhaoxin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/uhci-pci.c