summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoshihiro Shimoda <shimoda.yoshihiro@renesas.com>2008-11-11 16:47:21 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-11-12 12:29:57 +0900
commitade7a9b4ccd20ab8159c77a0abd20552f2d6b06c (patch)
tree4edbb341635bd1aa069a284abd309c66c0029179
parent51ee3d92bfb983790b9ed576c22f59d42adff329 (diff)
downloadop-kernel-dev-ade7a9b4ccd20ab8159c77a0abd20552f2d6b06c.zip
op-kernel-dev-ade7a9b4ccd20ab8159c77a0abd20552f2d6b06c.tar.gz
usb: r8a66597-hcd: fix wrong data access in SuperH on-chip USB
When I used SuperH on-chip USB, there was the problem that accessed r8a66597_root_hub which was not allocated. Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--drivers/usb/host/r8a66597-hcd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c
index c18d879..2376f24 100644
--- a/drivers/usb/host/r8a66597-hcd.c
+++ b/drivers/usb/host/r8a66597-hcd.c
@@ -1763,11 +1763,12 @@ static void r8a66597_timer(unsigned long _r8a66597)
{
struct r8a66597 *r8a66597 = (struct r8a66597 *)_r8a66597;
unsigned long flags;
+ int port;
spin_lock_irqsave(&r8a66597->lock, flags);
- r8a66597_root_hub_control(r8a66597, 0);
- r8a66597_root_hub_control(r8a66597, 1);
+ for (port = 0; port < R8A66597_MAX_ROOT_HUB; port++)
+ r8a66597_root_hub_control(r8a66597, port);
spin_unlock_irqrestore(&r8a66597->lock, flags);
}
OpenPOWER on IntegriCloud