summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>2015-10-12 12:07:34 -0400
committerJohn Stultz <john.stultz@linaro.org>2016-05-11 13:45:57 -0700
commita92eb547868a5d0dd631a9ed215373d5793bdade (patch)
treeeb5ba47707538943193f86da12be8d922c6eae8e /include/linux
parent094903a4eeb1725ca9b5ebdab72fd23a795fec7f (diff)
hikey: handle usb bus speed switch
HiKey usb host ports can unfortunately can only support one usb speed at a time. This patch adds usb speed auto-negotiation to Hikey, so by default, the ports will run at highspeed, but when low-speed devices are plugged in, the host ports will downgrade to low-speed. Change-Id: I94e0c7b85c365ce718e44e34c72f317e9a9da261 Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/usb/hcd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h
index f89c24bd53a4..bdd02cc5d856 100644
--- a/include/linux/usb/hcd.h
+++ b/include/linux/usb/hcd.h
@@ -396,6 +396,7 @@ struct hc_driver {
/* Call for power on/off the port if necessary */
int (*port_power)(struct usb_hcd *hcd, int portnum, bool enable);
+ void (*change_bus_speed)(struct usb_hcd *hcd, int speed);
};
static inline int hcd_giveback_urb_in_bh(struct usb_hcd *hcd)