Commit 27aad905 authored by Yixun Lan's avatar Yixun Lan Committed by Jerome Brunet

clk: meson: make the spinlock naming more specific

Make the spinlock more specific, so better for lockdep
debugging and ctags/grep.
Suggested-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarYixun Lan <yixun.lan@amlogic.com>
Signed-off-by: default avatarJerome Brunet <jbrunet@baylibre.com>
parent ed3fb5af
...@@ -134,7 +134,7 @@ struct meson_clk_audio_divider { ...@@ -134,7 +134,7 @@ struct meson_clk_audio_divider {
struct clk_gate _name = { \ struct clk_gate _name = { \
.reg = (void __iomem *) _reg, \ .reg = (void __iomem *) _reg, \
.bit_idx = (_bit), \ .bit_idx = (_bit), \
.lock = &clk_lock, \ .lock = &meson_clk_lock, \
.hw.init = &(struct clk_init_data) { \ .hw.init = &(struct clk_init_data) { \
.name = #_name, \ .name = #_name, \
.ops = &clk_gate_ops, \ .ops = &clk_gate_ops, \
......
This diff is collapsed.
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include "clkc.h" #include "clkc.h"
#include "meson8b.h" #include "meson8b.h"
static DEFINE_SPINLOCK(clk_lock); static DEFINE_SPINLOCK(meson_clk_lock);
static void __iomem *clk_base; static void __iomem *clk_base;
...@@ -136,7 +136,7 @@ static struct meson_clk_pll meson8b_fixed_pll = { ...@@ -136,7 +136,7 @@ static struct meson_clk_pll meson8b_fixed_pll = {
.shift = 16, .shift = 16,
.width = 2, .width = 2,
}, },
.lock = &clk_lock, .lock = &meson_clk_lock,
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "fixed_pll", .name = "fixed_pll",
.ops = &meson_clk_pll_ro_ops, .ops = &meson_clk_pll_ro_ops,
...@@ -162,7 +162,7 @@ static struct meson_clk_pll meson8b_vid_pll = { ...@@ -162,7 +162,7 @@ static struct meson_clk_pll meson8b_vid_pll = {
.shift = 16, .shift = 16,
.width = 2, .width = 2,
}, },
.lock = &clk_lock, .lock = &meson_clk_lock,
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "vid_pll", .name = "vid_pll",
.ops = &meson_clk_pll_ro_ops, .ops = &meson_clk_pll_ro_ops,
...@@ -190,7 +190,7 @@ static struct meson_clk_pll meson8b_sys_pll = { ...@@ -190,7 +190,7 @@ static struct meson_clk_pll meson8b_sys_pll = {
}, },
.rate_table = sys_pll_rate_table, .rate_table = sys_pll_rate_table,
.rate_count = ARRAY_SIZE(sys_pll_rate_table), .rate_count = ARRAY_SIZE(sys_pll_rate_table),
.lock = &clk_lock, .lock = &meson_clk_lock,
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "sys_pll", .name = "sys_pll",
.ops = &meson_clk_pll_ops, .ops = &meson_clk_pll_ops,
...@@ -281,7 +281,7 @@ static struct meson_clk_mpll meson8b_mpll0 = { ...@@ -281,7 +281,7 @@ static struct meson_clk_mpll meson8b_mpll0 = {
.shift = 25, .shift = 25,
.width = 1, .width = 1,
}, },
.lock = &clk_lock, .lock = &meson_clk_lock,
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mpll0", .name = "mpll0",
.ops = &meson_clk_mpll_ops, .ops = &meson_clk_mpll_ops,
...@@ -311,7 +311,7 @@ static struct meson_clk_mpll meson8b_mpll1 = { ...@@ -311,7 +311,7 @@ static struct meson_clk_mpll meson8b_mpll1 = {
.shift = 14, .shift = 14,
.width = 1, .width = 1,
}, },
.lock = &clk_lock, .lock = &meson_clk_lock,
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mpll1", .name = "mpll1",
.ops = &meson_clk_mpll_ops, .ops = &meson_clk_mpll_ops,
...@@ -341,7 +341,7 @@ static struct meson_clk_mpll meson8b_mpll2 = { ...@@ -341,7 +341,7 @@ static struct meson_clk_mpll meson8b_mpll2 = {
.shift = 14, .shift = 14,
.width = 1, .width = 1,
}, },
.lock = &clk_lock, .lock = &meson_clk_lock,
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mpll2", .name = "mpll2",
.ops = &meson_clk_mpll_ops, .ops = &meson_clk_mpll_ops,
...@@ -375,7 +375,7 @@ struct clk_mux meson8b_mpeg_clk_sel = { ...@@ -375,7 +375,7 @@ struct clk_mux meson8b_mpeg_clk_sel = {
.shift = 12, .shift = 12,
.flags = CLK_MUX_READ_ONLY, .flags = CLK_MUX_READ_ONLY,
.table = mux_table_clk81, .table = mux_table_clk81,
.lock = &clk_lock, .lock = &meson_clk_lock,
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mpeg_clk_sel", .name = "mpeg_clk_sel",
.ops = &clk_mux_ro_ops, .ops = &clk_mux_ro_ops,
...@@ -395,7 +395,7 @@ struct clk_divider meson8b_mpeg_clk_div = { ...@@ -395,7 +395,7 @@ struct clk_divider meson8b_mpeg_clk_div = {
.reg = (void *)HHI_MPEG_CLK_CNTL, .reg = (void *)HHI_MPEG_CLK_CNTL,
.shift = 0, .shift = 0,
.width = 7, .width = 7,
.lock = &clk_lock, .lock = &meson_clk_lock,
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "mpeg_clk_div", .name = "mpeg_clk_div",
.ops = &clk_divider_ops, .ops = &clk_divider_ops,
...@@ -408,7 +408,7 @@ struct clk_divider meson8b_mpeg_clk_div = { ...@@ -408,7 +408,7 @@ struct clk_divider meson8b_mpeg_clk_div = {
struct clk_gate meson8b_clk81 = { struct clk_gate meson8b_clk81 = {
.reg = (void *)HHI_MPEG_CLK_CNTL, .reg = (void *)HHI_MPEG_CLK_CNTL,
.bit_idx = 7, .bit_idx = 7,
.lock = &clk_lock, .lock = &meson_clk_lock,
.hw.init = &(struct clk_init_data){ .hw.init = &(struct clk_init_data){
.name = "clk81", .name = "clk81",
.ops = &clk_gate_ops, .ops = &clk_gate_ops,
...@@ -773,7 +773,7 @@ static int meson8b_clk_reset_update(struct reset_controller_dev *rcdev, ...@@ -773,7 +773,7 @@ static int meson8b_clk_reset_update(struct reset_controller_dev *rcdev,
reset = &meson8b_clk_reset_bits[id]; reset = &meson8b_clk_reset_bits[id];
spin_lock_irqsave(&clk_lock, flags); spin_lock_irqsave(&meson_clk_lock, flags);
val = readl(meson8b_clk_reset->base + reset->reg); val = readl(meson8b_clk_reset->base + reset->reg);
if (assert) if (assert)
...@@ -782,7 +782,7 @@ static int meson8b_clk_reset_update(struct reset_controller_dev *rcdev, ...@@ -782,7 +782,7 @@ static int meson8b_clk_reset_update(struct reset_controller_dev *rcdev,
val &= ~BIT(reset->bit_idx); val &= ~BIT(reset->bit_idx);
writel(val, meson8b_clk_reset->base + reset->reg); writel(val, meson8b_clk_reset->base + reset->reg);
spin_unlock_irqrestore(&clk_lock, flags); spin_unlock_irqrestore(&meson_clk_lock, flags);
return 0; return 0;
} }
......
Markdown is supported
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