Re: [PATCH] spi: mediatek: Fix DEVAPC Violation at KO Remove

From: AngeloGioacchino Del Regno
Date: Thu Nov 10 2022 - 04:01:15 EST


Il 10/11/22 08:28, Zhichao Liu ha scritto:
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: Zhichao Liu <zhichao.liu@xxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>