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 78 forks source link

can't compile KSZ9878 linux-4.19 without CONFIG_KSZ_HSR #96

Open gilbertwaltoon opened 1 year ago

gilbertwaltoon commented 1 year ago

ksz_sw_9897.c line 14188 needs HSR_HLEN to compile:

if (sw->features & HSR_HW)
        headlen = HSR_HLEN;

But HSR_HLEN is defined in hsr_main.h (via ksz_hsr.h) and this is only included if

#ifdef CONFIG_KSZ_HSR
#include "ksz_hsr.h"
#endif

If CONFIG_KSZ_HSR is not set, I get compilation errors. Is this a bug?

triha2work commented 1 year ago

Please try the updated switch driver.