On Tue, Nov 17, 2020 at 5:37 PM Arnd Bergmann <arnd@xxxxxxxxxx> wrote: > > R-Car M2-W boots until DHCP timeout. Could be due to either sh_eth or > > the micrel PHY driver, or MDIO (replacing io{read,write}32() by > > {read,write}l() in sh_eth.c doesn't help). > > My guess would be that the sh_eth_soft_swap() logic is wrong > there, it seems to have been written in the SuperH days. Coincidentally, we both got an email from the zero-day bot today about sparse warnings in that driver: https://lore.kernel.org/lkml/202011181609.lmqkyQnN-lkp@xxxxxxxxx/ Some of these relate to suspicious endianness conversion, though the email itself was about missing __iomem annotations. Arnd