From: Jean-Marie Verdun <ver...@hpe.com> v4 Fix some comment typos Remove unnecessary IFDEF Drop w5500_eth_tx_hand_f definition and struct element as they are unused Reorder function to avoid predefinition Reorder variable definition per data size in functions Fix return value with spi_read and spi_read16 Drop return value definition into spi_write16 Define MAX_PACKET_SZ to 9000 bytes Use dynamic allocation for readbulk Realign readpoll_timeout call Add comment to enhance loop clarity on receive buffer length Remove mode variable into write_hwaddr Invert some direct if loop for indirect as to reduce code complexity Remove imr variable into w5500_socket_intr_mask function Drop rtr variable into probe function
v3 Remove Global definition Replace polling by read_poll_timeout Remove unused function Add empty lines before returns statement Remove declaration and code mix Switch to dev_dbg Relocate read/write helpers to top of file Remove include and incorporate it into the code v2 Rebase source tree to create patch against top of tree and avoid issues with Kconfig and Makefile Recheck checkpatch.pl output as to minimize issues to CHECK state CHECK issues reported are coming from copy/paste section from the linux kernel driver, and aren't processed as being strong issues. command ran scripts/checkpatch.pl --no-tree v2-0001-Initial-support-for-Wiznet-W5500.patch Jean-Marie Verdun (1): Initial support for Wiznet W5500 drivers/net/Kconfig | 9 + drivers/net/Makefile | 1 + drivers/net/w5500.c | 584 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 594 insertions(+) create mode 100644 drivers/net/w5500.c -- 2.43.0