Commit 20ebd15a authored by Rahul Tanwar's avatar Rahul Tanwar Committed by zhaoxiaoqiang11
Browse files

clk: mxl: Remove redundant spinlocks

stable inclusion
from stable-v5.10.170
commit 3789e905f4885522ebf37b040eefd62422cff249
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7V9QX

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3789e905f4885522ebf37b040eefd62422cff249



----------------------------------------------------

[ Upstream commit eaabee88 ]

Patch 1/4 of this patch series switches from direct readl/writel
based register access to regmap based register access. Instead
of using direct readl/writel, regmap API's are used to read, write
& read-modify-write clk registers. Regmap API's already use their
own spinlocks to serialize the register accesses across multiple
cores in which case additional driver spinlocks becomes redundant.

Hence, remove redundant spinlocks from driver in this patch 2/4.

Reviewed-by: default avatarYi xin Zhu <yzhu@maxlinear.com>
Signed-off-by: default avatarRahul Tanwar <rtanwar@maxlinear.com>
Link: https://lore.kernel.org/r/a8a02c8773b88924503a9fdaacd37dd2e6488bf3.1665642720.git.rtanwar@maxlinear.com


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
Stable-dep-of: 106ef3bd ("clk: mxl: Fix a clk entry by adding relevant flags")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarzhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
parent 122294a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment