diff options
author | Arthur Jones <arthur.jones@qlogic.com> | 2008-04-17 00:01:13 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-04-17 00:01:13 -0400 |
commit | b84888215310002e3d266d5a7fe458bb224f6881 (patch) | |
tree | 8799d3c54e0f8eef702cbc9198f8e6fc959392a4 | |
parent | 8bae0ff2590c0b709d217da4466c6dba0b6b885c (diff) |
IB/ipath: Fix link up LED display
The check for link up was incorrect, thus setting the LED display
inconsistently with the link state.
Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_iba6120.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_iba6120.c b/drivers/infiniband/hw/ipath/ipath_iba6120.c index a9fc80409e57..f1447be4cfd3 100644 --- a/drivers/infiniband/hw/ipath/ipath_iba6120.c +++ b/drivers/infiniband/hw/ipath/ipath_iba6120.c | |||
@@ -853,7 +853,7 @@ static void ipath_setup_pe_setextled(struct ipath_devdata *dd, u64 lst, | |||
853 | extctl = dd->ipath_extctrl & ~(INFINIPATH_EXTC_LED1PRIPORT_ON | | 853 | extctl = dd->ipath_extctrl & ~(INFINIPATH_EXTC_LED1PRIPORT_ON | |
854 | INFINIPATH_EXTC_LED2PRIPORT_ON); | 854 | INFINIPATH_EXTC_LED2PRIPORT_ON); |
855 | 855 | ||
856 | if (ltst & INFINIPATH_IBCS_LT_STATE_LINKUP) | 856 | if (ltst == INFINIPATH_IBCS_LT_STATE_LINKUP) |
857 | extctl |= INFINIPATH_EXTC_LED2PRIPORT_ON; | 857 | extctl |= INFINIPATH_EXTC_LED2PRIPORT_ON; |
858 | if (lst == INFINIPATH_IBCS_L_STATE_ACTIVE) | 858 | if (lst == INFINIPATH_IBCS_L_STATE_ACTIVE) |
859 | extctl |= INFINIPATH_EXTC_LED1PRIPORT_ON; | 859 | extctl |= INFINIPATH_EXTC_LED1PRIPORT_ON; |