Skip to content
Unverified Commit 0d10e90c authored by Zhichao Liu's avatar Zhichao Liu Committed by Mark Brown
Browse files

spi: mediatek: Fix DEVAPC Violation at KO Remove



A DEVAPC violation occurs when removing the module
due to accessing HW registers without base clock.
To fix this bug, the correct method is:
1. Call the runtime resume function to enable the
   clock;
2. Operate the registers to reset the HW;
3. Turn off the clocks and disable the device
   RPM mechanism.

Signed-off-by: default avatarZhichao Liu <zhichao.liu@mediatek.com>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20221110072839.30961-1-zhichao.liu@mediatek.com
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent bff6bef7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment