summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorKevin Lo <kevlo@cvs.openbsd.org>2019-06-17 08:17:22 +0000
committerKevin Lo <kevlo@cvs.openbsd.org>2019-06-17 08:17:22 +0000
commit53823ba4a3f39005bf59fc2c212853da7a058f35 (patch)
tree86403e37f507883dbf92b8179dfde8b133f2c111 /sys/dev
parentc8388ff4a0d6a133507e0050099dfb057ff332a5 (diff)
When reloading station address via TWSI is timed out, try to reload
station address from EEPROM. From Brad.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_alc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_alc.c b/sys/dev/pci/if_alc.c
index 314dc6e2655..373a72462a6 100644
--- a/sys/dev/pci/if_alc.c
+++ b/sys/dev/pci/if_alc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_alc.c,v 1.50 2019/06/03 01:52:53 kevlo Exp $ */
+/* $OpenBSD: if_alc.c,v 1.51 2019/06/17 08:17:21 kevlo Exp $ */
/*-
* Copyright (c) 2009, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
@@ -652,6 +652,8 @@ alc_get_macaddr_816x(struct alc_softc *sc)
if ((reg & SLD_START) == 0)
break;
}
+ if (i != 0)
+ reloaded++;
}
/* Try to reload station address from EEPROM or FLASH. */