Re: [PATCH 1/2] usb: dwc2: Use platform endianness when accessing registers

2015-03-12 Thread Felipe Balbi
Hi, On Sat, Jan 31, 2015 at 01:18:46PM +0200, Antti Seppälä wrote: This patch switches calls to readl/writel to their dwc2_readl/dwc2_writel equivalents which preserve platform endianness. This patch is necessary to access dwc2 registers correctly on big endian systems such as the mips

Re: [PATCH 1/2] usb: dwc2: Use platform endianness when accessing registers

2015-03-11 Thread Felipe Balbi
Hi, On Wed, Mar 11, 2015 at 12:28:41AM +0100, Vincent Pelletier wrote: On Tue, 10 Mar 2015 16:05:36 -0500, Felipe Balbi ba...@ti.com wrote: I don't get it, why is it so that only mips needs this ? What's special about mips' writel/readl implementation that it can't be used here ? This

Re: [PATCH 1/2] usb: dwc2: Use platform endianness when accessing registers

2015-03-10 Thread Vincent Pelletier
Hello, On Tue, 10 Mar 2015 16:05:36 -0500, Felipe Balbi ba...@ti.com wrote: I don't get it, why is it so that only mips needs this ? What's special about mips' writel/readl implementation that it can't be used here ? This works for everybody else. Would it be a design oddity of this SoC

[PATCH 1/2] usb: dwc2: Use platform endianness when accessing registers

2015-01-31 Thread Antti Seppälä
This patch switches calls to readl/writel to their dwc2_readl/dwc2_writel equivalents which preserve platform endianness. This patch is necessary to access dwc2 registers correctly on big endian systems such as the mips based SoCs made by Lantiq. Then dwc2 can be used to replace ifx-hcd driver