Commit 1b51d32c0f0ac7cdcab0ae04d531129a020cc903

Authored by li pengbo
Committed by Tom Rini
1 parent f333b9f7bc

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/block/sata_sil.c
... ... @@ -519,7 +519,7 @@
519 519 u16 word;
520 520  
521 521 if (init_done == 1 && dev < sata_info.maxport)
522   - return 1;
  522 + return 0;
523 523  
524 524 init_done = 1;
525 525