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

2015-09-18 Thread John Youn
From: 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 repl

Re: [RFC PATCH] usb: dwc2: Use platform endianness when accessing registers

2015-01-29 Thread John Youn
On 01/28/2015 02:02 AM, Antti Seppälä wrote: > On 27 January 2015 at 04:18, John Youn wrote: >>> From: Vincent Pelletier [mailto:plr.vinc...@gmail.com] >>> Sent: Friday, January 23, 2015 12:19 AM >>> >>> On Fri, 23 Jan 2015 02:38:37 +, John Youn >>> wrote: Having the __raw functions ever

Re: [RFC PATCH] usb: dwc2: Use platform endianness when accessing registers

2015-01-28 Thread Antti Seppälä
On 27 January 2015 at 04:18, John Youn wrote: >> From: Vincent Pelletier [mailto:plr.vinc...@gmail.com] >> Sent: Friday, January 23, 2015 12:19 AM >> >> On Fri, 23 Jan 2015 02:38:37 +, John Youn >> wrote: >> > Having the __raw functions everywhere is not pretty and probably not a >> > good id

RE: [RFC PATCH] usb: dwc2: Use platform endianness when accessing registers

2015-01-26 Thread John Youn
> From: Vincent Pelletier [mailto:plr.vinc...@gmail.com] > Sent: Friday, January 23, 2015 12:19 AM > > On Fri, 23 Jan 2015 02:38:37 +, John Youn > wrote: > > Having the __raw functions everywhere is not pretty and probably not a > > good idea either. > > > > I would rather have a dwc2_writel/

Re: [RFC PATCH] usb: dwc2: Use platform endianness when accessing registers

2015-01-23 Thread Vincent Pelletier
On Fri, 23 Jan 2015 02:38:37 +, John Youn wrote: > Having the __raw functions everywhere is not pretty and probably not a > good idea either. > > I would rather have a dwc2_writel/dwc2_readl (like in dwc3), and we > can figure out what needs to happen in there to support your platform. > > A

RE: [RFC PATCH] usb: dwc2: Use platform endianness when accessing registers

2015-01-22 Thread John Youn
> From: Antti Seppälä [mailto:a.sepp...@gmail.com] > Sent: Wednesday, January 21, 2015 10:28 AM > > This patch switches calls to readl/writel to their > __raw_readl/__raw_writel equivalents which preserve platform endianness. > > This patch is necessary to access dwc2 registers correctly on big e

Re: [RFC PATCH] usb: dwc2: Use platform endianness when accessing registers

2015-01-21 Thread John Crispin
Hi, small nitpick On 21/01/2015 19:27, Antti Seppälä wrote: > This patch switches calls to readl/writel to their > __raw_readl/__raw_writel equivalents which preserve platform endianness. > > This patch is necessary to access dwc2 registers correctly on big endian > systems such as mips. Then dw

[RFC PATCH] usb: dwc2: Use platform endianness when accessing registers

2015-01-21 Thread Antti Seppälä
This patch switches calls to readl/writel to their __raw_readl/__raw_writel equivalents which preserve platform endianness. This patch is necessary to access dwc2 registers correctly on big endian systems such as mips. Then dwc2 can be used to replace ifx-hcd driver for lantiq platform found e.g.