[PATCH] reset: sunxi: fix for 64-bit compilation

Chen-Yu Tsai wens at csie.org
Tue Mar 7 20:28:23 PST 2017


On Mon, Mar 6, 2017 at 9:35 AM, Andre Przywara <andre.przywara at arm.com> wrote:
> The Allwinner reset controller has 32-bit registers, so translating
> the reset cell number into a register and bit offset should not use
> any architecture dependent data size. Otherwise this breaks for 64-bit
> architectures like arm64.
> Fix this by making it clear that it's the hardware register width which
> matters here in the calculation.
>
> Signed-off-by: Andre Przywara <andre.przywara at arm.com>

Acked-by: Chen-Yu Tsai <wens at csie.org>

Though I don't expect this driver to be used with arm64 chips.



More information about the linux-arm-kernel mailing list