Skip to content
Snippets Groups Projects
Commit 1b51d32c authored by li pengbo's avatar li pengbo Committed by Tom Rini
Browse files

sata: fix a bug in init_sata() for pci-sata card


Except the first loop, init_sata() should return 0 instead of 1
in the others.

This patch fix the issue of the 2nd sata port not workable on pci-sata card.

Signed-off-by: default avatarPengbo Li <Pengbo.Li@freescale.com>
parent f333b9f7
No related branches found
No related tags found
No related merge requests found
...@@ -519,7 +519,7 @@ int init_sata(int dev) ...@@ -519,7 +519,7 @@ int init_sata(int dev)
u16 word; u16 word;
if (init_done == 1 && dev < sata_info.maxport) if (init_done == 1 && dev < sata_info.maxport)
return 1; return 0;
init_done = 1; init_done = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment