Commit c42a5da
committed
OnD0Exit: Close EC handle before sleep
When suspending (D0 exit) close the handle to the EC driver so that we
open it again after resume and get a fresh one. Because if the EC driver
restarts during sleep, we cannot keep using the old handle pointing to
the unloaded driver. This change just closes it, re-opening is already
handled in OnTimerExpire when the device wakes.
This fixes the HLK "DF - Sleep with IO during (Reliability)" test
failure.
Signed-off-by: Daniel Schaefer <dhs@frame.work>1 parent 9d48c55 commit c42a5da
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
482 | 489 | | |
483 | 490 | | |
484 | 491 | | |
| |||
0 commit comments