aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Daney <ddaney@caviumnetworks.com>2011-04-27 13:54:22 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-03 13:09:32 -0400
commit14be249c969817e05c4f1ce042906e1c5be68873 (patch)
tree1045874eafc11e3ae74b993f14359249229e9552
parentbf5417152154038bbae429e2357731b1dad03328 (diff)
usb: Configure octeon2 glue logic for proper uSOF cycle period.
The reset value of the uSOF cycle period is incorrect. Set it to 60,000 bits. Without this, several commercial USB flash memory devices and hubs fail to work properly. Signed-off-by: David Daney <ddaney@caviumnetworks.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/host/octeon2-common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/octeon2-common.c b/drivers/usb/host/octeon2-common.c
index aef6364d6314..d9df423f3d12 100644
--- a/drivers/usb/host/octeon2-common.c
+++ b/drivers/usb/host/octeon2-common.c
@@ -183,6 +183,9 @@ end_clock:
183 cvmx_write_csr(CVMX_UCTLX_UPHY_PORTX_CTL_STATUS(i, 0), 183 cvmx_write_csr(CVMX_UCTLX_UPHY_PORTX_CTL_STATUS(i, 0),
184 port_ctl_status.u64); 184 port_ctl_status.u64);
185 } 185 }
186
187 /* Set uSOF cycle period to 60,000 bits. */
188 cvmx_write_csr(CVMX_UCTLX_EHCI_FLA(0), 0x20ull);
186exit: 189exit:
187 mutex_unlock(&octeon2_usb_clocks_mutex); 190 mutex_unlock(&octeon2_usb_clocks_mutex);
188} 191}