From 0e6f6366bc1645c151811c575d667a7676c5d53f Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 9 Dec 2010 08:39:48 +0100 Subject: [PATCH] ahci: set controller id Fill the controller id in the drive struct with the port number so we get a sane boot menu ordering with multiple hard disks attached. Signed-off-by: Gerd Hoffmann --- src/ahci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ahci.c b/src/ahci.c index 4ccee86..e2b2dbf 100644 --- a/src/ahci.c +++ b/src/ahci.c @@ -345,6 +345,7 @@ ahci_port_init(struct ahci_ctrl_s *ctrl, u32 pnr) } port->drive.type = DTYPE_AHCI; + port->drive.cntl_id = pnr; port->drive.removable = (buffer[0] & 0x80) ? 1 : 0; port->drive.desc = malloc_tmp(MAXDESCSIZE); if (!port->drive.desc) { -- 2.39.5