mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
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: Pengbo Li <Pengbo.Li@freescale.com>
This commit is contained in:
parent
f333b9f7bc
commit
1b51d32c0f
1 changed files with 1 additions and 1 deletions
|
@ -519,7 +519,7 @@ int init_sata(int dev)
|
|||
u16 word;
|
||||
|
||||
if (init_done == 1 && dev < sata_info.maxport)
|
||||
return 1;
|
||||
return 0;
|
||||
|
||||
init_done = 1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue