clk: meson: g12a: fix VPU clock muxes mask
PATCH 1/1 clk: meson: g12a: fix VPU clock muxes mask
There are 8 parents, use 0x7
Fixes 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller")
Signed-off-by Maxime Jourdan <[email protected]>
--- drivers/clk/meson/g12a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/meson/g12a.c +2 -2
@@ -1391,7 +1391,7 @@ static const char * const g12a_vpu_parent_names[] = {static struct clk_regmap g12a_vpu_0_sel = { .data = &(struct clk_regmap_mux_data ){ .offset =HHI_VPU_CLK_CNTL , - .mask =0x3 , + .mask =0x7 , .shift =9 , }, .hw.init = &(struct clk_init_data ){
@@ -1435,7 +1435,7 @@ static struct clk_regmap g12a_vpu_0 = {static struct clk_regmap g12a_vpu_1_sel = { .data = &(struct clk_regmap_mux_data ){ .offset =HHI_VPU_CLK_CNTL , - .mask =0x3 , + .mask =0x7 , .shift =25 , }, .hw.init = &(struct clk_init_data ){
Signature · 1 line
2.21.0
Quoted 23 lines · Maxime Jourdan
There are 8 parents, use
0x7Fixes 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller")Signed-off-by Maxime Jourdan <[email protected]>--- drivers/clk/meson/g12a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/clk/meson/g12a.c +1
-1@@ -1391,7 +1391,7 @@ static const char * const g12a_vpu_parent_names[] = {static struct clk_regmap g12a_vpu_0_sel = { .data = &(struct clk_regmap_mux_data ){ .offset =HHI_VPU_CLK_CNTL , - .mask =0x3 , + .mask =0x7 , .shift =9 , }, .hw.init = &(struct clk_init_data ){
drivers/clk/meson/g12a.c static struct clk_regmap g12a_vpu_0 = { · line 1441
Quoted 8 lines
drivers/clk/meson/g12a.c +1
-1@@ -1435,7 +1435,7 @@ static struct clk_regmap g12a_vpu_0 = {static struct clk_regmap g12a_vpu_1_sel = { .data = &(struct clk_regmap_mux_data ){ .offset =HHI_VPU_CLK_CNTL , - .mask =0x3 , + .mask =0x7 , .shift =25 , }, .hw.init = &(struct clk_init_data ){
Good catch !
I'll apply on fixes/drivers
Neil