Skip to contentSkip to conversation

drivers/usb/ehci: Use platform-specific accessors

PATCH RESEND Superseded Vladimir Boroda 1 participant 1 message Oct 27, 2017

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 drivers/usb/ehci: Use platform-specific accessors

This patch should have been rejected. It no longer breaks the build, but it break the functionality on big-endian systems. The readl() and writel() macros already do the endian conversion assuming the port is in little-endian format. So after this patch the EHCI registers are now read incorrectly, at least on PPC.

You should remove the le32_to_cpu() macros if using the readl() and writel() accessors.