[SCSI] pm8001: Add FUNC_GET_EVENTS
authorMark Salyzyn <mark_salyzyn@xyratex.com>
Tue, 17 Jan 2012 14:18:57 +0000 (09:18 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 14:08:51 +0000 (08:08 -0600)
commitd95d00016f8f51dc502cadb263d861bd8c0212bb
treeaa60333c6d9aa97f3dc1f32f0fce3f3f08baa939
parent5c4fb76af31e9dabcd132a0e69ed3799df1304c3
[SCSI] pm8001: Add FUNC_GET_EVENTS

Jack noticed I dropped a patch fragment associated with a flags automatic
variable in mpi_set_phys_g3_with_ssc (ooops) and that the pre-emptive locking
that piggy-backed this patch was not in-fact necessary because of underlying
atomic accesses to the hardware. Here is the updated patch fixing these two
issues.

The pm8001 driver is missing the FUNC_GET_EVENTS handler in the phy control
function. Since the pm8001_bar4_shift function was not designed to be called
at runtime, added locking surrounding the adjustment for all accesses.

Signed-off-by: Mark Salyzyn <mark_salyzyn@xyratex.com>
Acked-by: Jack Wang <jack_wang@usish.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/pm8001/pm8001_hwi.c
drivers/scsi/pm8001/pm8001_sas.c
drivers/scsi/pm8001/pm8001_sas.h