Fix a bug introdiced in r217548. According to NS DP83815 data
sheet, RX filter should be disabled before programming. Previously it was clearing wrong bits so RX filter was not disabled in RX filter configuration. Reported by: brad@OpenBSD.org
This commit is contained in:
parent
55629a87ab
commit
e01343ccd7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275816
@ -780,7 +780,7 @@ sis_rxfilter_sis(struct sis_softc *sc)
|
||||
|
||||
filter = CSR_READ_4(sc, SIS_RXFILT_CTL);
|
||||
if (filter & SIS_RXFILTCTL_ENABLE) {
|
||||
CSR_WRITE_4(sc, SIS_RXFILT_CTL, filter & ~SIS_RXFILT_CTL);
|
||||
CSR_WRITE_4(sc, SIS_RXFILT_CTL, filter & ~SIS_RXFILTCTL_ENABLE);
|
||||
CSR_READ_4(sc, SIS_RXFILT_CTL);
|
||||
}
|
||||
filter &= ~(SIS_RXFILTCTL_ALLPHYS | SIS_RXFILTCTL_BROAD |
|
||||
|
Loading…
Reference in New Issue
Block a user