summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.c
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2013-12-04 17:10:21 -0600
committerJames Bottomley <JBottomley@Parallels.com>2013-12-19 20:56:30 -0800
commit28e1344647349ea215c818072e45bee887f2192a (patch)
treecd62166106f1b7ea9d25b9364a84cb6fbc04c669 /drivers/scsi/hpsa.c
parent97a5e98c1b6451cbbfd0436ea69e1df1c304fbc3 (diff)
downloadop-kernel-dev-28e1344647349ea215c818072e45bee887f2192a.zip
op-kernel-dev-28e1344647349ea215c818072e45bee887f2192a.tar.gz
[SCSI] hpsa: enable unit attention reporting
This used to be the default, but at some point the firmware guys changed the default and I failed to notice. Now to get unit attention notifications, you must twiddle a bit indicating you want them. Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/hpsa.c')
-rw-r--r--drivers/scsi/hpsa.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index 25afeb4..b146caf 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -4384,14 +4384,15 @@ static inline bool hpsa_CISS_signature_present(struct ctlr_info *h)
static inline void hpsa_set_driver_support_bits(struct ctlr_info *h)
{
-#ifdef CONFIG_X86
- /* Need to enable prefetch in the SCSI core for 6400 in x86 */
u32 driver_support;
+#ifdef CONFIG_X86
+ /* Need to enable prefetch in the SCSI core for 6400 in x86 */
driver_support = readl(&(h->cfgtable->driver_support));
driver_support |= ENABLE_SCSI_PREFETCH;
- writel(driver_support, &(h->cfgtable->driver_support));
#endif
+ driver_support |= ENABLE_UNIT_ATTN;
+ writel(driver_support, &(h->cfgtable->driver_support));
}
/* Disable DMA prefetch for the P600. Otherwise an ASIC bug may result
OpenPOWER on IntegriCloud