diff options
author | Simon Glass <sjg@chromium.org> | 2014-10-14 05:42:07 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-10-22 16:36:50 (GMT) |
commit | fbb099183e3a53f77a975964cdf2e73d11e565af (patch) | |
tree | cb62983490341f41d3944e6d3c58fb5166621568 /configs/x600_defconfig | |
parent | 4c2dbefde58917205af51a2c20b3069e01e55cf4 (diff) | |
download | u-boot-fsl-qoriq-fbb099183e3a53f77a975964cdf2e73d11e565af.tar.xz |
dm: Convert spi_flash_probe() and 'sf probe' to use driver model
We want the SPI flash probing feature to operate as a standard driver.
Add a driver for the basic probing feature used by most boards. This
will be activated by device_probe() as with any other driver.
The 'sf probe' command currently keeps track of the SPI slave that it
last used. This doesn't work with driver model, since some other driver
or system may have probed the device and have access to it too. On the
other hand, if we try to probe a device twice the second probe is a nop
with driver model.
Fix this by searching for the matching device, removing it, and then
probing it again. This should work as expected regardless of other device
activity.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Diffstat (limited to 'configs/x600_defconfig')
0 files changed, 0 insertions, 0 deletions