On Mon, 24 Aug 2026 18:21:05 -0700, Stephano Cetola wrote:
> spi_register_controller() only runs the OF alias lookup when
> ctrl->bus_num is negative. This driver's kzalloc'd ctlr leaves
> bus_num at 0. The lookup gets skipped. Every Rockchip SPI controller
> ends up on bus 0.
> 
> Any board that enables two Rockchip SPI controllers at once hits this
> bug. Both end up on bus 0. Looking one up by bus number can then
> return the wrong controller.
> 
> [...]

Applied, thanks!

[1/1] spi: rockchip: initialize bus_num to -1
      https://git.pengutronix.de/cgit/barebox/commit/?id=df1055a2e0dd (link may 
not be stable)

Best regards,
-- 
Sascha Hauer <[email protected]>


Reply via email to