openwrt/target/linux/ar71xx/patches-4.14
Koen Vandeputte 42f158314e ar71xx: fix switch probing on kernel 4.14
The bump to 4.14 changed the way mdio probes behind switches.

While the board_info is added to the list, the code that actually inserted
the list info into the phydev structure was missing.

This resulted in non-working ethernet ports.

Re-add it to fix switch probing.
This mimics the exact behaviour as it was in kernel 4.9.

Before:

[    1.066007] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[    1.073409] Atheros AR8216/AR8236/AR8316: probe of ag71xx-mdio.0:00 failed with error -22
[    1.102455] libphy: ag71xx_mdio: probed
[    1.737938] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Generic PHY]
[    1.747994] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    2.377642] ag71xx-mdio.1: Found an AR934X built-in switch
[    2.429938] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII

After:

[   11.163357] libphy: Fixed MDIO Bus: probed
[   11.319898] libphy: ag71xx_mdio: probed
[   11.360844] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[   12.447398] libphy: ag71xx_mdio: probed
[   13.077402] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[   13.088989] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[   13.717716] ag71xx-mdio.1: Found an AR934X built-in switch
[   13.769990] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2018-09-07 17:21:24 +02:00
..
001-spi-cs-gpio.patch
002-add_back_gpio_function_select.patch
004-register_gpio_driver_earlier.patch
100-MIPS-ath79-Avoid-using-unitialized-reg-variable.patch
106-02-MIPS-ath79-do-AR724x-PCIe-root-complex-init.patch
200-MIPS-ath79-fix-ar933x-wmac-reset.patch
201-ar913x_wmac_external_reset.patch
202-MIPS-ath79-ar934x-wmac-revision.patch
203-MIPS-ath79-fix-restart.patch
220-add_cpu_feature_overrides.patch
300-MIPS-add-MIPS_MACHINE_NONAME-macro.patch
310-lib-add-rle-decompression.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
401-mtd-physmap-add-lock-unlock.patch
402-mtd-SST39VF6401B-support.patch
404-mtd-cybertan-trx-parser.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
405-mtd-tp-link-partition-parser.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
407-mtd-m25p80-allow-to-pass-probe-types-via-platform-data.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
408-mtd-redboot_partition_scan.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
409-mtd-rb4xx_nand_driver.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
410-mtd-rb750-nand-driver.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
411-mtd-cfi_cmdset_0002-force-word-write.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
413-mtd-ar934x-nand-driver.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
414-mtd-rb91x-nand-driver.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
420-net-ar71xx_mac_driver.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
423-dsa-add-88e6063-driver.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
430-drivers-link-spi-before-mtd.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
432-spi-rb4xx-spi-driver.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
433-spi-rb4xx-cpld-driver.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
435-spi-vsc7385_driver.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
440-leds-wndr3700-usb-led-driver.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
441-leds-rb750-led-driver.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
442-leds-gpio-allow-to-use-OPEN_-DRAIN-SOURCE-flags-with.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
450-gpio-nxp-74hc153-gpio-chip-driver.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
451-gpio-74x164-improve-platform-device-support.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
452-gpio-add-gpio-latch-driver.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
461-spi-ath79-add-fast-flash-read.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
470-MIPS-ath79-swizzle-pci-address-for-ar71xx.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
490-usb-ehci-add-quirks-for-qca-socs.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
500-MIPS-fw-myloader.patch kernel: bump 4.14 to 4.14.68 2018-09-07 17:21:24 +02:00
501-MIPS-ath79-add-mac-argument-to-ath79_register_wmac.patch
504-MIPS-ath79-add-ath79_device_reset_get.patch
505-MIPS-ath79-add-ath79_gpio_function_select.patch
506-MIPS-ath79-prom-parse-redboot-args.patch
507-MIPS-ath79-prom-add-myloader-support.patch
508-MIPS-ath79-prom-image-command-line-hack.patch
509-MIPS-ath79-process-board-kernel-option.patch
510-MIPS-ath79-init-gpio-pin-of-wmac-device.patch
520-MIPS-ath79-enable-UART-function.patch
521-MIPS-ath79-enable-UART-for-early_serial.patch
522-MIPS-ath79-add-ath79_wmac_register_simple-helper.patch
523-MIPS-ath79-OTP-support.patch
524-MIPS-ath79-add-ath79_wmac_disable_25ghz-helpers.patch
525-MIPS-ath79-enable-qca-usb-quirks.patch
601-MIPS-ath79-add-more-register-defines.patch
602-MIPS-ath79-add-openwrt-stuff.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
603-MIPS-ath79-ap121-fixes.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
604-MIPS-ath79-no-of.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
605-MIPS-ath79-db120-fixes.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
606-MIPS-ath79-pb44-fixes.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
607-MIPS-ath79-ubnt-xm-fixes.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
608-MIPS-ath79-ubnt-xm-add-more-boards.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
609-MIPS-ath79-ap136-fixes.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
611-MIPS-ath79-wdt-timeout.patch
612-MIPS-ath79-set-buffalo-txgain.patch
613-MIPS-ath79-add-ath79_wmac_setup_ext_lna_gpio-helper.patch
620-MIPS-ath79-add-support-for-QCA953x-SoC.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
621-MIPS-ath79-add-support-for-QCA956x-SoC.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
622-MIPS-ath79-add-more-register-defines-for-QCA956x-SoC.patch
630-MIPS-ath79-fix-chained-irq-disable.patch
631-MIPS-ath79-wmac-enable-set-led-pin.patch
632-MIPS-ath79-gpio-enable-set-direction.patch
640-MIPS-ath79-add-QCA955x-wmac-reset.patch
700-MIPS-ath79-add-openwrt-Kconfig.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
701-MIPS-ath79-add-routerboard-detection.patch
702-MIPS-ath79-fixup-routerboot-board-parameter.patch
739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
740-MIPS-ath79-add-PCI-for-QCA953x-SoC.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
741-MIPS-ath79-add-PCI-for-QCA9556-SoC.patch
818-MIPS-ath79-add-nu801-led-driver.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
820-MIPS-ath79-add_gpio_function2_setup.patch
900-mdio_bitbang_ignore_ta_value.patch
901-phy-mdio-bitbang-prevent-rescheduling-during-command.patch
902-at803x-add-reset-gpio-pdata.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
903-at803x-add-sgmii-aneg-override-pdata.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
910-unaligned_access_hacks.patch kernel: bump 4.14 to 4.14.67 2018-08-28 23:05:39 +02:00
920-usb-chipidea-AR933x-platform-support.patch
921-MIPS-ath79-add-even-more-register-defines-for-QCA956x-SoC.patch
930-chipidea-pullup.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
940-qca955x-add-more-registers.patch kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
950-add-boardinfo-platform-data.patch ar71xx: fix switch probing on kernel 4.14 2018-09-07 17:21:24 +02:00