[SCSI] mptspi: reset handler shouldn't be called for other bus protocols
authorJames Bottomley <James.Bottomley@steeleye.com>
Wed, 17 May 2006 23:06:52 +0000 (18:06 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Fri, 19 May 2006 21:43:08 +0000 (16:43 -0500)
commit4ff42a669a9ad3eb8274da31c7baabd968c2d365
tree39a79bc30bcfa41990d6b1986ceadb63c8d1183f
parentc3d833685583f943fb0b5511a9e4602becb1668b
[SCSI] mptspi: reset handler shouldn't be called for other bus protocols

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.

Fix this by having mptbase.c check the bus type against the driver
type and only call the reset handler if they match (or if it's a
non-bus specific reset handler).

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/message/fusion/mptbase.c