linux/arch/arm/mach-pxa
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
..
addr-map.h ARM: pxa: make addr-map.h header local 2022-04-19 21:34:06 +02:00
am200epd.c fbcon: call fbcon_fb_(un)registered directly 2019-06-12 20:27:45 +02:00
am300epd.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
balloon3-pcmcia.c ARM: pxa: move pcmcia board data into mach-pxa 2022-04-19 21:34:05 +02:00
balloon3.c ARM: pxa: move pcmcia board data into mach-pxa 2022-04-19 21:34:05 +02:00
balloon3.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
capc7117.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
cm-x300.c ARM: pxa: maybe fix gpio lookup tables 2022-04-20 13:29:44 +02:00
colibri-evalboard.c ARM: pxa: split up mach/hardware.h 2022-04-19 16:27:05 +02:00
colibri-pcmcia.c ARM: pxa: move pcmcia board data into mach-pxa 2022-04-19 21:34:05 +02:00
colibri-pxa3xx.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
colibri-pxa270-income.c ARM: pxa: split up mach/hardware.h 2022-04-19 16:27:05 +02:00
colibri-pxa270.c ARM: pxa: move mach/sound.h to linux/platform_data/ 2022-04-19 16:28:41 +02:00
colibri-pxa300.c ARM: pxa: move mach/sound.h to linux/platform_data/ 2022-04-19 16:28:41 +02:00
colibri-pxa320.c ARM: pxa: move mach/sound.h to linux/platform_data/ 2022-04-19 16:28:41 +02:00
colibri.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
corgi_pm.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
corgi.c ARM: pxa2xx: Fix GPIO descriptor tables 2022-07-22 15:03:08 +02:00
corgi.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
csb701.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
csb726.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
csb726.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
devices.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
devices.h ARM: pxa: add dma slave map 2018-06-18 21:29:16 +02:00
e740-pcmcia.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
eseries-gpio.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
eseries-irq.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
eseries.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
ezx.c ARM: pxa: split up mach/hardware.h 2022-04-19 16:27:05 +02:00
generic.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
generic.h ARM: pxa: move clk register definitions to driver 2022-05-07 22:55:49 +02:00
gumstix.c ARM: pxa: split up mach/hardware.h 2022-04-19 16:27:05 +02:00
gumstix.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
h5000.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
h5000.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
himalaya.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
hx4700-pcmcia.c ARM: pxa: hx4700: use gpio descriptors for audio 2022-05-07 22:55:47 +02:00
hx4700.c ARM: pxa2xx: Fix GPIO descriptor tables 2022-07-22 15:03:08 +02:00
hx4700.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
icontrol.c ARM: pxa2xx: Fix GPIO descriptor tables 2022-07-22 15:03:08 +02:00
idp.c ARM: pxa: stop using mach/bitfield.h 2022-04-19 16:28:04 +02:00
idp.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
irq.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
irqs.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
Kconfig ARM: multiplatform changes, part 2 2022-06-02 15:23:54 -07:00
littleton.c ARM: pxa2xx: Fix GPIO descriptor tables 2022-07-22 15:03:08 +02:00
littleton.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
lpd270.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
lpd270.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
lubbock.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
lubbock.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
magician.c ARM: pxa2xx: Fix GPIO descriptor tables 2022-07-22 15:03:08 +02:00
magician.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
mainstone.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
mainstone.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
Makefile ARM: pxa: move pcmcia board data into mach-pxa 2022-04-19 21:34:05 +02:00
mfp-pxa2xx.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
mfp-pxa2xx.h ARM: pxa: move plat-pxa to drivers/soc/ 2022-05-07 22:56:16 +02:00
mfp-pxa3xx.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
mfp-pxa3xx.h ARM: pxa: move plat-pxa to drivers/soc/ 2022-05-07 22:56:16 +02:00
mfp-pxa25x.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mfp-pxa27x.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mfp-pxa300.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mfp-pxa320.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mfp-pxa930.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mfp.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
mioa701_bootresume.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 429 2019-06-05 17:37:16 +02:00
mioa701.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
mioa701.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mp900.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mxm8x10.c ARM: pxa: pxa2xx-ac97-lib: use IRQ resource 2022-04-19 21:34:05 +02:00
mxm8x10.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
palm27x.c ARM: pxa: move mach/sound.h to linux/platform_data/ 2022-04-19 16:28:41 +02:00
palm27x.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
palmld-pcmcia.c ARM: pxa: use pdev resource for palmld mmio 2022-04-20 13:29:34 +02:00
palmld.c ARM: pxa: mainstone-wm97xx: use gpio lookup table 2022-05-07 22:55:48 +02:00
palmld.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
palmt5.c ARM: pxa: mainstone-wm97xx: use gpio lookup table 2022-05-07 22:55:48 +02:00
palmt5.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
palmtc-pcmcia.c ARM: pxa: move pcmcia board data into mach-pxa 2022-04-19 21:34:05 +02:00
palmtc.c ARM: pxa: move pcmcia board data into mach-pxa 2022-04-19 21:34:05 +02:00
palmtc.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
palmte2.c ARM: pxa: move mach/sound.h to linux/platform_data/ 2022-04-19 16:28:41 +02:00
palmte2.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
palmtreo.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
palmtreo.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
palmtx-pcmcia.c ARM: pxa: move pcmcia board data into mach-pxa 2022-04-19 21:34:05 +02:00
palmtx.c ARM: pxa: mainstone-wm97xx: use gpio lookup table 2022-05-07 22:55:48 +02:00
palmtx.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
palmz72.c ARM: pxa: move mach/sound.h to linux/platform_data/ 2022-04-19 16:28:41 +02:00
palmz72.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
pcm027.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
pcm027.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
pcm990_baseboard.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
pcm990-baseboard.c ARM: pxa: move mach/sound.h to linux/platform_data/ 2022-04-19 16:28:41 +02:00
pm.c ARM: pxa: Delete an error message for a failed memory allocation in pxa_pm_init() 2017-06-14 08:32:21 +02:00
pm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
poodle.c ARM: pxa: poodle: use platform data for poodle asoc driver 2022-05-07 22:55:47 +02:00
poodle.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
pxa2xx-regs.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
pxa2xx.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
pxa3xx-regs.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
pxa3xx-ulpi.c ARM: pxa: split up mach/hardware.h 2022-04-19 16:27:05 +02:00
pxa3xx.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
pxa3xx.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
pxa25x.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
pxa25x.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
pxa27x-udc.h ARM: pxa: split up mach/hardware.h 2022-04-19 16:27:05 +02:00
pxa27x.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
pxa27x.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
pxa300.c ARM: pxa: split up mach/hardware.h 2022-04-19 16:27:05 +02:00
pxa300.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pxa320.c ARM: pxa: split up mach/hardware.h 2022-04-19 16:27:05 +02:00
pxa320.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pxa930.c ARM: pxa: split up mach/hardware.h 2022-04-19 16:27:05 +02:00
pxa930.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pxa_cplds_irqs.c ARM: Bulk conversion to generic_handle_domain_irq() 2021-08-12 11:39:39 +01:00
pxa-dt.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
pxa-regs.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
regs-ost.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
regs-rtc.h ARM: pxa: split up mach/hardware.h 2022-04-19 16:27:05 +02:00
regs-u2d.h ARM: pxa: stop using mach/bitfield.h 2022-04-19 16:28:04 +02:00
regs-uart.h ARM: pxa: split up mach/hardware.h 2022-04-19 16:27:05 +02:00
reset.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
reset.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
saar.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 332 2019-06-05 17:37:06 +02:00
sharpsl_pm.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
sharpsl_pm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
sleep.S ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
smemc.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
smemc.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
spitz_pm.c ARM: pxa: spitz: use gpio descriptors for audio 2022-05-07 22:55:47 +02:00
spitz.c ARM: pxa2xx: Fix GPIO descriptor tables 2022-07-22 15:03:08 +02:00
spitz.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
standby.S ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
tavorevb.c backlight: pwm_bl: Switch to full GPIO descriptor 2020-03-18 15:05:57 +00:00
tosa_bt.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
tosa-bt.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
tosa.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
tosa.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
trizeps4-pcmcia.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
trizeps4.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
trizeps4.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
udc.h
viper-pcmcia.c ARM: pxa: move pcmcia board data into mach-pxa 2022-04-19 21:34:05 +02:00
viper-pcmcia.h ARM: pxa: move pcmcia board data into mach-pxa 2022-04-19 21:34:05 +02:00
viper.c ARM: pxa/sa1100: move I/O space to PCI_IOBASE 2022-05-07 22:56:17 +02:00
viper.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
vpac270-pcmcia.c ARM: pxa: move pcmcia board data into mach-pxa 2022-04-19 21:34:05 +02:00
vpac270.c ARM: pxa: move pcmcia board data into mach-pxa 2022-04-19 21:34:05 +02:00
vpac270.h ARM: pxa: move pcmcia board data into mach-pxa 2022-04-19 21:34:05 +02:00
xcep.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
z2.c ARM: pxa2xx: Fix GPIO descriptor tables 2022-07-22 15:03:08 +02:00
z2.h ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
zeus.c ARM: pxa/sa1100: move I/O space to PCI_IOBASE 2022-05-07 22:56:17 +02:00
zeus.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
zylonite_pxa300.c ARM: pxa: split up mach/hardware.h 2022-04-19 16:27:05 +02:00
zylonite_pxa320.c ARM: pxa: split up mach/hardware.h 2022-04-19 16:27:05 +02:00
zylonite.c ARM: pxa: move mach/*.h to mach-pxa/ 2022-05-07 22:56:17 +02:00
zylonite.h ARM: pxa: split up mach/hardware.h 2022-04-19 16:27:05 +02:00