[PATCH 2/7] ARM: shmobile: r8a7779: Use ioremap() to map INTC2 registers

Arnd Bergmann arnd at kernel.org
Wed Nov 18 03:30:27 EST 2020


On Tue, Nov 17, 2020 at 5:37 PM Arnd Bergmann <arnd at kernel.org> 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@intel.com/

Some of these relate to suspicious endianness conversion, though
the email itself was about missing __iomem annotations.

       Arnd



More information about the linux-arm-kernel mailing list