]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lpfc: Check for active portpeerbeacon.
authorJames Smart <james.smart@avagotech.com>
Fri, 22 May 2015 14:42:35 +0000 (10:42 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 19 Oct 2015 16:10:57 +0000 (09:10 -0700)
commitec2f3c828a979bc0b86d556db5f7c227082f1051
treea370d035a156a60b9e66a0b968476cf15f08f470
parent62f6f460d058e150fdc2c48b0e273c465efc806e
lpfc: Check for active portpeerbeacon.

LCB requests to set Beacon would fail if the beacon was already enabled
internally as the mailbox command used to query the state failes with
an already-set status.

Correct by enhancing the check so we don't fail if if the already set
status comes back.

Signed-off-by: Dick Kennedy <dick.kennedy@avagotech.com>
Signed-off-by: James Smart <james.smart@avagotech.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
(cherry picked from commit 481ad967991e1ff00d627d365de398b7a77e4d7f)

Orabug: 22029622
From dick.kennedy@avagotech.com lpfc-10.5.0.1-11.0.0.3-1.tar.gz
Acked-by: Chuck Anderson <chuck.anderson@oracle.com>
drivers/scsi/lpfc/lpfc_els.c
drivers/scsi/lpfc/lpfc_hw4.h