Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1-v4 Add davicom dm9051 spi ethernet driver. The driver work for the device platform with spi master Test ok with raspberry pi 2 and pi 4, the spi configure used in my raspberry pi 4 is spi0.1, spi speed 31200000, and INT by pin 26. v5 Work to eliminate the wrappers to be clear for read, swapped to phylib for phy connection tasks. Tested with raspberry pi 4. Test for netwroking function, CAT5 cable unplug/plug and also ethtool detect for link state, and all are ok. v6 remove the redundant code that phylib has support, adjust to be the reasonable sequence, fine tune comments, add comments for pause function support Tested with raspberry pi 4. Test for netwroking function, CAT5 cable unplug/plug and also ethtool detect for link state, and all are ok. v7 read/write registers must return error code to the callet, add to enable pause processing v8 not parmanently set MAC by .ndo_set_mac_address correct rx function such as clear ISR, inblk avoid stack buffer, simple skb buffer process and easy use netif_rx_ni. simplely queue init and wake the queues, limit the start_xmit function use netif_stop_queue. descript that schedule delay is essential for tx_work and rxctrl_work eliminate ____cacheline_aligned and add static int msg_enable. v9 use phylib, no need 'select MII' in Kconfig, make it clear in dm9051_xfer when using spi_sync, improve the registers read/write so that error code return as far as possible up the call stack. v10 use regmap APIs for SPI and MDIO, modify to correcting such as include header files and program check styles Cc: Jakub Kicinski <kuba@kernel.org> Cc: Andrew Lunn <andrew@lunn.ch> Cc: Leon Romanovsky <leon@kernel.org> Cc: andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Joseph CHAMG <josright123@gmail.com>
- Loading branch information