linux-yocto/drivers
Bartosz Golaszewski 7f7080c514 pinctrl: qcom: lpass-lpi: mark the GPIO controller as sleeping
[ Upstream commit ebc18e9854e5a2b62a041fb57b216a903af45b85 ]

The gpio_chip settings in this driver say the controller can't sleep
but it actually uses a mutex for synchronization. This triggers the
following BUG():

[    9.233659] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:281
[    9.233665] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 554, name: (udev-worker)
[    9.233669] preempt_count: 1, expected: 0
[    9.233673] RCU nest depth: 0, expected: 0
[    9.233688] Tainted: [W]=WARN
[    9.233690] Hardware name: Dell Inc. Latitude 7455/0FK7MX, BIOS 2.10.1 05/20/2025
[    9.233694] Call trace:
[    9.233696]  show_stack+0x24/0x38 (C)
[    9.233709]  dump_stack_lvl+0x40/0x88
[    9.233716]  dump_stack+0x18/0x24
[    9.233722]  __might_resched+0x148/0x160
[    9.233731]  __might_sleep+0x38/0x98
[    9.233736]  mutex_lock+0x30/0xd8
[    9.233749]  lpi_config_set+0x2e8/0x3c8 [pinctrl_lpass_lpi]
[    9.233757]  lpi_gpio_direction_output+0x58/0x90 [pinctrl_lpass_lpi]
[    9.233761]  gpiod_direction_output_raw_commit+0x110/0x428
[    9.233772]  gpiod_direction_output_nonotify+0x234/0x358
[    9.233779]  gpiod_direction_output+0x38/0xd0
[    9.233786]  gpio_shared_proxy_direction_output+0xb8/0x2a8 [gpio_shared_proxy]
[    9.233792]  gpiod_direction_output_raw_commit+0x110/0x428
[    9.233799]  gpiod_direction_output_nonotify+0x234/0x358
[    9.233806]  gpiod_configure_flags+0x2c0/0x580
[    9.233812]  gpiod_find_and_request+0x358/0x4f8
[    9.233819]  gpiod_get_index+0x7c/0x98
[    9.233826]  devm_gpiod_get+0x34/0xb0
[    9.233829]  reset_gpio_probe+0x58/0x128 [reset_gpio]
[    9.233836]  auxiliary_bus_probe+0xb0/0xf0
[    9.233845]  really_probe+0x14c/0x450
[    9.233853]  __driver_probe_device+0xb0/0x188
[    9.233858]  driver_probe_device+0x4c/0x250
[    9.233863]  __driver_attach+0xf8/0x2a0
[    9.233868]  bus_for_each_dev+0xf8/0x158
[    9.233872]  driver_attach+0x30/0x48
[    9.233876]  bus_add_driver+0x158/0x2b8
[    9.233880]  driver_register+0x74/0x118
[    9.233886]  __auxiliary_driver_register+0x94/0xe8
[    9.233893]  init_module+0x34/0xfd0 [reset_gpio]
[    9.233898]  do_one_initcall+0xec/0x300
[    9.233903]  do_init_module+0x64/0x260
[    9.233910]  load_module+0x16c4/0x1900
[    9.233915]  __arm64_sys_finit_module+0x24c/0x378
[    9.233919]  invoke_syscall+0x4c/0xe8
[    9.233925]  el0_svc_common+0x8c/0xf0
[    9.233929]  do_el0_svc+0x28/0x40
[    9.233934]  el0_svc+0x38/0x100
[    9.233938]  el0t_64_sync_handler+0x84/0x130
[    9.233943]  el0t_64_sync+0x17c/0x180

Mark the controller as sleeping.

