From mboxrd@z Thu Jan 1 00:00:00 1970 From: Krzysztof Kozlowski Subject: Re: [[PATCH v2] 03/11] ARM: EXYNOS: fixups for big-endian operation Date: Tue, 21 Jun 2016 13:16:24 +0200 Message-ID: <57692208.9000405@samsung.com> References: <1466504432-24187-1-git-send-email-ben.dooks@codethink.co.uk> <1466504432-24187-4-git-send-email-ben.dooks@codethink.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-reply-to: <1466504432-24187-4-git-send-email-ben.dooks@codethink.co.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Ben Dooks , matthew.leach@codethink.co.uk, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@lists.codethink.co.uk List-Id: linux-samsung-soc@vger.kernel.org On 06/21/2016 12:20 PM, Ben Dooks wrote: > If the kernel is built big endian, then using the __raw read and write IO > accessors is not going to work as they end up writing big-endian data to > little-endian IO registers. Fix this by using the readl and writel relaxed > versions which ensure little endian IO. > > Signed-off-by: Ben Dooks > --- > arch/arm/mach-exynos/firmware.c | 16 ++++++++-------- > arch/arm/mach-exynos/headsmp.S | 3 +++ > arch/arm/mach-exynos/platsmp.c | 4 ++-- > 3 files changed, 13 insertions(+), 10 deletions(-) Thanks, applied for v4.8. Best regards, Krzysztof From mboxrd@z Thu Jan 1 00:00:00 1970 From: k.kozlowski@samsung.com (Krzysztof Kozlowski) Date: Tue, 21 Jun 2016 13:16:24 +0200 Subject: [[PATCH v2] 03/11] ARM: EXYNOS: fixups for big-endian operation In-Reply-To: <1466504432-24187-4-git-send-email-ben.dooks@codethink.co.uk> References: <1466504432-24187-1-git-send-email-ben.dooks@codethink.co.uk> <1466504432-24187-4-git-send-email-ben.dooks@codethink.co.uk> Message-ID: <57692208.9000405@samsung.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 06/21/2016 12:20 PM, Ben Dooks wrote: > If the kernel is built big endian, then using the __raw read and write IO > accessors is not going to work as they end up writing big-endian data to > little-endian IO registers. Fix this by using the readl and writel relaxed > versions which ensure little endian IO. > > Signed-off-by: Ben Dooks > --- > arch/arm/mach-exynos/firmware.c | 16 ++++++++-------- > arch/arm/mach-exynos/headsmp.S | 3 +++ > arch/arm/mach-exynos/platsmp.c | 4 ++-- > 3 files changed, 13 insertions(+), 10 deletions(-) Thanks, applied for v4.8. Best regards, Krzysztof