[PATCH 2/2] riscv: dts: canaan: Disable I/O devices unless used
Damien Le Moal
dlemoal at kernel.org
Wed May 8 23:58:20 PDT 2024
On 5/8/24 7:20 PM, Geert Uytterhoeven wrote:
> It is considered good practice to disable on-SoC devices providing
> external I/O in the SoC-specific .dtsi, and enable them explicitly in
> the board-specific DTS files when actually wired-up and used.
>
> Hence:
> - Set the status of I/O devices in k210.dtsi to "disabled",
> - Override the status of used I/O devices in board-specific DTS files
> to "okay",
> - Drop unneeded status overrides in board DTS-specific files for the
> always-enabled pin controller.
>
> On e.g. MAiXBiT, this gets rid of an error message when probing the
> unused slave-only spi2 controller:
>
> dw_spi_mmio 50240000.spi: error -22: problem registering spi host
> dw_spi_mmio 50240000.spi: probe with driver dw_spi_mmio failed with error -22
>
> which is seen since commit 98d75b9ef282f6b9 ("spi: dw: Drop default
> number of CS setting").
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
Looks good to me.
Reviewed-by: Damien Le Moal <dlemoal at kernel.org>
--
Damien Le Moal
Western Digital Research
More information about the linux-riscv
mailing list