From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936033AbdIYS4x (ORCPT ); Mon, 25 Sep 2017 14:56:53 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:36131 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933306AbdIYS4w (ORCPT ); Mon, 25 Sep 2017 14:56:52 -0400 X-Google-Smtp-Source: AOwi7QAIPIRI5vOT4etz6QlT9+HzsgXKOinQRcnznabUDIuEUGzXg5kxpBTjY28+6i2sj5cqrvsOGw== Subject: Re: [PATCH] ARM: brcmstb: Add appropriate ARM_BE8() macros for swapping To: Florian Fainelli , linux-arm-kernel@lists.infradead.org Cc: Russell King , Brian Norris , Gregory Fong , "maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE" , open list References: <1504029821-38267-1-git-send-email-f.fainelli@gmail.com> From: Florian Fainelli Message-ID: <81b4ed3d-404c-2dae-6a84-5a891560bafb@gmail.com> Date: Mon, 25 Sep 2017 11:56:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1504029821-38267-1-git-send-email-f.fainelli@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/29/2017 11:03 AM, Florian Fainelli wrote: > Building a big-endian kernel for ARCH_BRCMSTB revealed that we would not > be correctly polling for the right bit in the busyuart macro, turns out > there are a few transformations needed to work with big-endian kernels. > First we need to swap the value we read from SUN_TOP_CTRL to properly > compare it against our local tables. Then, just like 8250.S we need to > swap the value before storing it, and conversely swap it after a load. > > Signed-off-by: Florian Fainelli Applied to soc/next. -- Florian