Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] mvsas: increase port type detection delay to suit Seagate's 10k6 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>

authored by

Reinhard Nissl and committed by
James Bottomley
ddccf307 8f78fc5e

+1 -1
+1 -1
drivers/scsi/mvsas.c
··· 2959 2959 2960 2960 /* enable auto port detection */ 2961 2961 mw32(GBL_PORT_TYPE, MODE_AUTO_DET_EN); 2962 - msleep(100); 2962 + msleep(1100); 2963 2963 /* init and reset phys */ 2964 2964 for (i = 0; i < mvi->chip->n_phy; i++) { 2965 2965 u32 lo = be32_to_cpu(*(u32 *)&mvi->sas_addr[4]);