diff options
| author | Oded Gabbay <[email protected]> | 2019-11-17 15:41:57 +0000 |
|---|---|---|
| committer | Oded Gabbay <[email protected]> | 2019-11-21 09:35:47 +0000 |
| commit | 55f6d680970ea922d4ee23d5ac88d3a8046221fb (patch) | |
| tree | e699504b680a0ce9d75ea9d21be4776f6eef98e2 /drivers/net/xen-netback/interface.c | |
| parent | habanalabs: make the reset code more consistent (diff) | |
| download | kernel-55f6d680970ea922d4ee23d5ac88d3a8046221fb.tar.gz kernel-55f6d680970ea922d4ee23d5ac88d3a8046221fb.zip | |
habanalabs: flush EQ workers in hard reset
During hard-reset, there can be multiple events received from the H/W. For
each event, the driver opens a worker thread to handle it. For some of the
events, the driver will read/write registers in the code that handles the
event.
In case of hard-reset, we must prevent reads/writes to the registers during
the reset operation because the device might get stuck if that happens.
Therefore, flush the EQ workers before resetting the device (in hard-reset
only). Additional events won't arrive as we synced and disabled the
interrupts.
Signed-off-by: Oded Gabbay <[email protected]>
Reviewed-by: Tomer Tayar <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
