* [esmil:th1520 38/52] drivers/clk/thead/clk.c:171:2-3: Unneeded semicolon
@ 2023-12-07 13:17 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-07 13:17 UTC (permalink / raw)
To: ixgbe01; +Cc: oe-kbuild-all, Han Gao
tree: https://github.com/esmil/linux th1520
head: 64731462dd62508162241c28bd319829df635524
commit: 851266b8b6ef516302144607a424a7986e950822 [38/52] add TH1520 cpu frequency driver
config: riscv-randconfig-r062-20231207 (https://download.01.org/0day-ci/archive/20231207/202312072129.P5RWBMFa-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231207/202312072129.P5RWBMFa-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312072129.P5RWBMFa-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> drivers/clk/thead/clk.c:171:2-3: Unneeded semicolon
drivers/clk/thead/clk.c:487:2-3: Unneeded semicolon
vim +171 drivers/clk/thead/clk.c
93
94 static void clk_light_pll_cfg_init(struct clk_lightpll *pll)
95 {
96 switch (pll->clk_type) {
97 case LIGHT_AUDIO_PLL:
98 pll->cfg0_reg_off = 0x0;
99 pll->pll_sts_off = 0x90;
100 pll->pll_lock_bit = BIT(0);
101 pll->pll_bypass_bit = BIT(31);
102 pll->pll_rst_bit = BIT(30);
103 pll->pll_mode = PLL_MODE_FRAC;
104 break;
105 case LIGHT_SYS_PLL:
106 pll->cfg0_reg_off = 0x10;
107 pll->pll_sts_off = 0x90;
108 pll->pll_lock_bit = BIT(1);
109 pll->pll_bypass_bit = BIT(31);
110 pll->pll_rst_bit = BIT(30);
111 pll->pll_mode = PLL_MODE_FRAC;
112 break;
113 case LIGHT_CPU_PLL0:
114 pll->cfg0_reg_off = 0x0;
115 pll->pll_sts_off = 0x80;
116 pll->pll_lock_bit = BIT(1);
117 pll->pll_bypass_bit = BIT(30);
118 pll->pll_rst_bit = BIT(29);
119 pll->pll_mode = PLL_MODE_INT;
120 break;
121 case LIGHT_CPU_PLL1:
122 pll->cfg0_reg_off = 0x10;
123 pll->pll_sts_off = 0x80;
124 pll->pll_lock_bit = BIT(4);
125 pll->pll_bypass_bit = BIT(30);
126 pll->pll_rst_bit = BIT(29);
127 pll->pll_mode = PLL_MODE_INT;
128 break;
129 case LIGHT_GMAC_PLL:
130 pll->cfg0_reg_off = 0x20;
131 pll->pll_sts_off = 0x80;
132 pll->pll_lock_bit = BIT(3);
133 pll->pll_bypass_bit = BIT(30);
134 pll->pll_rst_bit = BIT(29);
135 pll->pll_mode = PLL_MODE_INT;
136 break;
137 case LIGHT_VIDEO_PLL:
138 pll->cfg0_reg_off = 0x30;
139 pll->pll_sts_off = 0x80;
140 pll->pll_lock_bit = BIT(7);
141 pll->pll_bypass_bit = BIT(30);
142 pll->pll_rst_bit = BIT(29);
143 pll->pll_mode = PLL_MODE_INT;
144 break;
145 case LIGHT_DDR_PLL:
146 pll->cfg0_reg_off = 0x8;
147 pll->pll_sts_off = 0x18;
148 pll->pll_lock_bit = BIT(0);
149 pll->pll_bypass_bit = BIT(31);
150 pll->pll_rst_bit = BIT(30);
151 pll->pll_mode = PLL_MODE_INT;
152 break;
153 case LIGHT_DPU0_PLL:
154 pll->cfg0_reg_off = 0x40;
155 pll->pll_sts_off = 0x80;
156 pll->pll_lock_bit = BIT(8);
157 pll->pll_bypass_bit = BIT(30);
158 pll->pll_rst_bit = BIT(29);
159 pll->pll_mode = PLL_MODE_INT;
160 break;
161 case LIGHT_DPU1_PLL:
162 pll->cfg0_reg_off = 0x50;
163 pll->pll_sts_off = 0x80;
164 pll->pll_lock_bit = BIT(9);
165 pll->pll_bypass_bit = BIT(30);
166 pll->pll_rst_bit = BIT(29);
167 pll->pll_mode = PLL_MODE_INT;
168 break;
169 default:
170 pr_err("%s: Unknown pll type\n", __func__);
> 171 };
172 }
173
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-07 13:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-07 13:17 [esmil:th1520 38/52] drivers/clk/thead/clk.c:171:2-3: Unneeded semicolon kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.