[PATCH v2] cmd: Ensure sf operates on spi flash
Sean Anderson
seanga2 at gmail.com
Tue Feb 4 15:10:32 CET 2020
On 2/4/20 5:49 AM, Bin Meng wrote:
> Hi Sean,
>
> On Mon, Jan 20, 2020 at 7:13 AM Sean Anderson <seanga2 at gmail.com> wrote:
>>
>> Currently, the sf command will probe anything attached to an spi bus, regardless
>> of whether it is UCLASS_SPI_FLASH. This came up when testing the mmc_spi driver,
>
> Did you do something like:
>
> => sf probe 1 0
sf probe 0, but yes. I forgot that my spi bus 0 had the SD card on it
not the spi flash. I feel like this sort of thing should be caught by
u-boot to prevent the user from almost certainly causing a segfault.
--Sean
More information about the U-Boot
mailing list