]> git.sur5r.net Git - u-boot/commit
ahci: use ports implemented map instead of num_ports
authorRichard Gibbs <richard.gibbs@calxeda.com>
Sat, 24 Aug 2013 15:10:47 +0000 (10:10 -0500)
committerTom Rini <trini@ti.com>
Fri, 6 Sep 2013 17:09:07 +0000 (13:09 -0400)
commit2915a0223ae9632c9f555809ed20b3257ea47949
treefa0af40eae314c9f13eca6f30d14343755548e0c
parent4412db46468d5965da736d06f84d13e68a6e0b51
ahci: use ports implemented map instead of num_ports

The AHCI driver was incorrectly using the Capabilities register NP (number
of ports) field to determine which ports to activate. This commit changes
it to correctly use the PORTS_IMPL register as a port map.

Signed-off-by: Richard Gibbs <richard.gibbs@calxeda.com>
Reviewed-by: Tom Rini <trini@ti.com>
drivers/block/ahci.c