Skip to content

Conversation

pelwell
Copy link
Contributor

@pelwell pelwell commented Sep 1, 2025

Device links are used to keep track of suppliers and consumers of resources, adding some control over the ordering of device probes other than returning -EPROBE_DEFER. The way the RP1 device is created breaks this mechanism in the rare case that the use of modules has been completely disabled, thanks to some opimisations within the device link code.

Fix this glitch by giving the corresponding fwnode a pointer to the device, taking the opportunity to remove a pointless check on the validity of the rp1_node pointer.

See: #7018

Device links are used to keep track of suppliers and consumers of
resources, adding some control over the ordering of device probes other
than returning -EPROBE_DEFER. The way the RP1 device is created breaks
this mechanism in the rare case that the use of modules has been
completely disabled, thanks to some opimisations within the device link
code.

Fix this glitch by giving the corresponding fwnode a pointer to the
device, taking the opportunity to remove a pointless check on the
validity of the rp1_node pointer.

See: raspberrypi#7018
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
@pelwell
Copy link
Contributor Author

pelwell commented Sep 3, 2025

Merging as low risk.

@pelwell pelwell merged commit 728023a into raspberrypi:rpi-6.12.y Sep 3, 2025
12 of 19 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Sep 5, 2025
kernel: configs: Add EROFS_FS_ZIP_ZSTD
See: raspberrypi/linux#7028

kernel: dt: Add eth_max_speed override for CM4, Pi4, and Pi400
See: raspberrypi/linux#7031

kernel: mfd: rp1: Fix device links when modules disabled
See: raspberrypi/linux#7027

kernel: Add adxl355 to i2c-sensor
See: raspberrypi/linux#6823

kernel: dtoverlays: Switch ssd1306 to use the DRM driver
See: raspberrypi/linux#7034

kernel: Added device tree overlays for the rpi-power HAT
See: raspberrypi/linux#7036

kernel: fixup! misc: rp1-pio: Request a DMA burst size of 8
See: raspberrypi/linux#7037
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Sep 5, 2025
kernel: configs: Add EROFS_FS_ZIP_ZSTD
See: raspberrypi/linux#7028

kernel: dt: Add eth_max_speed override for CM4, Pi4, and Pi400
See: raspberrypi/linux#7031

kernel: mfd: rp1: Fix device links when modules disabled
See: raspberrypi/linux#7027

kernel: Add adxl355 to i2c-sensor
See: raspberrypi/linux#6823

kernel: dtoverlays: Switch ssd1306 to use the DRM driver
See: raspberrypi/linux#7034

kernel: Added device tree overlays for the rpi-power HAT
See: raspberrypi/linux#7036

kernel: fixup! misc: rp1-pio: Request a DMA burst size of 8
See: raspberrypi/linux#7037
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant