This corrects the DELAY() time used for the short cable receive errors workaround which should be 100us, not 100ms.
>From FreeBSD and matches what NetBSD's sip(4) driver uses. I don't have any hw to test with. To anyone that might be able to test this applies to NS DP83815 controllers of the DP83815C or DP83815D revision and utilizing 100Mbps mode (no auto-neg). Index: if_sis.c =================================================================== RCS file: /home/cvs/src/sys/dev/pci/if_sis.c,v retrieving revision 1.98 diff -u -p -r1.98 if_sis.c --- if_sis.c 19 May 2010 15:27:35 -0000 1.98 +++ if_sis.c 6 Jul 2010 23:56:50 -0000 @@ -1761,7 +1761,7 @@ sis_init(void *xsc) CSR_WRITE_4(sc, NS_PHY_PAGE, 0x0001); reg = CSR_READ_4(sc, NS_PHY_DSPCFG) & 0xfff; CSR_WRITE_4(sc, NS_PHY_DSPCFG, reg | 0x1000); - DELAY(100000); + DELAY(100); reg = CSR_READ_4(sc, NS_PHY_TDATA) & 0xff; if ((reg & 0x0080) == 0 || (reg > 0xd8 && reg <= 0xff)) { #ifdef DEBUG -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.