[U-Boot] [PATCH v2 23/44] dm: sata: Separate the non-command code into its own file

Simon Glass sjg at chromium.org
Sat May 14 21:35:50 CEST 2016


On 1 May 2016 at 11:36, Simon Glass <sjg at chromium.org> wrote:
> At present the SATA command code includes both the command-processing code
> and the core SATA functions and data structures.
>
> Separate the latter into its own file, adding functions as needed to avoid
> the command code accessing data structures directly.
>
> With this commit:
> - All CONFIG option are referenced from the non-command code
> - The concept of a 'current SATA device' is confined to the command code
>
> This will make it easier to convert this code to driver model.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2: None
>
>  cmd/sata.c      | 138 ++++++++------------------------------------------------
>  common/Makefile |   1 +
>  common/sata.c   |  86 +++++++++++++++++++++++++++++++++++
>  3 files changed, 107 insertions(+), 118 deletions(-)
>  create mode 100644 common/sata.c

Applied to u-boot-dm.


More information about the U-Boot mailing list