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

Avoid patching kernel to make KSZ8895 SPI driver compile #75

Open emilm opened 3 years ago

emilm commented 3 years ago

I see that the kernel maintainers have removed

int skb_append_datato_frags(struct sock *sk, struct sk_buff *skb,
                int getfrag(void *from, char *to, int offset,
                    int len, int odd, struct sk_buff *skb),
                void *from, int length);

https://github.com/Microchip-Ethernet/EVB-KSZ9477/blob/master/KSZ/linux-drivers/ksz8895/linux-5.3/include/linux/skbuff.h#L1151

Is it possible to change the code to work without this function? Thanks. I am on kernel 5.4

triha2work commented 3 years ago

There are updated drivers for 5.4 and 5.10 in linux-drivers.

emilm commented 3 years ago

Thanks @triha2work was it added 12 days ago?

triha2work commented 3 years ago

The switch drivers were updated, and then the MAC driver patches were updated to use the mainline kernels instead of the ones from linux4sam.

emilm commented 3 years ago

It does not compile for 5.4:

ksz_sw_8895.c:3686:11: error: 'struct ksz_port_info' has no member named 'lpa'