mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 17:48:58 +00:00
eca8a2ee0d
Refreshed all patches. Fixes: - CVE-2019-14896 - CVE-2019-14897 Remove upstreamed: - 023-0007-crypto-crypto4xx-Fix-wrong-ppc4xx_trng_probe-ppc4xx_.patch - 001-4.22-01-MIPS-BCM63XX-drop-unused-and-broken-DSP-platform-dev.patch Compile-tested on: cns3xxx Runtime-tested on: cns3xxx Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
19 lines
618 B
Diff
19 lines
618 B
Diff
--- a/drivers/net/usb/lan78xx.c
|
|
+++ b/drivers/net/usb/lan78xx.c
|
|
@@ -2464,6 +2464,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);
|