diff options
author | Xiangliang Yu <yuxiangl@marvell.com> | 2011-05-24 16:26:50 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-07-26 08:25:02 +0200 |
commit | 534ff10104427ccad071ef87ae7017d47d08e50b (patch) | |
tree | 3e0e7a74ef1c109a7a343817295ed6e925fd22c7 /drivers/scsi/mvsas/mv_sas.c | |
parent | Merge 'akpm' patch series (diff) | |
download | linux-534ff10104427ccad071ef87ae7017d47d08e50b.tar.xz linux-534ff10104427ccad071ef87ae7017d47d08e50b.zip |
[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) return num; } +struct mvs_device *mvs_find_dev_by_reg_set(struct mvs_info *mvi, + u8 reg_set) +{ + u32 dev_no; + for (dev_no = 0; dev_no < MVS_MAX_DEVICES; dev_no++) { + if (mvi->devices[dev_no].taskfileset == MVS_ID_NOT_MAPPED) + continue; + + if (mvi->devices[dev_no].taskfileset == reg_set) + return &mvi->devices[dev_no]; + } + return NULL; +} + static inline void mvs_free_reg_set(struct mvs_info *mvi, struct mvs_device *dev) { |