clk: mxl: Remove redundant spinlocks
authorRahul Tanwar <rtanwar@maxlinear.com>
Thu, 13 Oct 2022 06:48:31 +0000 (14:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Feb 2023 10:25:38 +0000 (11:25 +0100)
commit005b9a123c970d95bf97309d7397f8fa5e631358
tree25b7826c5dcdd5db9d56605b8cfcffd3690a991a
parent811bdf228e72c423cf167448ed812d7d3a50f0ec
clk: mxl: Remove redundant spinlocks

[ Upstream commit eaabee88a88a26b108be8d120fc072dfaf462cef ]

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: Yi xin Zhu <yzhu@maxlinear.com>
Signed-off-by: Rahul Tanwar <rtanwar@maxlinear.com>
Link: https://lore.kernel.org/r/a8a02c8773b88924503a9fdaacd37dd2e6488bf3.1665642720.git.rtanwar@maxlinear.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Stable-dep-of: 106ef3bda210 ("clk: mxl: Fix a clk entry by adding relevant flags")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/x86/clk-cgu-pll.c
drivers/clk/x86/clk-cgu.c
drivers/clk/x86/clk-cgu.h
drivers/clk/x86/clk-lgm.c