From: Wu, Hao Date: Thu, 8 Mar 2012 12:36:31 +0000 (+0800) Subject: usb/penwell_otg: extend ulpi access timeout value X-Git-Tag: 2.1b_release~1233 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8132918b0e3e75b226cfa814511d06daa516e400;p=kernel%2Fkernel-mfld-blackbay.git usb/penwell_otg: extend ulpi access timeout value BZ: 26396 This patch extends the ulpi access timeout to 2ms, as we found sometime the ulpi access response is slow and cause unexpected timeout event. The unexpected timeout event will cause USB HW/SW stack reset and make some compliance test failed due to reset. Change-Id: I03a54e9f8329ae116d81f18954130b9da64847f2 Signed-off-by: Wu, Hao Reviewed-on: http://android.intel.com:8080/37985 Reviewed-by: Li, Wenji Reviewed-by: Zhuang, Jin Can Reviewed-by: Tang, Richard Reviewed-by: Meng, Zhe Tested-by: Meng, Zhe Reviewed-by: buildbot Tested-by: buildbot --- diff --git a/drivers/usb/otg/penwell_otg.c b/drivers/usb/otg/penwell_otg.c index 2b97c8f..5885b31 100644 --- a/drivers/usb/otg/penwell_otg.c +++ b/drivers/usb/otg/penwell_otg.c @@ -665,8 +665,8 @@ penwell_otg_ulpi_read(struct intel_mid_otg_xceiv *iotg, u8 reg, u8 *val) val32 = ULPI_RUN | reg << 16; writel(val32, pnw->iotg.base + CI_ULPIVP); - /* Polling at least 1ms for read operation to complete*/ - count = 200; + /* Polling at least 2ms for read operation to complete*/ + count = 400; while (count) { val32 = readl(pnw->iotg.base + CI_ULPIVP); @@ -701,8 +701,8 @@ penwell_otg_ulpi_write(struct intel_mid_otg_xceiv *iotg, u8 reg, u8 val) val32 = ULPI_RUN | ULPI_RW | reg << 16 | val; writel(val32, pnw->iotg.base + CI_ULPIVP); - /* Polling at least 1ms for write operation to complete*/ - count = 200; + /* Polling at least 2ms for write operation to complete*/ + count = 400; while (count && penwell_otg_ulpi_run()) { count--;