kern: usb uhci: fix test of ports in init()
This commit is contained in:
parent
75b451ea1c
commit
7385e37b13
|
@ -2235,7 +2235,7 @@ init(Hci *hp)
|
||||||
/* guess other ports */
|
/* guess other ports */
|
||||||
for(i = 2; i < 6; i++){
|
for(i = 2; i < 6; i++){
|
||||||
sts = INS(PORT(i));
|
sts = INS(PORT(i));
|
||||||
if(sts != 0xFFFF && (sts & PSreserved1) == 1){
|
if(sts != 0xFFFF && (sts & PSreserved1) == PSreserved1){
|
||||||
dprint(" psc%d %#ux", i, sts);
|
dprint(" psc%d %#ux", i, sts);
|
||||||
hp->nports++;
|
hp->nports++;
|
||||||
}else
|
}else
|
||||||
|
|
Loading…
Reference in New Issue