generic: gpio: fix broken GPIO for big endian CPUs
authorShiji Yang <yangshiji66@qq.com>
Thu, 4 Jul 2024 10:35:50 +0000 (18:35 +0800)
committerRobert Marko <robimarko@gmail.com>
Thu, 4 Jul 2024 17:30:37 +0000 (19:30 +0200)
commitd836a688d15dc73a938010320092bff87b0eafcf
tree4c00074a49783d82f554eb584cac21e82726528a
parentee01666cd32e156214fe1ebc250c5c9ed7256aba
generic: gpio: fix broken GPIO for big endian CPUs

Align the "bgpio_bits" with the data bus width.

Fixes: https://github.com/openwrt/openwrt/issues/15739
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Suggested-By: Mark Mentovai <mark@mentovai.com>
Tested-by: Lóránd Horváth <lorand.horvath82@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15784
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/generic/backport-6.6/801-v6.11-gpio-mmio-do-not-calculate-bgpio_bits-via-ngpios.patch [new file with mode: 0644]