
22 Sep
2023
22 Sep
'23
8:27 p.m.
On Sun, 17 Sept 2023 at 17:07, Tony Dinh mibodhi@gmail.com wrote:
Add ahci sata bootdev and corresponding hunting function.
Signed-off-by: Tony Dinh mibodhi@gmail.com
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 | 14 +++++++-- drivers/ata/Makefile | 2 +- drivers/ata/sata.c | 32 ++++++++++++++++++++ drivers/ata/sata_bootdev.c | 62 ++++++++++++++++++++++++++++++++++++++ include/sata.h | 6 ++++ 5 files changed, 112 insertions(+), 4 deletions(-) create mode 100644 drivers/ata/sata_bootdev.c
Reviewed-by: Simon Glass sjg@chromium.org