Skip to content
Snippets Groups Projects
Commit 352ee610 authored by Nicolas Dufresne's avatar Nicolas Dufresne
Browse files

media: rkvdec: Restore iommu addresses on errors


On errors, the rkvdec chip self resets. This can clear the addresses
programmed in the iommu. This case is signaled by the
RKVDEC_SOFTRESET_RDY status bit.

Since the iommu framework does not have a restore functionality, and
as recommended by the iommu subsystem maintainers, this patch
restores the iommu programming by attaching an empty domain, detaching
it and re-attaching the device allocated domain.

Suggested-by: default avatarDetlev Casanova <detlev.casanova@collabora.com>
Signed-of-by: default avatarNicolas Dufresne <nicolas.dufresne@collabora.com>
parent 4f114c5a
Branches
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment