]> git.ipfire.org Git - thirdparty/linux.git/commit
powerpc/8xx: implement get_direction() in cpm1
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Wed, 3 Jun 2026 08:26:26 +0000 (10:26 +0200)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Mon, 8 Jun 2026 10:24:57 +0000 (15:54 +0530)
commit052f67a1ae6ffa6e43c82193bf2e6c0dfd2e6d8f
treefacffb9872650fc0221ff8cfdf1339584c863b07
parentc8f80f95da32618d49c2a068ee561b85655b761d
powerpc/8xx: implement get_direction() in cpm1

The lack of get_direction() callbacks in this driver causes GPIOLIB to
emit a warning. Implement them for 16- and 32-bit variants.

Reported-by: Christophe Leroy <chleroy@kernel.org>
Closes: https://lore.kernel.org/all/63487206f6e5a93eaf9f41784317fe99d394312f.1780399750.git.chleroy@kernel.org/
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Fixes: e623c4303ed1 ("gpiolib: sanitize the return value of gpio_chip::get_direction()")
Tested-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
[Maddy: Fixed the Fixes tag]
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260603-powerpc-8xx-cpm1-get-dir-v1-1-2ae1c9a5b992@oss.qualcomm.com
arch/powerpc/platforms/8xx/cpm1.c