Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] USB: isp116x-hcd: per-port overcurrent reporting

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>

authored by

Olav Kongas and committed by
Greg Kroah-Hartman
9d233d9f 165c0f39

+3 -1
+2
drivers/usb/host/isp116x-hcd.c
··· 1585 1585 be always set. Yet, instead, we request individual port 1586 1586 power switching. */ 1587 1587 val |= RH_A_PSM; 1588 + /* Report overcurrent per port */ 1589 + val |= RH_A_OCPM; 1588 1590 isp116x_write_reg32(isp116x, HCRHDESCA, val); 1589 1591 isp116x->rhdesca = isp116x_read_reg32(isp116x, HCRHDESCA); 1590 1592
+1 -1
include/linux/usb_isp116x.h
··· 7 7 struct isp116x_platform_data { 8 8 /* Enable internal resistors on downstream ports */ 9 9 unsigned sel15Kres:1; 10 - /* On-chip overcurrent protection */ 10 + /* On-chip overcurrent detection */ 11 11 unsigned oc_enable:1; 12 12 /* INT output polarity */ 13 13 unsigned int_act_high:1;