aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mvsas/mv_sas.h
diff options
context:
space:
mode:
authorXiangliang Yu <yuxiangl@marvell.com>2013-01-30 00:25:53 +0800
committerJames Bottomley <JBottomley@Parallels.com>2013-02-22 11:18:33 +0000
commit7c237c5f6d5c62724ccd82aecdcd1fd9bd71dc75 (patch)
tree70660235d07bba87b4221912f08fabe3192a5c48 /drivers/scsi/mvsas/mv_sas.h
parent[SCSI] aacraid: 1024 max outstanding command support for Series 7 and above (diff)
downloadlinux-dev-7c237c5f6d5c62724ccd82aecdcd1fd9bd71dc75.tar.xz
linux-dev-7c237c5f6d5c62724ccd82aecdcd1fd9bd71dc75.zip
[SCSI] mvsas: fixed timeout issue when removing module
Root cause is libsas will clear asd_sas_port phy_mask value in sas_port_deform after triggering destruct workqueue, but the workqueue will send sync cmd and still need phy_mask value. Now, mvsas using asd_sas_phy setting instead of asd_sas_port setting. Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/mvsas/mv_sas.h')
-rw-r--r--drivers/scsi/mvsas/mv_sas.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/mvsas/mv_sas.h b/drivers/scsi/mvsas/mv_sas.h
index 2ae77a0394b2..9f3cc13a5ce7 100644
--- a/drivers/scsi/mvsas/mv_sas.h
+++ b/drivers/scsi/mvsas/mv_sas.h
@@ -76,6 +76,7 @@ extern struct kmem_cache *mvs_task_list_cache;
(__mc) != 0 ; \
(++__lseq), (__mc) >>= 1)
+#define MVS_PHY_ID (1U << sas_phy->id)
#define MV_INIT_DELAYED_WORK(w, f, d) INIT_DELAYED_WORK(w, f)
#define UNASSOC_D2H_FIS(id) \
((void *) mvi->rx_fis + 0x100 * id)