Re: [PATCH] gpio: mmio: do not calculate bgpio_bits via "ngpios"
From: Bartosz Golaszewski
Date: Wed Jul 03 2024 - 09:32:31 EST
From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
On Tue, 25 Jun 2024 09:19:49 +0800, Shiji Yang wrote:
> bgpio_bits must be aligned with the data bus width. For example, on a
> 32 bit big endian system and we only have 16 GPIOs. If we only assume
> bgpio_bits=16 we can never control the GPIO because the base address
> is the lowest address.
>
> low address high address
> -------------------------------------------------
> | byte3 | byte2 | byte1 | byte0 |
> -------------------------------------------------
> | NaN | NaN | gpio8-15 | gpio0-7 |
> -------------------------------------------------
>
> [...]
Applied, thanks!
[1/1] gpio: mmio: do not calculate bgpio_bits via "ngpios"
commit: f07798d7bb9c46d17d80103fb772fd2c75d47919
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>