Skip to content

Commit

Permalink
[PATCH] USB: isp116x-hcd: per-port overcurrent reporting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Olav Kongas authored and Greg Kroah-Hartman committed Sep 8, 2005
1 parent 165c0f3 commit 9d233d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions drivers/usb/host/isp116x-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion include/linux/usb_isp116x.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9d233d9

Please sign in to comment.