MLK-22293-3 ata: ahci: Fix nport index issue
authorYe Li <ye.li@nxp.com>
Fri, 19 Jul 2019 03:40:23 +0000 (20:40 -0700)
committerYe Li <ye.li@nxp.com>
Fri, 26 Jul 2019 02:47:16 +0000 (19:47 -0700)
commit2eb4513e30ca986ccd89d98dac9a947bea32ff1f
tree54bd185dfc69bd7359a5435bb4fc636436af48ff
parentc206ca62ec4e3a04af24c668d2394b81142b6ec4
MLK-22293-3 ata: ahci: Fix nport index issue

Ahci driver set max ports to 2, but the codes has comparing issue if we
only has one port. Also suppress the print of invalid port.

Signed-off-by: Ye Li <ye.li@nxp.com>
drivers/ata/ahci.c