diff options
author | Alex Elder <elder@linaro.org> | 2020-11-19 16:49:29 -0600 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-20 18:45:52 -0800 |
commit | ae1d72f9779fbd05808517c030a2dae327cb038d (patch) | |
tree | 6ece54340135cfd49a96c407218a19f561a3da77 /drivers/soc | |
parent | 7c80e83829dbc86c1e564017867a48805e459de0 (diff) |
net: ipa: add driver shutdown callback
A system shutdown can happen at essentially any time, and it's
possible that the IPA driver is busy when a shutdown is underway.
IPA hardware accesses IMEM and SMEM memory regions using an IOMMU,
and at some point during shutdown, needed I/O mappings could become
invalid. This could be disastrous for any "in flight" IPA activity.
Avoid this by defining a new driver shutdown callback that stops all
IPA activity and cleanly shuts down the driver. It merely calls the
driver's existing remove callback, reporting the error if it returns
one.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/soc')
0 files changed, 0 insertions, 0 deletions