Skip to contentSkip to conversation

mei: fix device stall after wd is stopped

char-misc 3.6 Tomas Winkler 1 participant 1 message Aug 16, 2012

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

After watchdog was disabled the driver would stall due to wrong calculation of credits reduction

The cat&paste bug was introduced in the commit
7bdf72d3d8059a50214069ea4b87c2174645f40f
mei: introduce mei_data2slots wrapper

---
 drivers/misc/mei/interrupt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/misc/mei/interrupt.c +1 -1
index c6ffbbe..d78c05e 100644
@@ -1253,7 +1253,7 @@ static int mei_irq_thread_write_handler(struct mei_io_list *cmpl_list,
 			if (dev->wd_timeout)
 				*slots -= mei_data2slots(MEI_START_WD_DATA_SIZE);
 			else
-				*slots -= mei_data2slots(MEI_START_WD_DATA_SIZE);
+				*slots -= mei_data2slots(MEI_WD_PARAMS_SIZE);
 		}
 	}
 	if (dev->stop)
Signature · 1 line
1.7.4.4