Re: [PATCH v1 2/3] lib: bootstrap: detect SD card before mounting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 2, 2019 at 12:26 PM Sam Ravnborg <sam@xxxxxxxxxxxx> wrote:
>
> To support bootstrap from SD card run a detect all before
> mounting the SD card.
>
> Signed-off-by: Sam Ravnborg <sam@xxxxxxxxxxxx>
> ---
>  lib/bootstrap/disk.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/lib/bootstrap/disk.c b/lib/bootstrap/disk.c
> index fd016166e..77be95c2f 100644
> --- a/lib/bootstrap/disk.c
> +++ b/lib/bootstrap/disk.c
> @@ -21,6 +21,8 @@ void* bootstrap_read_disk(const char *dev, const char *fstype)
>         size_t len;
>         const char *path = "/";
>
> +       device_detect_all();
> +

Can device_detect_by_name(dev) be used here instead?

Thanks,
Andrey Smirnov

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux