[SCSI] pm8001: fix lockup on phy_control hard reset.
authorMark Salyzyn <mark_salyzyn@xyratex.com>
Tue, 17 Jan 2012 17:56:45 +0000 (12:56 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 14:08:51 +0000 (08:08 -0600)
commit5c4fb76af31e9dabcd132a0e69ed3799df1304c3
treef73ee0d8f92cfc9c9c298c770ba21962b708c883
parent46a243f72de931aad2632a0f3de3612534212ae9
[SCSI] pm8001: fix lockup on phy_control hard reset.

pm8001_phy_control PHY_FUNC_HARD_RESET locks up on second try via
smp_phy_control because response HW_EVENT_PHY_START_STATUS fails to complete
previous command. The PM8001F_RUN_TIME flag is not treated as a bit, but a
state in all readers, yet once we are operational or in the run time state,
the flags use a bit-set operation.

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_sas.c