[U-Boot] [PATCH 2/2] dm: spi: Do not assume first SPI bus

Thomas Fitzsimmons fitzsim at fitzsim.org
Fri Sep 6 11:51:19 UTC 2019

When CONFIG_OF_PRIOR_STAGE is enabled, this workaround was needed
before device_bind_common assigned request numbers sequentially in the
absence of aliases.

Signed-off-by: Thomas Fitzsimmons <fitzsim at fitzsim.org>
Cc: Bin Meng <bmeng.cn at gmail.com>
Cc: Simon Glass <sjg at chromium.org>
 drivers/spi/spi-uclass.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c
index 88cb2a1262..5e1f2232e5 100644
--- a/drivers/spi/spi-uclass.c
+++ b/drivers/spi/spi-uclass.c
@@ -275,7 +275,7 @@ int spi_get_bus_and_cs(int busnum, int cs, int speed, int mode,
 	bool created = false;
 	int ret;
 	ret = uclass_first_device_err(UCLASS_SPI, &bus);
 	ret = uclass_get_device_by_seq(UCLASS_SPI, busnum, &bus);

More information about the U-Boot mailing list