Microchip-Ethernet / EVB-KSZ9477

Repository for using Microchip EVB-KSZ9477 board. Product Supported: KSZ9477, KSZ9567, KSZ9897, KSZ9896, KSZ8567, KSZ8565, KSZ9893, KSZ9563, KSZ8563, LAN9646, Phys(KSZ9031/9131, LAN8770
76 stars 79 forks source link

KSZ9896 EEE is not disabled #92

Open daisukes opened 1 year ago

daisukes commented 1 year ago

I have been using Jetson Mate, which has a KSZ9896 chip configured by the i2c driver. I recently updated the driver for Linux kernel 5.10 but had problems with link drops.

According to the errata page 3, Energy Efficient Ethernet (EEE) feature select must be manually disabled. However, the driver does not disable EEE if the sw->features does not have the PTP_HW = BIT(31) flag.

https://github.com/Microchip-Ethernet/EVB-KSZ9477/blob/42b24539e4289ccfa9ad16c2be171e893f75b750/KSZ/linux-drivers/ksz9897/linux-5.10/drivers/net/ethernet/micrel/ksz_sw_9897.c#L8855-L8856

I don't have problems with link drops if I remove these lines.