mirror of
https://github.com/torvalds/linux.git
synced 2025-11-02 01:29:02 +02:00
At reset, the KSZ8463 uses a strap-based configuration to set SPI as bus interface. SPI is the only bus supported by the driver. If the required pull-ups/pull-downs are missing (by mistake or by design to save power) the pins may float and the configuration can go wrong preventing any communication with the switch. Introduce a ksz8463_configure_straps_spi() function called during the device reset. It relies on the 'straps-rxd-gpios' OF property and the 'reset' pinmux configuration to enforce SPI as bus interface. Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Bastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com> Link: https://patch.msgid.link/20250918-ksz-strap-pins-v3-3-16662e881728@bootlin.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| ksz8.c | ||
| ksz8.h | ||
| ksz8_reg.h | ||
| ksz8863_smi.c | ||
| ksz9477.c | ||
| ksz9477.h | ||
| ksz9477_acl.c | ||
| ksz9477_i2c.c | ||
| ksz9477_reg.h | ||
| ksz9477_tc_flower.c | ||
| ksz_common.c | ||
| ksz_common.h | ||
| ksz_dcb.c | ||
| ksz_dcb.h | ||
| ksz_ptp.c | ||
| ksz_ptp.h | ||
| ksz_ptp_reg.h | ||
| ksz_spi.c | ||
| lan937x.h | ||
| lan937x_main.c | ||
| lan937x_reg.h | ||
| Makefile | ||