Skip to content

Commit

Permalink
[SCSI] mvsas: increase port type detection delay to suit Seagate's 10…
Browse files Browse the repository at this point in the history
…k6 drive ST3450856SS 0003

I increased the delay step by step until loading of mvsas
reliably detected the drive 200 times in sequence. A much better
approach would be to monitor the hardware for some flag which
indicates that port detection has finished, but I do not have any
hardware documentation.

Signed-off-by: Reinhard Nissl <rnissl@gmx.de>
Cc: Ke Wei <kewei@marvell.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
  • Loading branch information
Reinhard Nissl authored and James Bottomley committed Jan 2, 2009
1 parent 8f78fc5 commit ddccf30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/mvsas.c
Original file line number Diff line number Diff line change
Expand Up @@ -2959,7 +2959,7 @@ static int __devinit mvs_hw_init(struct mvs_info *mvi)

/* enable auto port detection */
mw32(GBL_PORT_TYPE, MODE_AUTO_DET_EN);
msleep(100);
msleep(1100);
/* init and reset phys */
for (i = 0; i < mvi->chip->n_phy; i++) {
u32 lo = be32_to_cpu(*(u32 *)&mvi->sas_addr[4]);
Expand Down

0 comments on commit ddccf30

Please sign in to comment.