linux/arch/powerpc/platforms/8xx
Bartosz Golaszewski 052f67a1ae 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: e623c4303e ("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
2026-06-08 15:54:57 +05:30
..
adder875.c powerpc updates for 6.6 2023-08-31 12:43:10 -07:00
cpm1-ic.c powerpc: Use dev_fwnode() 2025-08-20 13:53:10 +05:30
cpm1.c powerpc/8xx: implement get_direction() in cpm1 2026-06-08 15:54:57 +05:30
ep88xc.c powerpc/platforms: Use 'compatible' property for simple cases 2023-03-15 00:52:10 +11:00
Kconfig powerpc/cpm2: Drop legacy-of-mm-gpiochip.h header 2025-09-06 16:05:26 +05:30
m8xx_setup.c powerpc/8xx: Remove init_internal_rtc() to fix no previous prototype error 2023-08-18 17:03:14 +10:00
machine_check.c powerpc: bad_page_fault get registers from regs 2021-02-09 00:02:09 +11:00
Makefile powerpc/8xx: Move CPM interrupt controller into a dedicated file 2022-05-11 23:06:39 +10:00
micropatch.c powerpc/8xx: Fix early debug when SMC1 is relocated 2020-12-09 17:00:54 +11:00
mpc8xx.h powerpc/8xx: Remove mpc8xx_pics_init() 2022-05-11 23:06:40 +10:00
mpc86xads_setup.c powerpc/include: Declare mpc8xx_immr in 8xx_immap.h 2023-08-16 23:54:47 +10:00
mpc86xads.h
mpc885ads_setup.c TTY/Serial driver changes for 6.6-rc1 2023-09-01 09:38:00 -07:00
mpc885ads.h
pic.c powerpc: Switch to irq_find_mapping() 2025-05-16 21:06:12 +02:00
pic.h powerpc/8xx: Remove mpc8xx_pics_init() 2022-05-11 23:06:40 +10:00
tqm8xx_setup.c TTY/Serial driver changes for 6.6-rc1 2023-09-01 09:38:00 -07:00