[PATCH v5] bootstd: sata: Add bootstd support for ahci sata
Simon Glass
sjg at chromium.org
Thu Oct 12 05:45:21 CEST 2023
On Wed, 11 Oct 2023 at 13:27, Tony Dinh <mibodhi at gmail.com> wrote:
>
> Add ahci sata bootdev and corresponding hunting function.
>
> Signed-off-by: Tony Dinh <mibodhi at gmail.com>
> ---
>
> Changes in v5:
> - In bootmeth_script script_boot(), it's unnecessary to check for ret so
> remove it. While we're here, also initialize ret in declaration.
>
> Changes in v4:
> - Revise logic in bootmeth_script() to set devtype to sata for non-scsi
> SATA device
> - Rewrite sata_rescan() logic to properly remove all devices before probing
> - Add description to sata_rescan() header
>
> Changes in v3:
> - Correct drivers/ata/Makefile to compile sata_bootdev only if
> ahci sata is enabled.
>
> Changes in v2:
> - set devtype to sata in bootmeth_script for non-scsi SATA device.
>
> boot/bootmeth_script.c | 16 +++++++---
> drivers/ata/Makefile | 2 +-
> drivers/ata/sata.c | 32 ++++++++++++++++++++
> drivers/ata/sata_bootdev.c | 62 ++++++++++++++++++++++++++++++++++++++
> include/sata.h | 6 ++++
> 5 files changed, 113 insertions(+), 5 deletions(-)
> create mode 100644 drivers/ata/sata_bootdev.c
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list