sh: ecovec24: Make SPI mode explicit
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 2 May 2025 11:13:36 +0000 (13:13 +0200)
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Sat, 7 Jun 2025 13:16:31 +0000 (15:16 +0200)
Commit cf9e4784f3bde3e4 ("spi: sh-msiof: Add slave mode support") added
a new mode member to the sh_msiof_spi_info structure, but did not update
any board files.  Hence all users in board files rely on the default
being host mode.

Make this unambiguous by configuring host mode explicitly.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
arch/sh/boards/mach-ecovec24/setup.c

index 6f13557eecd6bb218bcc165b8f74360d19f4a705..a641e26f8fdf736975f0a4d4a39a3a640a24c93e 100644 (file)
@@ -825,6 +825,7 @@ static struct spi_board_info spi_bus[] = {
 /* MSIOF0 */
 static struct sh_msiof_spi_info msiof0_data = {
        .num_chipselect = 1,
+       .mode = MSIOF_SPI_HOST,
 };
 
 static struct resource msiof0_resources[] = {