Re: [PATCH] net: macb: Add big endian CPU support

2015-02-26 Thread Michal Simek
Hi Arun, On 02/26/2015 11:44 AM, Arun Chandran wrote: > This patch converts all __raw_readl and __raw_writel function calls > to their corresponding readl_relaxed and writel_relaxed variants. > > It also tells the driver to set ahb_endian_swp_mgmt_en bit in dma_cfg > when the CPU is configured in

[PATCH] net: macb: Add big endian CPU support

2015-02-26 Thread Arun Chandran
This patch converts all __raw_readl and __raw_writel function calls to their corresponding readl_relaxed and writel_relaxed variants. It also tells the driver to set ahb_endian_swp_mgmt_en bit in dma_cfg when the CPU is configured in big endian mode. Signed-off-by: Arun Chandran --- This

Re: [PATCH] net: macb: Add big endian CPU support

2015-02-25 Thread Michal Simek
>> endian mode all the time. But the logic for detecting this on CPU is correct >> and this is what >> you need to do on Zynq. You are writing big endian value to little endian >> register and read it back >> to see if it was correctly written or not. > > Just curious; will the same code work wi

Re: [PATCH] net: macb: Add big endian CPU support

2015-02-25 Thread Arun Chandran
On Wed, Feb 25, 2015 at 3:32 PM, Michal Simek wrote: > On 02/24/2015 08:39 AM, Arun Chandran wrote: >> This patch converts all __raw_readl and __raw_writel function calls >> to their corresponding readl_relaxed and writel_relaxed variants. >> >> It also tells the driver to set ahb_endian_swp_mgmt_

Re: [PATCH] net: macb: Add big endian CPU support

2015-02-25 Thread Michal Simek
On 02/24/2015 08:39 AM, Arun Chandran wrote: > This patch converts all __raw_readl and __raw_writel function calls > to their corresponding readl_relaxed and writel_relaxed variants. > > It also tells the driver to set ahb_endian_swp_mgmt_en bit in dma_cfg > when the cpu is configured in big endia

Re: [PATCH] net: macb: Add big endian CPU support

2015-02-24 Thread Arun Chandran
On Tue, Feb 24, 2015 at 6:27 PM, Nicolas Ferre wrote: > Le 24/02/2015 08:39, Arun Chandran a écrit : >> This patch converts all __raw_readl and __raw_writel function calls >> to their corresponding readl_relaxed and writel_relaxed variants. >> >> It also tells the driver to set ahb_endian_swp_mgmt

Re: [PATCH] net: macb: Add big endian CPU support

2015-02-24 Thread Nicolas Ferre
Le 24/02/2015 08:39, Arun Chandran a écrit : > This patch converts all __raw_readl and __raw_writel function calls > to their corresponding readl_relaxed and writel_relaxed variants. > > It also tells the driver to set ahb_endian_swp_mgmt_en bit in dma_cfg > when the cpu is configured in big endia

[PATCH] net: macb: Add big endian CPU support

2015-02-23 Thread Arun Chandran
This patch converts all __raw_readl and __raw_writel function calls to their corresponding readl_relaxed and writel_relaxed variants. It also tells the driver to set ahb_endian_swp_mgmt_en bit in dma_cfg when the cpu is configured in big endian mode. Signed-off-by: Arun Chandran --- This

Re: [PATCH] net: macb: Add big endian CPU support

2015-02-23 Thread Arun Chandran
On Mon, Feb 23, 2015 at 8:08 PM, Nicolas Ferre wrote: > Le 20/02/2015 12:45, Arun Chandran a écrit : >> On Thu, Feb 19, 2015 at 5:52 PM, Michal Simek wrote: >>> >>> On 02/18/2015 12:29 PM, Arun Chandran wrote: This patch converts all __raw_readl and __raw_writel function calls to their

Re: [PATCH] net: macb: Add big endian CPU support

2015-02-23 Thread Nicolas Ferre
Le 20/02/2015 12:45, Arun Chandran a écrit : > On Thu, Feb 19, 2015 at 5:52 PM, Michal Simek wrote: >> >> On 02/18/2015 12:29 PM, Arun Chandran wrote: >>> This patch converts all __raw_readl and __raw_writel function calls >>> to their corresponding readl_relaxed and writel_relaxed variants. >>> >

Re: [PATCH] net: macb: Add big endian CPU support

2015-02-23 Thread Michal Simek
Hi Arun, On 02/20/2015 12:45 PM, Arun Chandran wrote: > On Thu, Feb 19, 2015 at 5:52 PM, Michal Simek wrote: >> >> On 02/18/2015 12:29 PM, Arun Chandran wrote: >>> This patch converts all __raw_readl and __raw_writel function calls >>> to their corresponding readl_relaxed and writel_relaxed varia

Re: [PATCH] net: macb: Add big endian CPU support

2015-02-20 Thread Arun Chandran
On Thu, Feb 19, 2015 at 5:52 PM, Michal Simek wrote: > > On 02/18/2015 12:29 PM, Arun Chandran wrote: > > This patch converts all __raw_readl and __raw_writel function calls > > to their corresponding readl_relaxed and writel_relaxed variants. > > > > It also tells the driver to set ahb_endian_swp

Re: [PATCH] net: macb: Add big endian CPU support

2015-02-19 Thread Michal Simek
On 02/18/2015 12:29 PM, Arun Chandran wrote: > This patch converts all __raw_readl and __raw_writel function calls > to their corresponding readl_relaxed and writel_relaxed variants. > > It also tells the driver to set ahb_endian_swp_mgmt_en bit in dma_cfg > when the CPU is configured in big endia

Re: [PATCH] net: macb: Add big endian CPU support

2015-02-19 Thread Nicolas Ferre
Le 18/02/2015 12:29, Arun Chandran a écrit : > This patch converts all __raw_readl and __raw_writel function calls > to their corresponding readl_relaxed and writel_relaxed variants. > > It also tells the driver to set ahb_endian_swp_mgmt_en bit in dma_cfg > when the CPU is configured in big endia

[PATCH] net: macb: Add big endian CPU support

2015-02-18 Thread Arun Chandran
This patch converts all __raw_readl and __raw_writel function calls to their corresponding readl_relaxed and writel_relaxed variants. It also tells the driver to set ahb_endian_swp_mgmt_en bit in dma_cfg when the CPU is configured in big endian mode. Signed-off-by: Arun Chandran --- This