ata: ahci: Loop over the actual number of ports, not the maximum