diff options
author | Vladimir Serbinenko <phcoder@gmail.com> | 2015-05-18 15:00:31 +0200 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2015-05-21 11:31:15 -0400 |
commit | 40dfc0ee947c35f31e935ec290622e7780bb52b8 (patch) | |
tree | b1f98ae7a5941fa72767a604dc992fdd6781d555 /src/hw/ahci.c | |
parent | 92f9b9189eb00da42a8bfcf26c664f48ee8d2868 (diff) | |
download | seabios-40dfc0ee947c35f31e935ec290622e7780bb52b8.tar.gz |
ahci: Ignore max_ports.
At least AHCI on Intel on some machines claim to support only 6 ports
while in fact higher port numbers are present and work.
This is needed to access CD-ROM on PackardBell MS2290.
Both GRUB and Linux have a similar workaround.
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Diffstat (limited to 'src/hw/ahci.c')
-rw-r--r-- | src/hw/ahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hw/ahci.c b/src/hw/ahci.c index ff5d5f9e..3193d81a 100644 --- a/src/hw/ahci.c +++ b/src/hw/ahci.c @@ -601,7 +601,7 @@ ahci_controller_setup(struct pci_device *pci) dprintf(2, "AHCI: cap 0x%x, ports_impl 0x%x\n", ctrl->caps, ctrl->ports); - max = ctrl->caps & 0x1f; + max = 0x1f; for (pnr = 0; pnr <= max; pnr++) { if (!(ctrl->ports & (1 << pnr))) continue; |