On Wed, 11 Oct 2023 at 13:27, Tony Dinh <mibo...@gmail.com> wrote: > > Add ahci sata bootdev and corresponding hunting function. > > Signed-off-by: Tony Dinh <mibo...@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 <s...@chromium.org>