Skip to contentSkip to conversation

atl1c: set ATL1C_WORK_EVENT_RESET bit correctly

PATCH Applied Dan Carpenter 2 participants 2 messages Mar 7, 2012 – Mar 8, 2012

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atl1c: set ATL1C_WORK_EVENT_RESET bit correctly

ATL1C_WORK_EVENT_RESET is zero so the original code here is a nop. The intent was to set the zero bit.

drivers/net/ethernet/atheros/atl1c/atl1c_main.c +1 -1
index 0f21a9b..1ef0c92 100644
@@ -1711,7 +1711,7 @@ static irqreturn_t atl1c_intr(int irq, void *data)
 					"atl1c hardware error (status = 0x%x)\n",
 					status & ISR_ERROR);
 			/* reset MAC */
-			adapter->work_event |= ATL1C_WORK_EVENT_RESET;
+			set_bit(ATL1C_WORK_EVENT_RESET, &adapter->work_event);
 			schedule_work(&adapter->common_task);
 			return IRQ_HANDLED;
 		}