]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] USB: isp116x-hcd: per-port overcurrent reporting
authorOlav Kongas <ok@artecdesign.ee>
Thu, 4 Aug 2005 13:54:08 +0000 (16:54 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 8 Sep 2005 23:22:48 +0000 (16:22 -0700)
This patch sets the isp116x to report overcurrent always per-port.

Signed-off-by: Olav Kongas <ok@artecdesign.ee>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/isp116x-hcd.c
include/linux/usb_isp116x.h

index a3e881c60026b61c2389314a2cb2f0031d7ec2c6..aeddef7a12afe0ec5d8ad668a1ebd1bbe063406b 100644 (file)
@@ -1585,6 +1585,8 @@ static int isp116x_start(struct usb_hcd *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);
 
index c028d724be94424ab9c87ff43163ed67f715cda9..8f0b3c226968c12ee059d4eade363ec297fe491b 100644 (file)
@@ -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;