Skip to content
Commit 049d9191 authored by Joakim Zhang's avatar Joakim Zhang Committed by Will Deacon
Browse files

drivers/perf: fsl_imx8_ddr: Correct the CLEAR bit definition



When disabling a counter from ddr_perf_event_stop(), the counter value
is reset to 0 at the same time.

Preserve the counter value by performing a read-modify-write of the
PMU register and clearing only the enable bit.

Signed-off-by: default avatarJoakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent dcde2373
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