diff options
author | Xiangliang Yu <yuxiangl@marvell.com> | 2011-05-24 10:26:50 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-07-26 02:25:02 -0400 |
commit | 534ff10104427ccad071ef87ae7017d47d08e50b (patch) | |
tree | 3e0e7a74ef1c109a7a343817295ed6e925fd22c7 /drivers/scsi/mvsas/mv_sas.c | |
parent | 45b583b10a8b438b970e95a7d1d4db22c9e35004 (diff) |
[SCSI] mvsas: Add support for Non specific NCQ error interrupt
Signed-off-by: Xiangliang Yu <yuxiangl@marvell.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/mvsas/mv_sas.c')
-rw-r--r-- | drivers/scsi/mvsas/mv_sas.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/scsi/mvsas/mv_sas.c b/drivers/scsi/mvsas/mv_sas.c index 0ef27425c447..aaa475a3eda6 100644 --- a/drivers/scsi/mvsas/mv_sas.c +++ b/drivers/scsi/mvsas/mv_sas.c | |||
@@ -253,6 +253,20 @@ int mvs_find_dev_phyno(struct domain_device *dev, int *phyno) | |||
253 | return num; | 253 | return num; |
254 | } | 254 | } |
255 | 255 | ||
256 | struct mvs_device *mvs_find_dev_by_reg_set(struct mvs_info *mvi, | ||
257 | u8 reg_set) | ||
258 | { | ||
259 | u32 dev_no; | ||
260 | for (dev_no = 0; dev_no < MVS_MAX_DEVICES; dev_no++) { | ||
261 | if (mvi->devices[dev_no].taskfileset == MVS_ID_NOT_MAPPED) | ||
262 | continue; | ||
263 | |||
264 | if (mvi->devices[dev_no].taskfileset == reg_set) | ||
265 | return &mvi->devices[dev_no]; | ||
266 | } | ||
267 | return NULL; | ||
268 | } | ||
269 | |||
256 | static inline void mvs_free_reg_set(struct mvs_info *mvi, | 270 | static inline void mvs_free_reg_set(struct mvs_info *mvi, |
257 | struct mvs_device *dev) | 271 | struct mvs_device *dev) |
258 | { | 272 | { |