Greg,
This patch sets the isp116x to report overcurrent always
per-port.
Please apply,
Olav
Configure per-port overcurrent reporting.
Signed-off-by: Olav Kongas <[EMAIL PROTECTED]>
--- linux-2.6.13-rc4-tmp3/drivers/usb/host/isp116x-hcd.c.3 2005-08-03
13:24:11.274909023 +0300
+++ linux-2.6.13-rc4-tmp3/drivers/usb/host/isp116x-hcd.c 2005-08-03
13:42:45.050116338 +0300
@@ -1585,6 +1585,8 @@ static int isp116x_start(struct usb_hcd
be always set. Yet, instead, we request individual port
power switching. */
val |= RH_A_PSM;
+ /* Report overcurrent per port */
+ val |= RH_A_OCPM;
isp116x_write_reg32(isp116x, HCRHDESCA, val);
isp116x->rhdesca = isp116x_read_reg32(isp116x, HCRHDESCA);
--- linux-2.6.13-rc4-tmp3/include/linux/usb_isp116x.h.3 2005-08-03
12:42:21.494868280 +0300
+++ linux-2.6.13-rc4-tmp3/include/linux/usb_isp116x.h 2005-08-03
13:39:28.366221554 +0300
@@ -7,7 +7,7 @@
struct isp116x_platform_data {
/* Enable internal resistors on downstream ports */
unsigned sel15Kres:1;
- /* On-chip overcurrent protection */
+ /* On-chip overcurrent detection */
unsigned oc_enable:1;
/* INT output polarity */
unsigned int_act_high:1;