mirror of
https://github.com/torvalds/linux.git
synced 2026-10-17 14:30:03 +02:00
The KSZ8765 is similar to the KSZ8795 but has two fiber ports.
KSZ8_PORT_STATUS_0 is used to detect fiber mode. It is currently
defined as 0x08, which is the Global Control 6 MIB Control register
and has bit 7 defined as Flush Counter.
Set KSZ8_PORT_STATUS_0 to 0x18, which is the Port 1 Status 0 register
where bit 7 is the Fiber Mode bit.
This issue was discovered when upgrading an embedded device from kernel
5.10 to 6.16. The device was using a KSZ8765 device tree configuration
and the corresponding hardware, but during boot the kernel incorrectly
detected it as a KSZ8795. The relevant boot messages were:
ksz-switch spi0.0: found switch: KSZ8795, rev 0
ksz-switch spi0.0: Device tree specifies chip KSZ8765 but found KSZ8795, please fix it!
Cc: stable@vger.kernel.org
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| ksz_common.c | ||
| ksz_common.h | ||
| ksz_dcb.c | ||
| ksz_dcb.h | ||
| ksz_ptp_reg.h | ||
| ksz_ptp.c | ||
| ksz_ptp.h | ||
| ksz_spi.c | ||
| ksz8_reg.h | ||
| ksz8.c | ||
| ksz8.h | ||
| ksz8863_smi.c | ||
| ksz9477_acl.c | ||
| ksz9477_i2c.c | ||
| ksz9477_reg.h | ||
| ksz9477_tc_flower.c | ||
| ksz9477.c | ||
| ksz9477.h | ||
| lan937x_main.c | ||
| lan937x_reg.h | ||
| lan937x.h | ||
| Makefile | ||