[U-Boot] [PATCH] dm: blk: Fix get_desc to return block device descriptor

Simon Glass sjg at chromium.org
Fri Nov 18 02:15:12 CET 2016


On 16 November 2016 at 09:37, Michal Simek <michal.simek at xilinx.com> wrote:
> Current get_desc() implementation is not able to succesfully
> finish and return pointer to block device descriptor.
>
> Also function always return non zero value even device is found.
>
> The patch fills block device descriptor and return 0 if device is found.
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
> I have tested it with blk scsi which I am reworking after first RFC.
> With this patch I can run scsi part, scsi info, scsi read (I didn't test
> write not to break my HDD).
>
> ---
>  drivers/block/blk-uclass.c | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list