]> git.ipfire.org Git - thirdparty/linux.git/commit
powerpc/8xx: Fix interrupt mask in cpm1_gpiochip_add16()
authorChristophe Leroy (CS GROUP) <chleroy@kernel.org>
Tue, 21 Apr 2026 06:26:08 +0000 (08:26 +0200)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 6 May 2026 02:05:19 +0000 (07:35 +0530)
commitda107152c43915211e1fc0319b9526f4241abca2
tree624875fbf70ba031408ac94608e711b5454f2766
parent38e989d504fc52900a3786b7144fb53cd67e0389
powerpc/8xx: Fix interrupt mask in cpm1_gpiochip_add16()

Allthough fsl,cpm1-gpio-irq-mask always contains a 16 bits value,
it is a standard u32 OF property as documented in
Documentation/devicetree/bindings/soc/fsl/cpm_qe/gpio.txt

The driver erroneously uses of_property_read_u16() leading to a
mask which is always 0.

Fix it by using of_property_read_u32() instead.

Fixes: 726bd223105c ("powerpc/8xx: Adding support of IRQ in MPC8xx GPIO")
Signed-off-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/bb0b6d6c4543238c38d5d29a776d0674a8c0c180.1776752750.git.chleroy@kernel.org
arch/powerpc/platforms/8xx/cpm1.c