spi: ep93xx: Repair SPI CS lookup tables
Subsystems (7)
Alexander Sverdlin
maintainerPATCH 1/1 spi: ep93xx: Repair SPI CS lookup tables
The actual device name of the SPI controller being registered on EP93xx is "spi0" (as seen by gpiod_find_lookup_table()). This patch fixes all relevant lookup tables and the following failure (seen on EDB9302):
ep93xx-spi ep93xx-spi.0: failed to register SPI master
ep93xx-spi: probe of ep93xx-spi.0 failed with error -22
--- arch/arm/mach-ep93xx/edb93xx.c | 2 +- arch/arm/mach-ep93xx/simone.c | 2 +- arch/arm/mach-ep93xx/ts72xx.c | 4 ++-- arch/arm/mach-ep93xx/vision_ep9307.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
arch/arm/mach-ep93xx/edb93xx.c +1 -1
@@ -103,7 +103,7 @@ static struct spi_board_info edb93xx_spi_board_info[] __initdata = { };static struct gpiod_lookup_table edb93xx_spi_cs_gpio_table = { - .dev_id ="ep93xx-spi.0" , + .dev_id ="spi0" , .table = {GPIO_LOOKUP ("A" ,6 ,"cs" ,GPIO_ACTIVE_LOW ), { },
arch/arm/mach-ep93xx/simone.c +1 -1
@@ -73,7 +73,7 @@ static struct spi_board_info simone_spi_devices[] __initdata = {* v1.3 parts will still work, since the signal on SFRMOUT is automatic. */ static struct gpiod_lookup_table simone_spi_cs_gpio_table = { - .dev_id ="ep93xx-spi.0" , + .dev_id ="spi0" , .table = {GPIO_LOOKUP ("A" ,1 ,"cs" ,GPIO_ACTIVE_LOW ), { },
arch/arm/mach-ep93xx/ts72xx.c +2 -2
@@ -267,7 +267,7 @@ static struct spi_board_info bk3_spi_board_info[] __initdata = {* goes through CPLD */ static struct gpiod_lookup_table bk3_spi_cs_gpio_table = { - .dev_id ="ep93xx-spi.0" , + .dev_id ="spi0" , .table = {GPIO_LOOKUP ("F" ,3 ,"cs" ,GPIO_ACTIVE_LOW ), { },
@@ -316,7 +316,7 @@ static struct spi_board_info ts72xx_spi_devices[] __initdata = { };static struct gpiod_lookup_table ts72xx_spi_cs_gpio_table = { - .dev_id ="ep93xx-spi.0" , + .dev_id ="spi0" , .table = {/* DIO_17 */ GPIO_LOOKUP ("F" ,2 ,"cs" ,GPIO_ACTIVE_LOW ),
arch/arm/mach-ep93xx/vision_ep9307.c +1 -1
@@ -242,7 +242,7 @@ static struct spi_board_info vision_spi_board_info[] __initdata = { };static struct gpiod_lookup_table vision_spi_cs_gpio_table = { - .dev_id ="ep93xx-spi.0" , + .dev_id ="spi0" , .table = {GPIO_LOOKUP_IDX ("A" ,6 ,"cs" ,0 ,GPIO_ACTIVE_LOW ),GPIO_LOOKUP_IDX ("A" ,7 ,"cs" ,1 ,GPIO_ACTIVE_LOW ),
Signature · 1 line
2.21.0
Quoted 10 lines · Alexander Sverdlin
The actual device name of the SPI controller being registered on EP93xx is "spi0" (as seen by
gpiod_find_lookup_table()). This patch fixes all relevant lookup tables and the following failure (seen on EDB9302):ep93xx-spi ep93xx-spi.0: failed to register SPI master
ep93xx-spi: probe of ep93xx-spi.0 failed with error -22Fixes 1dfbf334f1236 ("spi: ep93xx: Convert to use CS GPIO descriptors")Signed-off-by Alexander Sverdlin <[email protected]>
Sorry for the mistakes and thanks for fixing, much appreciated!
Yours,
Linus Walleij
Quoted 76 lines · On Sat, 31 Aug 2019 20:04:02 +0200 Alexander Sverdlin…
The actual device name of the SPI controller being registered on EP93xx is "spi0" (as seen by
gpiod_find_lookup_table()). This patch fixes all relevant lookup tables and the following failure (seen on EDB9302):ep93xx-spi ep93xx-spi.0: failed to register SPI master
ep93xx-spi: probe of ep93xx-spi.0 failed with error -22Fixes 1dfbf334f1236 ("spi: ep93xx: Convert to use CS GPIOdescriptors") Cc: [email protected]
Signed-off-by Alexander Sverdlin <[email protected]>--- arch/arm/mach-ep93xx/edb93xx.c | 2 +- arch/arm/mach-ep93xx/simone.c | 2 +- arch/arm/mach-ep93xx/ts72xx.c | 4 ++-- arch/arm/mach-ep93xx/vision_ep9307.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)(quoted diff) +0
-0
b/arch/arm/mach-ep93xx/edb93xx.cindex1f0da76a39de..7b7280c21ee0100644 ---a/arch/arm/mach-ep93xx/edb93xx.c
+++b/arch/arm/mach-ep93xx/edb93xx.carch/arm/mach-ep93xx/edb93xx.c +1
-1@@ -103,7 +103,7 @@ static struct spi_board_info edb93xx_spi_board_info[] __initdata = { };static struct gpiod_lookup_table edb93xx_spi_cs_gpio_table = { - .dev_id ="ep93xx-spi.0" , + .dev_id ="spi0" , .table = {GPIO_LOOKUP ("A" ,6 ,"cs" ,GPIO_ACTIVE_LOW ), { },(quoted diff) +0
-0
b/arch/arm/mach-ep93xx/simone.cindexe2658e22bba1..8a53b74dc4b2100644 ---a/arch/arm/mach-ep93xx/simone.c
+++b/arch/arm/mach-ep93xx/simone.c(quoted diff) +0
-0@@ -73,7 +73,7 @@ static struct spi_board_info simone_spi_devices[] __initdata = { * v1.3 parts will still work, since the signal on SFRMOUT isautomatic. */
static structgpiod_lookup_tablesimone_spi_cs_gpio_table= {arch/arm/mach-ep93xx/simone.c +1
-1- .dev_id = "ep93xx-spi.0", + .dev_id = "spi0", .table = { GPIO_LOOKUP("A", 1, "cs", GPIO_ACTIVE_LOW), { },(quoted diff) +0
-0
b/arch/arm/mach-ep93xx/ts72xx.cindex582e06e104fd..e0e1b11032f1100644 ---a/arch/arm/mach-ep93xx/ts72xx.c
+++b/arch/arm/mach-ep93xx/ts72xx.carch/arm/mach-ep93xx/ts72xx.c +1
-1@@ -267,7 +267,7 @@ static struct spi_board_info bk3_spi_board_info[]__initdata = { * goes through CPLD */ static struct gpiod_lookup_table bk3_spi_cs_gpio_table = { - .dev_id ="ep93xx-spi.0" , + .dev_id ="spi0" , .table = {GPIO_LOOKUP ("F" ,3 ,"cs" ,GPIO_ACTIVE_LOW ),arch/arm/mach-ep93xx/ts72xx.c +1
-1{ },@@ -316,7 +316,7 @@ static struct spi_board_info ts72xx_spi_devices[] __initdata = { };static struct gpiod_lookup_table ts72xx_spi_cs_gpio_table = { - .dev_id ="ep93xx-spi.0" , + .dev_id ="spi0" , .table = {/* DIO_17 */ GPIO_LOOKUP ("F" ,2 ,"cs" ,GPIO_ACTIVE_LOW ),(quoted diff) +0
-0
b/arch/arm/mach-ep93xx/vision_ep9307.cindexa88a1d807b32..cbcba3136d74100644 ---a/arch/arm/mach-ep93xx/vision_ep9307.c+++b/arch/arm/mach-ep93xx/vision_ep9307.c@@ -242,7 +242,7 @@ static structspi_board_infovision_spi_board_info[]__initdata= { };static struct
gpiod_lookup_tablevision_spi_cs_gpio_table= {
arch/arm/mach-ep93xx/vision_ep9307.c static struct spi_board_info vision_spi_board_info[] __initdata = { · line 248
Quoted 5 lines
arch/arm/mach-ep93xx/vision_ep9307.c +1
-1- .dev_id = "ep93xx-spi.0", + .dev_id = "spi0", .table = {GPIO_LOOKUP_IDX ("A" ,6 ,"cs" ,0 ,GPIO_ACTIVE_LOW ), GPIO_LOOKUP_IDX("A", 7, "cs", 1, GPIO_ACTIVE_LOW),
Best regards,
Lukasz Majewski
Mark Brown
maintainerApplied "spi: ep93xx: Repair SPI CS lookup tables" to the spi tree
In reply to Alexander SverdlinThe patch
spi: ep93xx: Repair SPI CS lookup tables
has been applied to the spi tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.4
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
4fbc485324d2975c54201091dfad0a7dd4902324Mon Sep 17 00:00:00 2001
From: Alexander Sverdlin <[email protected]>
Date: Sat, 31 Aug 2019 20:04:02 +0200
Subject: [PATCH] spi: ep93xx: Repair SPI CS lookup tables
The actual device name of the SPI controller being registered on EP93xx is "spi0" (as seen by gpiod_find_lookup_table()). This patch fixes all relevant lookup tables and the following failure (seen on EDB9302):
ep93xx-spi ep93xx-spi.0: failed to register SPI master
ep93xx-spi: probe of ep93xx-spi.0 failed with error -22
--- arch/arm/mach-ep93xx/edb93xx.c | 2 +- arch/arm/mach-ep93xx/simone.c | 2 +- arch/arm/mach-ep93xx/ts72xx.c | 4 ++-- arch/arm/mach-ep93xx/vision_ep9307.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
arch/arm/mach-ep93xx/edb93xx.c +1 -1
@@ -103,7 +103,7 @@ static struct spi_board_info edb93xx_spi_board_info[] __initdata = { };static struct gpiod_lookup_table edb93xx_spi_cs_gpio_table = { - .dev_id ="ep93xx-spi.0" , + .dev_id ="spi0" , .table = {GPIO_LOOKUP ("A" ,6 ,"cs" ,GPIO_ACTIVE_LOW ), { },
arch/arm/mach-ep93xx/simone.c +1 -1
@@ -73,7 +73,7 @@ static struct spi_board_info simone_spi_devices[] __initdata = {* v1.3 parts will still work, since the signal on SFRMOUT is automatic. */ static struct gpiod_lookup_table simone_spi_cs_gpio_table = { - .dev_id ="ep93xx-spi.0" , + .dev_id ="spi0" , .table = {GPIO_LOOKUP ("A" ,1 ,"cs" ,GPIO_ACTIVE_LOW ), { },
arch/arm/mach-ep93xx/ts72xx.c +2 -2
@@ -267,7 +267,7 @@ static struct spi_board_info bk3_spi_board_info[] __initdata = {* goes through CPLD */ static struct gpiod_lookup_table bk3_spi_cs_gpio_table = { - .dev_id ="ep93xx-spi.0" , + .dev_id ="spi0" , .table = {GPIO_LOOKUP ("F" ,3 ,"cs" ,GPIO_ACTIVE_LOW ), { },
@@ -316,7 +316,7 @@ static struct spi_board_info ts72xx_spi_devices[] __initdata = { };static struct gpiod_lookup_table ts72xx_spi_cs_gpio_table = { - .dev_id ="ep93xx-spi.0" , + .dev_id ="spi0" , .table = {/* DIO_17 */ GPIO_LOOKUP ("F" ,2 ,"cs" ,GPIO_ACTIVE_LOW ),
arch/arm/mach-ep93xx/vision_ep9307.c +1 -1
@@ -242,7 +242,7 @@ static struct spi_board_info vision_spi_board_info[] __initdata = { };static struct gpiod_lookup_table vision_spi_cs_gpio_table = { - .dev_id ="ep93xx-spi.0" , + .dev_id ="spi0" , .table = {GPIO_LOOKUP_IDX ("A" ,6 ,"cs" ,0 ,GPIO_ACTIVE_LOW ),GPIO_LOOKUP_IDX ("A" ,7 ,"cs" ,1 ,GPIO_ACTIVE_LOW ),
Signature · 1 line
2.20.1