zephyr/drivers
Andrzej Głąbek 3fed0510a6 drivers: pinctrl_nrf: Fix disconnecting of pins
This is a follow-up to commit 223cc3c6bd.

When a peripheral pin is disconnected, the pinctrl driver should skip
applying of GPIO configuration, as there is no pin number available in
such case, but due to an incorrect check, it actually did not skip it
and used an incorrect pin number for that. In nrfx prior to 3.0.0, this
caused an assertion failure, but because of a fallback routine, things
could still work in most cases (when assertions were disabled) as that
GPIO configuration was just applied to P0.31. Hence the bug was not
discovered until now. In the recent nrfx, this causes a null pointer
dereference, so always a crash.
This commit corrects the mentioned check and also uses the term "psel"
instead of "pin" where it is possible that the value is not a correct
pin number, in the hope of preventing a similar problem in the future.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2023-05-22 12:02:45 +02:00
..
adc drivers: adc: make use of new stm32 adc compatibles 2023-05-16 18:18:51 +02:00
audio
bbram
bluetooth drivers: bluetooth: Add Infineon Bluetooth driver 2023-05-17 09:59:36 +03:00
cache
can can: mcan: fix setup configuration ram 2023-05-22 08:03:58 +00:00
clock_control drivers: clock_control: stm32f3: Enable PWR clock to access BDCR and PWR_CR 2023-05-15 09:15:30 +00:00
console iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
coredump
counter counter: counter_nrfx_rtc: Align to renamed nrfx symbols 2023-05-05 11:47:53 +02:00
crypto dts: arm: stm32h5: Add aes node 2023-05-16 18:19:26 +02:00
dac
dai drivers: dai: ssp: fix power-up flow for Intel cAVS platforms 2023-04-21 14:02:02 -04:00
disk
display drivers: display: ili9342c display driver 2023-05-19 15:24:56 +02:00
dma drivers: dma: mcux_lpc: remove unused device config 2023-05-18 11:09:29 -05:00
edac
eeprom drivers: all: mchp_xec: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
entropy drivers: entropy_mcux_caam: Add semaphore 2023-05-09 13:24:00 -05:00
espi intc: miwu: npcx: improve interrupt latency of miwu input events 2023-05-17 09:48:54 +02:00
ethernet soc: arm: nxp_imx: support enet2 interface on RT106x series 2023-05-18 14:08:06 -05:00
flash drivers: flash: fix memcpy and invalidate dcache in hyperflash 2023-05-22 10:15:03 +02:00
fpga drivers: spi: make SPI dt-spec macros compatible with C++ 2023-04-24 21:29:55 +02:00
fuel_gauge drivers: fuel_gauge: sbs_gauge: Fix copy/paste error in RTTF 2023-05-20 05:59:16 -04:00
gpio drivers: gpio: npm1300: Added status readback 2023-05-22 10:15:46 +02:00
hwinfo drivers: hwinfo: esp32_net: add support for esp32_net 2023-04-28 14:49:08 +02:00
i2c driver: i2c: npcx_controller: use the non I2C device init macro 2023-05-22 10:16:39 +02:00
i2s drivers: i2s_mcux_flexcomm: Fix instance macro 2023-05-12 06:21:13 -05:00
i3c drivers: i3c: mcux: fix issues when only i2c devices are on the bus 2023-05-17 09:34:31 -05:00
ieee802154 drivers: ieee 802.15.4:: fix double-promotions warnings 2023-04-26 12:58:28 +02:00
input input: npcx_kbd: set the thread name 2023-05-18 09:32:33 +02:00
interrupt_controller intc: miwu: npcx: improve interrupt latency of miwu input events 2023-05-17 09:48:54 +02:00
ipm
kscan input: convert the Nuvoton npcx keyboard scan driver to input 2023-05-18 09:32:33 +02:00
led drivers: led: shell: Correct command help of set_brightness 2023-04-24 16:29:30 +02:00
led_strip
lora drivers: lora: sx126x: Support fine-grained STM32WL PA config 2023-04-24 13:33:25 +02:00
mbox
mdio
memc drivers: memc: add update clock function 2023-05-22 10:15:03 +02:00
mipi_dsi drivers: display: update MCUX ELCDIF driver to use new lcdif binding 2023-05-11 10:04:24 +02:00
misc drivers: misc: Add driver for RaspberryPi Pico PIO 2023-04-25 13:12:02 +02:00
mm xtensa: use sys_cache API instead of custom interfaces 2023-04-26 07:31:22 -04:00
modem modem: modem_iface_uart_async: handle RX errors 2023-05-08 16:42:58 +02:00
net
neural_net xtensa: use sys_cache API instead of custom interfaces 2023-04-26 07:31:22 -04:00
pcie iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
peci drivers: all: mchp_xec: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
pinctrl drivers: pinctrl_nrf: Fix disconnecting of pins 2023-05-22 12:02:45 +02:00
pm_cpu_ops
power_domain
ps2 drivers: all: mchp_xec: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
ptp_clock
pwm drivers: pwm: pwm_nrfx: Apply workaround for stopping PWM instance 2023-05-18 12:01:30 +02:00
regulator drivers: regulator: fixed: refactor initialization code. 2023-04-28 20:38:17 +02:00
reset
retained_mem retention: Add optional mutex disablement 2023-04-24 13:27:53 +02:00
rtc drivers: rtc: rtc_mc146818: Added RTC driver for Motorola MC146818B 2023-04-27 14:15:22 +02:00
sdhc drivers: sdhc: add support for using CPOL/CPHA SPI clock modes 2023-04-26 20:07:53 +02:00
sensor iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
serial driver: uart: pl011: fix interrupt driven API 2023-05-17 09:49:03 +02:00
sip_svc subsystem: sip_svc: Add ARM SiP SVC subsystem 2023-05-09 08:46:50 -04:00
smbus smbus: Change init priority from DEVICE to DEFAULT 2023-04-21 16:26:28 +02:00
spi drivers: spi_nrfx_spim: bring back get_nrf_spim_frequency 2023-05-17 16:21:52 +02:00
syscon
timer drivers: timer: nxp: Conditionally compile the wakeup source 2023-05-17 14:35:10 -05:00
usb iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
usb_c
video video: mt9m114: YUV pixel format support 2023-05-19 15:45:50 +02:00
virtualization drivers: virtualization: Add implementation for ivshmem-v2 2023-05-14 18:17:33 -04:00
w1 drivers: w1: Make 1-Wire Skip ROM cmd. optional 2023-05-19 16:29:35 +02:00
watchdog drivers: watchdog: add Xilinx AXI Timebase WDT driver 2023-05-19 16:14:24 +02:00
wifi driver: wifi: esp32: add wifi statistics info 2023-05-11 10:05:04 +02:00
xen
CMakeLists.txt drivers: sip_svc: Add driver for SiP Supervisory call 2023-05-09 08:46:50 -04:00
Kconfig drivers: sip_svc: Add driver for SiP Supervisory call 2023-05-09 08:46:50 -04:00