diff options
author | Simon Glass <sjg@chromium.org> | 2016-11-13 21:22:05 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-11-26 00:59:30 (GMT) |
commit | 28f98858759f546afc21f852f556ac648c08089f (patch) | |
tree | 639e693522707afee7c788e8971f196c585c4a25 /drivers | |
parent | b42524744d3c7ca015ec7702f3420104539491ac (diff) | |
download | u-boot-28f98858759f546afc21f852f556ac648c08089f.tar.xz |
spi: Add a debug() on bind failure
This is an uncommon error but we may as well have a debug() message when
it happens.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/spi-uclass.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c index 26eada2..f59a701 100644 --- a/drivers/spi/spi-uclass.c +++ b/drivers/spi/spi-uclass.c @@ -297,8 +297,11 @@ int spi_get_bus_and_cs(int busnum, int cs, int speed, int mode, debug("%s: Binding new device '%s', busnum=%d, cs=%d, driver=%s\n", __func__, dev_name, busnum, cs, drv_name); ret = device_bind_driver(bus, drv_name, dev_name, &dev); - if (ret) + if (ret) { + debug("%s: Unable to bind driver (ret=%d)\n", __func__, + ret); return ret; + } plat = dev_get_parent_platdata(dev); plat->cs = cs; plat->max_hz = speed; |