Fixes: 6e261d1090 ("pinctrl: qcom: Add sm8250 lpass lpi pinctrl driver")
Cc: stable@vger.kernel.org
Reported-by: Val Packett <val@packett.cool>
Closes: https://lore.kernel.org/all/98c0f185-b0e0-49ea-896c-f3972dd011ca@packett.cool/
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-01-19 13:10:18 +01:00
..
accessibility
acpi ACPI: CPPC: Fix missing PCC check for guaranteed_perf 2026-01-19 13:09:45 +01:00
amba amba: tegra-ahb: Fix device leak on SMMU enable 2026-01-19 13:09:54 +01:00
android binder: remove "invalid inc weak" check 2025-10-29 14:03:12 +01:00
ata ata: libata-scsi: Fix system suspend for a security locked drive 2025-12-07 06:09:33 +09:00
atm atm: Fix dma_free_coherent() size 2026-01-19 13:10:13 +01:00
auxdisplay
base PM: runtime: Do not clear needs_force_resume with enabled runtime PM 2026-01-19 13:09:53 +01:00
bcma
block floppy: fix for PAGE_SIZE != 4KB 2026-01-19 13:09:49 +01:00
bluetooth Bluetooth: btusb: revert use of devm_kzalloc in btusb 2026-01-19 13:09:56 +01:00
bus ti-sysc: allow OMAP2 and OMAP4 timers to be reserved on AM33xx 2026-01-19 13:09:47 +01:00
cdrom
char tpm: Cap the number of PCR banks 2026-01-19 13:10:06 +01:00
clk clk: mvebu: cp110 add CLK_IGNORE_UNUSED to pcie_x10, pcie_x11 & pcie_x4 2026-01-19 13:09:47 +01:00
clocksource clocksource/drivers/vf-pit: Replace raw_readl/writel to readl/writel 2025-12-07 06:09:17 +09:00
comedi comedi: check device's attached status in compat ioctls 2026-01-19 13:09:22 +01:00
connector
counter counter: interrupt-cnt: Drop IRQF_NO_THREAD flag 2026-01-19 13:10:18 +01:00
cpufreq cpufreq: nforce2: fix reference count leak in nforce2 2026-01-19 13:09:51 +01:00
cpuidle cpuidle: Fail cpuidle device registration if there is one already 2025-12-07 06:09:17 +09:00
crypto crypto: ccree - Correctly handle return of sg_nents_for_len 2026-01-19 13:09:32 +01:00
cxl
dax
dca
devfreq
dio
dma dmaengine: dw-edma: Set status for callback_result 2025-12-07 06:09:20 +09:00
dma-buf dma-buf: insert memory barrier before updating num_fences 2025-09-09 18:50:23 +02:00
edac EDAC/altera: Use INTTEST register for Ethernet and USB SBE injection 2025-12-07 06:09:30 +09:00
eisa
extcon extcon: adc-jack: Cleanup wakeup source only if it was enabled 2025-12-07 06:09:26 +09:00
firewire firewire: nosy: Fix dma_free_coherent() size 2026-01-19 13:09:57 +01:00
firmware firmware: arm_scmi: Fix unused notifier-block in unregister 2026-01-19 13:10:13 +01:00
fpga fpga: zynq_fpga: Fix the wrong usage of dma_map_sgtable() 2025-08-28 16:24:34 +02:00
fsi
gnss
gpio gpio: wcd934x: mark the GPIO controller as sleeping 2025-10-19 16:21:43 +02:00
gpu drm/pl111: Fix error handling in pl111_amba_probe 2026-01-19 13:10:14 +01:00
greybus
hid HID: quirks: work around VID/PID conflict for appledisplay 2026-01-19 13:10:17 +01:00
hsi
hv
hwmon hwmon: (w83l786ng) Convert macros to functions to avoid TOCTOU 2026-01-19 13:09:55 +01:00
hwspinlock
hwtracing intel_th: Fix error handling in intel_th_output_open 2026-01-19 13:09:51 +01:00
i2c i2c: amd-mp2: fix reference leak in MP2 PCI device 2026-01-19 13:09:54 +01:00
i3c i3c: master: svc: Prevent incomplete IBI transaction 2026-01-19 13:09:25 +01:00
idle
iio iio: imu: st_lsm6dsx: Fix measurement unit for odr struct member 2026-01-19 13:09:23 +01:00
infiniband RDMA/core: Fix "KASAN: slab-use-after-free Read in ib_register_device" problem 2026-01-19 13:10:04 +01:00
input Input: i8042 - add TUXEDO InfinityBook Max Gen10 AMD to i8042 quirk table 2026-01-19 13:09:45 +01:00
interconnect
iommu Revert "iommu/amd: Skip enabling command/event buffers for kdump" 2026-01-19 13:10:13 +01:00
ipack
irqchip irqchip/qcom-irq-combiner: Fix section mismatch 2026-01-19 13:09:22 +01:00
isdn isdn: mISDN: hfcsusb: fix memory leak in hfcsusb_probe() 2025-12-07 06:09:30 +09:00
leds leds: leds-lp50xx: LP5009 supports 3 modules for a total of 9 LEDs 2026-01-19 13:10:00 +01:00
macintosh macintosh/mac_hid: fix race condition in mac_hid_toggle_emumouse 2026-01-19 13:09:28 +01:00
mailbox mailbox: mailbox-test: Fix debugfs_create_dir error checking 2025-12-07 06:09:34 +09:00
mcb
md dm-ebs: Mark full buffer dirty even on partial write 2026-01-19 13:10:01 +01:00
media media: renesas: rcar_drif: fix device node reference leak in rcar_drif_bond_enabled 2026-01-19 13:10:09 +01:00
memory memory: samsung: exynos-srom: Fix of_iomap leak in exynos_srom_probe 2025-10-19 16:21:47 +02:00
memstick memstick: Add timeout to prevent indefinite waiting 2025-12-07 06:09:16 +09:00
message
mfd mfd: max77620: Fix potential IRQ chip conflict when probing two devices 2026-01-19 13:10:01 +01:00
misc mei: me: add nova lake point S DID 2026-01-19 13:10:13 +01:00
mmc mmc: core: use sysfs_emit() instead of sprintf() 2026-01-19 13:10:11 +01:00
most most: usb: fix double free on late probe failure 2025-12-07 06:09:35 +09:00
mtd mtd: lpddr_cmds: fix signed shifts in lpddr_cmds 2026-01-19 13:09:36 +01:00
mux
net net: enetc: fix build warning when PAGE_SIZE is greater than 128K 2026-01-19 13:10:17 +01:00
nfc nfc: pn533: Fix error code in pn533_acr122_poweron_rdr() 2026-01-19 13:09:44 +01:00
ntb
nubus
nvdimm
nvme nvme-fc: don't hold rport lock when putting ctrl 2026-01-19 13:09:48 +01:00
nvmem
of
opp
parisc parisc: Do not reprogram affinitiy on ASP chip 2026-01-19 13:09:52 +01:00
parport
pci PCI: brcmstb: Fix disabling L0s capability 2026-01-19 13:10:09 +01:00
pcmcia pcmcia: omap_cf: Mark driver struct with __refdata to prevent section mismatch 2025-10-02 13:39:05 +02:00
perf perf: arm_spe: Prevent overflow in PERF_IDX2OFF() 2025-10-19 16:21:29 +02:00
phy phy: broadcom: bcm63xx-usbh: fix section mismatches 2026-01-19 13:09:50 +01:00
pinctrl pinctrl: qcom: lpass-lpi: mark the GPIO controller as sleeping 2026-01-19 13:10:18 +01:00
platform platform/x86: ibm_rtl: fix EBDA signature search pointer arithmetic 2026-01-19 13:09:56 +01:00
pnp
power power: supply: apm_power: only unset own apm_get_power_status 2026-01-19 13:09:25 +01:00
powercap
pps pps: fix warning in pps_register_cdev when register device fail 2025-10-19 16:21:33 +02:00
ps3
ptp ptp: Limit time setting of PTP clocks 2025-12-07 06:09:20 +09:00
pwm pwm: stm32: Always program polarity 2026-01-19 13:10:12 +01:00
rapidio
ras
regulator regulator: core: Protect regulator_supply_alias_list with regulator_list_mutex 2026-01-19 13:09:35 +01:00
remoteproc remoteproc: qcom_q6v5_wcss: fix parsing of qcom,halt-regs 2026-01-19 13:09:36 +01:00
reset
rpmsg rpmsg: glink: fix rpmsg device leak 2026-01-19 13:09:54 +01:00
rtc rtc: rx8025: fix incorrect register reference 2025-12-07 06:09:26 +09:00
s390 s390/ap: Don't leak debug feature files if AP instructions are not available 2026-01-19 13:09:24 +01:00
sbus
scsi scsi: Revert "scsi: libsas: Fix exp-attached device scan after probe failure scanned in again after probe failed" 2026-01-19 13:10:15 +01:00
sh
siox
slimbus slimbus: ngd: Fix reference count leak in qcom_slim_ngd_notify_slaves 2025-12-07 06:09:35 +09:00
soc soc: amlogic: canvas: fix device leak on lookup 2026-01-19 13:09:54 +01:00
soundwire
spi spi: fsl-cpm: Check length parity before switching to 16 bit mode 2026-01-19 13:09:46 +01:00
spmi
ssb
staging media: verisilicon: Protect G2 HEVC decoder against invalid DPB index 2026-01-19 13:10:09 +01:00
target scsi: target: Reset t_task_cdb pointer in error case 2026-01-19 13:09:51 +01:00
tc
tee tee: allow a driver to allocate a tee_device without a pool 2025-12-07 06:09:17 +09:00
thermal thermal/drivers/qcom/lmh: Add missing IRQ includes 2025-10-19 16:21:31 +02:00
thunderbolt thunderbolt: Add support for Intel Wildcat Lake 2025-12-07 06:09:35 +09:00
tty serial: sprd: Return -EPROBE_DEFER when uart clock is not ready 2026-01-19 13:09:48 +01:00
uio uio: uio_fsl_elbc_gpcm:: Add null pointer check to uio_fsl_elbc_gpcm_probe 2026-01-19 13:09:23 +01:00
usb usb: gadget: lpc32xx_udc: fix clock imbalance in error path 2026-01-19 13:10:13 +01:00
vdpa vdpa: Sync calls set/get config/status with cf_mutex 2026-01-19 13:09:34 +01:00
vfio
vhost vhost/vsock: improve RCU read sections around vhost_vsock_get() 2026-01-19 13:09:48 +01:00
video fbdev: tcx.c fix mem_map to correct smem_start offset 2026-01-19 13:10:02 +01:00
virt minmax: add in_range() macro 2025-10-19 16:21:28 +02:00
virtio mm/balloon_compaction: convert balloon_page_delete() to balloon_page_finalize() 2026-01-19 13:10:10 +01:00
visorbus
vlynq
vme
w1
watchdog via_wdt: fix critical boot hang due to unnamed resource allocation 2026-01-19 13:09:47 +01:00
xen xen/events: Update virq_to_irq on migration 2025-10-19 16:21:55 +02:00
zorro
Kconfig
Makefile