openwrt/target/linux
Sander Vanheule a93dfff10e realtek: add RTL8231 chip detection
When initialising the driver, check if the RTL8231 chip is actually
present at the specified address. If the READY_CODE value does not match
the expected value, return -ENXIO to fail probing.

This should help users to figure out which address an RTL8231 is
configured to use, if measuring pull-up/-down resistors is not an
option.

On an unsuccesful probe, the driver will log:
    [    0.795364] Probing RTL8231 GPIOs
    [    0.798978] rtl8231_init called, MDIO bus ID: 30
    [    0.804194] rtl8231-gpio rtl8231-gpio: no device found at bus address 30

When a device is found, only the first two lines will be logged:
    [    0.453698] Probing RTL8231 GPIOs
    [    0.457312] rtl8231_init called, MDIO bus ID: 31

Signed-off-by: Sander Vanheule <sander@svanheule.net>
Tested-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-02-17 19:11:42 +02:00
..
apm821xx apm821xx: WNDR4700: utilize ath9k nvmem-cells 2022-02-04 21:15:17 +01:00
archs38 kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
armvirt kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
at91 at91: drop /etc/config/firewall 2022-01-15 16:36:28 +01:00
ath25 ath25: drop Linux 5.4 support 2022-02-17 11:08:58 +01:00
ath79 kernel: bump 5.10 to 5.10.98 2022-02-11 23:17:40 +01:00
bcm27xx kernel: bump 5.10 to 5.10.99 2022-02-11 23:17:40 +01:00
bcm47xx bcm47xx: switch to kernel 5.10 2021-11-08 15:56:39 +01:00
bcm53xx kernel: bump 5.10 to 5.10.92 2022-01-16 20:51:14 +01:00
bcm63xx bcm63xx: Remove patch already in Linux stable 2022-02-01 23:34:07 +00:00
bcm4908 bcm4908: backport watchdog and I2C changes 2022-02-16 09:02:59 +01:00
bmips kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
gemini kernel: bump 5.10 to 5.10.94 2022-02-01 23:34:07 +00:00
generic kernel: backport fix for initializing skb->cb in the bridge code to 5.4 2022-02-16 20:38:06 +01:00
imx imx: bump SDMA firmware to v3.6 2022-01-13 09:33:29 +01:00
ipq40xx kernel: bump 5.10 to 5.10.100 2022-02-11 23:17:40 +01:00
ipq806x ipq806x: Enlarge D7800 flash - use netgear partition 2022-02-08 12:52:14 +01:00
kirkwood target/linux: replace egrep with grep -E 2022-02-07 00:03:27 +01:00
lantiq kernel: bump 5.10 to 5.10.94 2022-02-01 23:34:07 +00:00
layerscape kernel: bump 5.4 to 5.4.174 2022-01-28 22:06:03 +01:00
malta kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
mediatek kernel: bump 5.10 to 5.10.100 2022-02-11 23:17:40 +01:00
mpc85xx kernel: move bootargs-append patch to generic 2022-01-29 23:50:28 +09:00
mvebu target/linux: replace egrep with grep -E 2022-02-07 00:03:27 +01:00
mxs kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
octeon octeon: switch to Kernel 5.10 2022-02-11 14:24:01 +01:00
octeontx octeontx: switch to 5.10 Kernel 2022-02-05 14:39:20 +01:00
omap omap: make use of 'rootfs-part' feature 2022-01-23 19:48:20 +00:00
oxnas kernel: bump 5.10 to 5.10.85 2021-12-17 15:10:22 +01:00
pistachio kernel: bump 5.10 to 5.10.95 2022-02-01 23:34:07 +00:00
qoriq qoriq: Expand generic subtarget description 2022-01-05 10:54:59 +02:00
ramips ramips: fix NAND flash driver ECC bit position mask 2022-02-16 21:26:27 +01:00
realtek realtek: add RTL8231 chip detection 2022-02-17 19:11:42 +02:00
rockchip rockchip: disable UHS modes for NanoPi R4S 2022-01-27 01:44:28 +01:00
sunxi sunxi: make use of 'rootfs-part' feature 2022-01-23 19:48:25 +00:00
tegra kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
uml uml: make use of 'rootfs-part' feature 2022-01-23 19:48:31 +00:00
x86 x86: improve sysinfo handling of dummy values 2022-01-08 23:25:05 +01:00
zynq kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00