mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
8c6f00ef4f
Refresh patches. Remove upstreamed patches: - backport/096-mips-math-emu-Write-protect-delay-slot-emulation-pages.patch - pending/510-f2fs-fix-sanity_check_raw_super-on-big-endian-machines.patch - brcm2708/950-0415-qmi_wwan-apply-SET_DTR-quirk-to-the-SIMCOM-shared-de.patch Compile-tested: ar71xx, ath79, brcm2708/bcm27{08,10}, octeon, x86/64 Runtime-tested: ar71xx, ath79, brcm2708/bcm27{08,10}, octeon, x86/64 Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
19 lines
618 B
Diff
19 lines
618 B
Diff
--- a/drivers/net/usb/lan78xx.c
|
|
+++ b/drivers/net/usb/lan78xx.c
|
|
@@ -2462,6 +2462,15 @@ static int lan78xx_reset(struct lan78xx_
|
|
|
|
ret = lan78xx_read_reg(dev, HW_CFG, &buf);
|
|
buf |= HW_CFG_MEF_;
|
|
+ if (dev->chipid == ID_REV_CHIP_ID_7800_) {
|
|
+ ret = lan78xx_read_raw_eeprom(dev, 0, 1, &sig);
|
|
+ if (!ret && sig != EEPROM_INDICATOR) {
|
|
+ /* Implies there is no external eeprom. Enable LEDS */
|
|
+ netdev_info(dev->net,
|
|
+ "No External EEPROM. Enabling LEDS\n");
|
|
+ buf |= HW_CFG_LED0_EN_ | HW_CFG_LED1_EN_;
|
|
+ }
|
|
+ }
|
|
ret = lan78xx_write_reg(dev, HW_CFG, buf);
|
|
|
|
ret = lan78xx_read_reg(dev, USB_CFG0, &buf);
|