Commit 4dc2757a2e9a9d1f2faee4fc6119276fc0061c16

Authored by Kashyap, Desai
Committed by James Bottomley
1 parent d315777b32

[SCSI] mpt2sas: Fix device removal handshake for zoned devices

When zoning end devices, the driver is not sending device
removal handshake alogrithm to firmware. This results in controller
firmware not sending sas topology add events the next time the device is
added. The fix is the driver should be doing the device removal handshake
even though the PHYSTATUS_VACANT bit is set in the PhyStatus of the
event data. The current design is avoiding the handshake when the
VACANT bit is set in the phy status.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Cc: stable@kernel.org
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

Showing 1 changed file with 0 additions and 3 deletions Side-by-side Diff

drivers/scsi/mpt2sas/mpt2sas_scsih.c
... ... @@ -2981,9 +2981,6 @@
2981 2981 u16 handle;
2982 2982  
2983 2983 for (i = 0 ; i < event_data->NumEntries; i++) {
2984   - if (event_data->PHY[i].PhyStatus &
2985   - MPI2_EVENT_SAS_TOPO_PHYSTATUS_VACANT)
2986   - continue;
2987 2984 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle);
2988 2985 if (!handle)
2989 2986 continue;