diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-10-11 01:01:51 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-10-13 13:41:38 -0400 |
commit | 75587f52c7b0d6c319515138a495a619b552a670 (patch) | |
tree | f032810f68a32bae18cdf1580bc0ba5422f650bd /drivers/usb/renesas_usbhs/mod_gadget.c | |
parent | 258485d9904703c4cb3a2b3ee38fe2a0cbf01f48 (diff) |
usb: gadget: renesas_usbhs: add usbhs_bus_get_speed()
current mod_gadget had got usb speed on
usbhsg_irq_dev_state() which is status change interrupt callback function.
And the usb speed data was included in its parameter.
But this style works for mod_gadget,
but doesn't work for mod_host which
isn't interrupted when device status was changed.
This patch add usbhs_bus_get_speed() to solve this issue.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs/mod_gadget.c')
-rw-r--r-- | drivers/usb/renesas_usbhs/mod_gadget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index babd90c979c1..ae7d816c23d9 100644 --- a/drivers/usb/renesas_usbhs/mod_gadget.c +++ b/drivers/usb/renesas_usbhs/mod_gadget.c | |||
@@ -353,7 +353,7 @@ static int usbhsg_irq_dev_state(struct usbhs_priv *priv, | |||
353 | struct usbhsg_gpriv *gpriv = usbhsg_priv_to_gpriv(priv); | 353 | struct usbhsg_gpriv *gpriv = usbhsg_priv_to_gpriv(priv); |
354 | struct device *dev = usbhsg_gpriv_to_dev(gpriv); | 354 | struct device *dev = usbhsg_gpriv_to_dev(gpriv); |
355 | 355 | ||
356 | gpriv->gadget.speed = usbhs_status_get_usb_speed(irq_state); | 356 | gpriv->gadget.speed = usbhs_bus_get_speed(priv); |
357 | 357 | ||
358 | dev_dbg(dev, "state = %x : speed : %d\n", | 358 | dev_dbg(dev, "state = %x : speed : %d\n", |
359 | usbhs_status_get_device_state(irq_state), | 359 | usbhs_status_get_device_state(irq_state), |