From mboxrd@z Thu Jan 1 00:00:00 1970 From: f.fainelli@gmail.com (Florian Fainelli) Date: Sat, 28 Oct 2017 09:54:07 -0700 Subject: [PATCH v2 1/7] gpio: brcmstb: Do not use gc->pin2mask() In-Reply-To: <20171024195451.30535-2-opendmb@gmail.com> References: <20171024195451.30535-1-opendmb@gmail.com> <20171024195451.30535-2-opendmb@gmail.com> Message-ID: <914591ef-f6b6-8e9b-a3cc-b7ac82391fd6@gmail.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 10/24/2017 12:54 PM, Doug Berger wrote: > From: Linus Walleij > > The pin2mask() accessor only shuffles BIT ORDER in big endian systems, > i.e. the bitstuffing is swizzled big endian so "bit 0" is bit 7 or > bit 15 or bit 31 or so. > > The brcmstb only uses big endian BYTE ORDER which will be taken car of > by the ->write_reg() callback. > > Just use BIT(offset) to assign the bit. > > Cc: Gregory Fong > Cc: Florian Fainelli > Signed-off-by: Linus Walleij Reviewed-by: Florian Fainelli -- Florian