linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fusion - mptspi - reset handler shouldn't be called for other bus protocals
@ 2006-05-17 22:17 Eric Moore
  2006-05-17 23:06 ` James Bottomley
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Moore @ 2006-05-17 22:17 UTC (permalink / raw)
  To: linux-scsi; +Cc: James.Bottomley

All registered reset callback handlers are called during reset processing.
The mptspi modules has its own reset callback handler, just recently
added for issuing domain validation after host reset.  If either the mptsas or
mptfc driver are loaded, this callback could be called. Thus resulting
in domain validation being issued for sas or fibre end devices.
This patch insures domain validation is only occuring on spi end devices

This is urgent bug fix. Pls apply this to scsi-rc-fixes-2.6,
as well as this patch posted yesterday:
http://marc.theaimsgroup.com/?l=linux-scsi&m=114782261719616&w=2


Signed-off-by: Eric Moore <Eric.Moore@lsil.com>

--- rc4u/drivers/message/fusion/mptspi.c	2006-05-12 00:14:15.000000000 -0500
+++ rc4/drivers/message/fusion/mptspi.c	2006-05-17 12:23:08.924423654 -0500
@@ -825,6 +825,9 @@
 
 	rc = mptscsih_ioc_reset(ioc, reset_phase);
 
+	if (rc == 0 || ioc->bus_type != SPI)
+		return rc;
+
 	if (reset_phase == MPT_IOC_POST_RESET)
 		mptspi_dv_renegotiate(hd);
 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-05-18 15:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-17 22:17 [PATCH] fusion - mptspi - reset handler shouldn't be called for other bus protocals Eric Moore
2006-05-17 23:06 ` James Bottomley
2006-05-18 14:45   ` Michael Reed
2006-05-18 14:54     ` James Bottomley
2006-05-18 15:11       ` Michael Reed
2006-05-18 15:46         ` Michael Reed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).