]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] mpt2sas: sanity added to remove duplicate port from topology
authorKashyap, Desai <kashyap.desai@lsi.com>
Mon, 5 Apr 2010 08:48:34 +0000 (14:18 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 18:41:50 +0000 (13:41 -0500)
commitf41ff6bb26beea53885778be1344b5aef73aeb1e
treeda6bbf3f397a0f6c443dc9b20d4ccef67aa56204
parentf73885b681181488045073333f75722a4dd566c6
[SCSI] mpt2sas: sanity added to remove duplicate port from topology

There are few special cases which needs to be handled deleting old port.

CASE1: In topology you need cascaded expanders. Through sysfs just make sure
topology is up. Erase the manufacturing image of the cascaded expander and
reset the board. In some cases Adapter will receive Exapnder Add event
before expander delete. In such a case, driver needs to delete duplicate
port before adding new port.

CASE2: Enable Device Missing delay of HBA through lsiutils. If expander or
end device is hotswapped with different device before DMD timer expires,
driver will get device add for new device first and then device deletion
event for the original devices will arrive later at DMD timer expires. In
this case also driver need to delete duplicate port before adding port for
new device.

Added new function which will make sure when new port is
added, that its not claiming the same phy resources already in use by
another port. If it does, then it will delete the other port before adding
the new port.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/mpt2sas/mpt2sas_base.h
drivers/scsi/mpt2sas/mpt2sas_transport.c