[U-Boot] [PATCH v2 00/44] dm: blk: Add more driver-model support for block devices

Simon Glass sjg at chromium.org
Sat May 7 23:27:05 CEST 2016


Hi,

On 1 May 2016 at 11:35, Simon Glass <sjg at chromium.org> wrote:
> This series adjusts the block device code to support conversion to driver
> model. Specifically
>
> - A new 'legacy' block interface is created, allowing block devices to be
> defined by a linker list and accessed through function calls
> - Block device commands (such as sata and scsi) are adjusted to use these
> functions rather than the block device array directly
> - These same function calls are then implemented by the block uclass
> - The existing block-device table in part.c is dropped
> - The opportunity is taken to clean up the code style, as block devices are
> one of the few remaining dark corners in U-Boot
>
> It is useful to enable all block device drivers with sandbox. This improves
> sandbox code coverage and allows tests to be written. The following are
> enabled by this series:
>
> - IDE
> - SCSI
> - SATA
> - Systemace
>
> USB was already enabled. MMC will be enabled by a future series. Note that
> these devices do not actually function in sandbox, but the code is compiled.
>
> As mentioned, future work will enable MMC for sandbox including adding
> rudimentary sandbox SD card emulation. It would also be possible to create
> emulations for IDE, SCSI, SATA and Systemace but that work is not planned.
>
> It should be noted that the current CONFIG_DM_MMC option does not fully
> enable driver model for MMC, since the MMC operations are not running
> through driver model. This will need to be addressed at some point.
>
> This series is available at u-boot-dm/blka-working

I'd like to apply this series in the next few days - please let me
know if there are any more comments.

Regards,
Simon


More information about the U-Boot mailing list