OpenCloudOS-Kernel/arch/arm
Linus Walleij c5cdb92869
ARM: pxa2xx: Fix GPIO descriptor tables
Laurence reports:

"Kernel >5.18 on Zaurus has a bug where the power management code can't
talk to devices, emitting the following errors:

sharpsl-pm sharpsl-pm: Error: AC check failed: voltage -22.
sharpsl-pm sharpsl-pm: Charging Error!
sharpsl-pm sharpsl-pm: Warning: Cannot read main battery!

Looking at the recent changes, I found that commit 31455bbda2 ("spi:
pxa2xx_spi: Convert to use GPIO descriptors") replaced the deprecated
SPI chip select platform device code with a gpiod lookup table. However,
this didn't seem to work until I changed the `dev_id` member from the
device name to the bus id. I'm not entirely sure why this is necessary,
but I suspect it is related to the fact that in sysfs SPI devices are
attached under /sys/devices/.../dev_name/spi_master/spiB/spiB.C, rather
than directly to the device."

After reviewing the change I conclude that the same fix is needed
for all affected boards.

Fixes: 31455bbda2 ("spi: pxa2xx_spi: Convert to use GPIO descriptors")
Reported-by: Laurence de Bruxelles <lfdebrux@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220722114611.1517414-1-linus.walleij@linaro.org'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-07-22 15:03:08 +02:00
..
boot AT91 fixes for 5.19 #3 2022-07-21 14:58:46 +02:00
common
configs ARM: mxs_defconfig: Enable the framebuffer 2022-06-27 15:48:16 +08:00
crypto
include ARM fixes for 5.19: 2022-07-14 12:08:59 -07:00
kernel ARM: 9208/1: entry: add .ltorg directive to keep literals in range 2022-07-14 13:19:51 +01:00
lib
mach-actions
mach-airoha
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 ARM: at91: pm: Mark at91_pm_secure_init as __init 2022-06-28 12:55:32 +03:00
mach-axxia ARM: Fix refcount leak in axxia_boot_secondary 2022-06-14 12:19:13 +02:00
mach-bcm
mach-berlin
mach-clps711x
mach-cns3xxx ARM: cns3xxx: Fix refcount leak in cns3xxx_init 2022-06-24 17:18:30 +02:00
mach-davinci gpio updates for v5.19 2022-05-26 14:51:38 -07:00
mach-digicolor
mach-dove
mach-ep93xx ARM: ep93xx: Make ts72xx_register_flash() static 2022-05-27 16:00:58 +02:00
mach-exynos ARM: exynos: Fix refcount leak in exynos_map_pmu 2022-06-06 10:40:57 +02:00
mach-footbridge
mach-gemini
mach-highbank
mach-hisi ARM: ARMv4T/v5 multiplatform support for v5.19, part 1 2022-05-26 10:43:09 -07:00
mach-hpe ARM: hpe: Introduce the HPE GXP architecture 2022-05-18 14:05:53 +02:00
mach-imx
mach-iop32x ARM: ARMv4T/v5 multiplatform support for v5.19, part 1 2022-05-26 10:43:09 -07:00
mach-ixp4xx ARM: ixp4xx: Consolidate Kconfig fixing issue 2022-05-25 15:54:11 +02:00
mach-keystone
mach-lpc18xx
mach-lpc32xx
mach-mediatek
mach-meson ARM: meson: Fix refcount leak in meson_smp_prepare_cpus 2022-06-10 08:43:05 +02:00
mach-milbeaut
mach-mmp ARM: multiplatform changes, part 2 2022-06-02 15:23:54 -07:00
mach-moxart
mach-mstar
mach-mv78xx0
mach-mvebu
mach-mxs
mach-nomadik ARM: ARMv4T/v5 multiplatform support for v5.19, part 1 2022-05-26 10:43:09 -07:00
mach-npcm
mach-nspire
mach-omap1 ARM: omap1: enable multiplatform 2022-06-03 20:48:53 +02:00
mach-omap2 ARM: ARMv4T/v5 multiplatform support for v5.19, part 1 2022-05-26 10:43:09 -07:00
mach-orion5x ARM: ARMv4T/v5 multiplatform support for v5.19, part 1 2022-05-26 10:43:09 -07:00
mach-oxnas
mach-pxa ARM: pxa2xx: Fix GPIO descriptor tables 2022-07-22 15:03:08 +02:00
mach-qcom
mach-rda
mach-realtek
mach-rockchip ARM: rockchip: Add missing of_node_put() in rockchip_suspend_init() 2022-06-17 19:05:51 +02:00
mach-rpc
mach-s3c ARM: ARMv4T/v5 multiplatform support for v5.19, part 1 2022-05-26 10:43:09 -07:00
mach-s5pv210
mach-sa1100
mach-shmobile ARM: shmobile: rcar-gen2: Drop comma after OF match table sentinel 2022-05-05 12:32:40 +02:00
mach-socfpga
mach-spear arm: mach-spear: Add missing of_node_put() in time.c 2022-06-24 17:18:55 +02:00
mach-sti
mach-stm32
mach-sunxi ARM: ARMv4T/v5 multiplatform support for v5.19, part 1 2022-05-26 10:43:09 -07:00
mach-tegra
mach-uniphier
mach-ux500
mach-versatile ARM: ARMv4T/v5 multiplatform support for v5.19, part 1 2022-05-26 10:43:09 -07:00
mach-vt8500
mach-zynq
mm ARM fixes for 5.19: 2022-07-14 12:08:59 -07:00
net
nwfpe
plat-orion
probes ARM: 9214/1: alignment: advance IT state after emulating Thumb instruction 2022-07-06 22:44:49 +01:00
tools
vdso randstruct: Split randstruct Makefile and CFLAGS 2022-05-08 01:33:06 -07:00
vfp
xen xen/arm: Fix race in RB-tree based P2M accounting 2022-07-01 10:02:03 +02:00
Kbuild
Kconfig ARM: omap1: enable multiplatform 2022-06-03 20:48:53 +02:00
Kconfig-nommu
Kconfig.assembler
Kconfig.debug ARM: ARMv4T/v5 multiplatform support for v5.19, part 1 2022-05-26 10:43:09 -07:00
Makefile ARM: SoC changes, part 2 2022-06-02 15:27:44 -07:00