Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: Fix typos

Fix typos, mostly in comments except CLKGATE_SEPERATED_* (definition and
uses updated).

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20250723203819.2910289-1-helgaas@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Bjorn Helgaas and committed by
Stephen Boyd
264200cc 65df390b

+80 -81
+1 -1
drivers/clk/baikal-t1/clk-ccu-div.c
··· 405 405 { 406 406 int idx; 407 407 408 - /* Uninstall only the clocks registered on the specfied stage */ 408 + /* Uninstall only the clocks registered on the specified stage */ 409 409 for (idx = 0; idx < data->divs_num; ++idx) { 410 410 if (!!(data->divs_info[idx].features & CCU_DIV_BASIC) ^ defer) 411 411 continue;
+1 -1
drivers/clk/baikal-t1/clk-ccu-pll.c
··· 196 196 { 197 197 int idx; 198 198 199 - /* Uninstall only the clocks registered on the specfied stage */ 199 + /* Uninstall only the clocks registered on the specified stage */ 200 200 for (idx = 0; idx < CCU_PLL_NUM; ++idx) { 201 201 if (!!(pll_info[idx].features & CCU_PLL_BASIC) ^ defer) 202 202 continue;
+1 -1
drivers/clk/bcm/clk-bcm2835.c
··· 1555 1555 .parents = bcm2835_clock_osc_parents, \ 1556 1556 __VA_ARGS__) 1557 1557 1558 - /* main peripherial parent mux */ 1558 + /* main peripheral parent mux */ 1559 1559 static const char *const bcm2835_clock_per_parents[] = { 1560 1560 "gnd", 1561 1561 "xosc",
+1 -1
drivers/clk/bcm/clk-bcm53573-ilp.c
··· 59 59 /* 60 60 * At minimum we should loop for a bit to let hardware do the 61 61 * measurement. This isn't very accurate however, so for a better 62 - * precision lets try getting 20 different values for and use average. 62 + * precision let's try getting 20 different values and use average. 63 63 */ 64 64 while (num < 20) { 65 65 regmap_read(regmap, PMU_XTAL_FREQ_RATIO, &cur_val);
+1 -1
drivers/clk/berlin/berlin2-avpll.c
··· 319 319 320 320 /* 321 321 * AV3 divider start at VCO_CTRL14, bit 7; each 4 bits wide. 322 - * AV2/AV3 form a fractional divider, where only specfic values for AV3 322 + * AV2/AV3 form a fractional divider, where only specific values for AV3 323 323 * are allowed. AV3 != 0 divides by AV2/2, AV3=0 is bypass. 324 324 */ 325 325 if (ch->index < 6) {
+2 -2
drivers/clk/clk-asm9260.c
··· 92 92 { CLKID_SYS_CPU, "cpu_div", "main_gate", HW_CPUCLKDIV }, 93 93 { CLKID_SYS_AHB, "ahb_div", "cpu_div", HW_SYSAHBCLKDIV }, 94 94 95 - /* i2s has two deviders: one for only external mclk and internal 96 - * devider for all clks. */ 95 + /* i2s has two dividers: one for only external mclk and internal 96 + * divider for all clks. */ 97 97 { CLKID_SYS_I2S0M, "i2s0m_div", "i2s0_mclk", HW_I2S0MCLKDIV }, 98 98 { CLKID_SYS_I2S1M, "i2s1m_div", "i2s1_mclk", HW_I2S1MCLKDIV }, 99 99 { CLKID_SYS_I2S0S, "i2s0s_div", "i2s0_gate", HW_I2S0SCLKDIV },
+1 -1
drivers/clk/clk-ast2600.c
··· 92 92 * 93 93 * There are some gates that do not have an associated reset; these are 94 94 * handled by using -1 as the index for the reset, and the consumer must 95 - * explictly assert/deassert reset lines as required. 95 + * explicitly assert/deassert reset lines as required. 96 96 * 97 97 * Clocks marked with CLK_IS_CRITICAL: 98 98 *
+1 -1
drivers/clk/clk-axi-clkgen.c
··· 172 172 } 173 173 } 174 174 175 - /* Lets see if we find a better setting in fractional mode */ 175 + /* Let's see if we find a better setting in fractional mode */ 176 176 if (fract_shift == 0) { 177 177 fract_shift = 3; 178 178 goto again;
+1 -1
drivers/clk/clk-clps711x.c
··· 99 99 */ 100 100 tmp &= ~(SYSCON1_TC1M | SYSCON1_TC1S); 101 101 /* Timer2 in prescale mode. 102 - * Value writen is automatically re-loaded when 102 + * Value written is automatically re-loaded when 103 103 * the counter underflows. 104 104 */ 105 105 tmp |= SYSCON1_TC2M | SYSCON1_TC2S;
+1 -1
drivers/clk/clk-eyeq.c
··· 131 131 * Both factors (mult and div) must fit in 32 bits. When an operation overflows, 132 132 * this function throws away low bits so that factors still fit in 32 bits. 133 133 * 134 - * Precision loss depends on amplitude of mult and div. Worst theorical 134 + * Precision loss depends on amplitude of mult and div. Worst theoretical 135 135 * loss is: (UINT_MAX+1) / UINT_MAX - 1 = 2.3e-10. 136 136 * This is 1Hz every 4.3GHz. 137 137 */
+1 -1
drivers/clk/clk-gate.c
··· 15 15 #include <linux/string.h> 16 16 17 17 /** 18 - * DOC: basic gatable clock which can gate and ungate its output 18 + * DOC: basic gateable clock which can gate and ungate its output 19 19 * 20 20 * Traits of this clock: 21 21 * prepare - clk_(un)prepare only ensures parent is (un)prepared
+1 -1
drivers/clk/clk-hsdk-pll.c
··· 265 265 return -EINVAL; 266 266 267 267 /* 268 - * Program divider to div-by-1 if we succesfuly set core clock below 268 + * Program divider to div-by-1 if we successfully set core clock below 269 269 * 500MHz threshold. 270 270 */ 271 271 if (rate <= CORE_IF_CLK_THRESHOLD_HZ)
+1 -1
drivers/clk/clk-s2mps11.c
··· 235 235 * through platform_device_id. 236 236 * 237 237 * However if device's DT node contains proper clock compatible and driver is 238 - * built as a module, then the *module* matching will be done trough DT aliases. 238 + * built as a module, then the *module* matching will be done through DT aliases. 239 239 * This requires of_device_id table. In the same time this will not change the 240 240 * actual *device* matching so do not add .of_match_table. 241 241 */
+1 -1
drivers/clk/clk-scmi.c
··· 451 451 452 452 /* 453 453 * Note that the scmi_clk_ops_db is on the stack, not global, 454 - * because it cannot be shared between mulitple probe-sequences 454 + * because it cannot be shared between multiple probe-sequences 455 455 * to avoid sharing the devm_ allocated clk_ops between multiple 456 456 * SCMI clk driver instances. 457 457 */
+3 -3
drivers/clk/clk-si5351.c
··· 655 655 unsigned long a, b, c; 656 656 int divby4; 657 657 658 - /* multisync6-7 can only handle freqencies < 150MHz */ 658 + /* multisync6-7 can only handle frequencies < 150MHz */ 659 659 if (hwdata->num >= 6 && rate > SI5351_MULTISYNTH67_MAX_FREQ) 660 660 rate = SI5351_MULTISYNTH67_MAX_FREQ; 661 661 ··· 1048 1048 unsigned long rate = req->rate; 1049 1049 unsigned char rdiv; 1050 1050 1051 - /* clkout6/7 can only handle output freqencies < 150MHz */ 1051 + /* clkout6/7 can only handle output frequencies < 150MHz */ 1052 1052 if (hwdata->num >= 6 && rate > SI5351_CLKOUT67_MAX_FREQ) 1053 1053 rate = SI5351_CLKOUT67_MAX_FREQ; 1054 1054 1055 - /* clkout freqency is 8kHz - 160MHz */ 1055 + /* clkout frequency is 8kHz - 160MHz */ 1056 1056 if (rate > SI5351_CLKOUT_MAX_FREQ) 1057 1057 rate = SI5351_CLKOUT_MAX_FREQ; 1058 1058 if (rate < SI5351_CLKOUT_MIN_FREQ)
+1 -1
drivers/clk/clk-si544.c
··· 39 39 /* Max freq depends on speed grade */ 40 40 #define SI544_MIN_FREQ 200000U 41 41 42 - /* Si544 Internal oscilator runs at 55.05 MHz */ 42 + /* Si544 Internal oscillator runs at 55.05 MHz */ 43 43 #define FXO 55050000U 44 44 45 45 /* VCO range is 10.8 .. 12.1 GHz, max depends on speed grade */
+2 -2
drivers/clk/clk-si570.c
··· 63 63 * struct clk_si570: 64 64 * @hw: Clock hw struct 65 65 * @regmap: Device's regmap 66 - * @div_offset: Rgister offset for dividers 66 + * @div_offset: Register offset for dividers 67 67 * @info: Device info 68 68 * @fxtal: Factory xtal frequency 69 69 * @n1: Clock divider N1 ··· 181 181 } 182 182 183 183 /** 184 - * si570_calc_divs() - Caluclate clock dividers 184 + * si570_calc_divs() - Calculate clock dividers 185 185 * @frequency: Target frequency 186 186 * @data: Driver data structure 187 187 * @out_rfreq: RFREG fractional multiplier (output)
+1 -1
drivers/clk/clk-sp7021.c
··· 14 14 15 15 #include <dt-bindings/clock/sunplus,sp7021-clkc.h> 16 16 17 - /* speical div_width values for PLLTV/PLLA */ 17 + /* special div_width values for PLLTV/PLLA */ 18 18 #define DIV_TV 33 19 19 #define DIV_A 34 20 20
+1 -1
drivers/clk/clk-stm32f4.c
··· 19 19 #include <linux/mfd/syscon.h> 20 20 21 21 /* 22 - * Include list of clocks wich are not derived from system clock (SYSCLOCK) 22 + * Include list of clocks which are not derived from system clock (SYSCLOCK) 23 23 * The index of these clocks is the secondary index of DT bindings 24 24 * 25 25 */
+1 -1
drivers/clk/clk-versaclock5.c
··· 136 136 #define VC5_MAX_FOD_NUM 4 137 137 138 138 /* flags to describe chip features */ 139 - /* chip has built-in oscilator */ 139 + /* chip has built-in oscillator */ 140 140 #define VC5_HAS_INTERNAL_XTAL BIT(0) 141 141 /* chip has PFD requency doubler */ 142 142 #define VC5_HAS_PFD_FREQ_DBL BIT(1)
+1 -1
drivers/clk/clk_test.c
··· 292 292 } 293 293 294 294 /* 295 - * Test that clk_round_rate and clk_set_rate are consitent and will 295 + * Test that clk_round_rate and clk_set_rate are consistent and will 296 296 * return the same frequency. 297 297 */ 298 298 static void clk_test_round_set_get_rate(struct kunit *test)
+1 -1
drivers/clk/davinci/pll.h
··· 80 80 * @name: The name of the clock 81 81 * @parent_names: Array of names of the parent clocks 82 82 * @num_parents: Length of @parent_names 83 - * @table: Array of values to write to OCSEL[OCSRC] cooresponding to 83 + * @table: Array of values to write to OCSEL[OCSRC] corresponding to 84 84 * @parent_names 85 85 * @ocsrc_mask: Bitmask for OCSEL[OCSRC] 86 86 */
+8 -8
drivers/clk/hisilicon/clkgate-separated.c
··· 17 17 #include "clk.h" 18 18 19 19 /* clock separated gate register offset */ 20 - #define CLKGATE_SEPERATED_ENABLE 0x0 21 - #define CLKGATE_SEPERATED_DISABLE 0x4 22 - #define CLKGATE_SEPERATED_STATUS 0x8 20 + #define CLKGATE_SEPARATED_ENABLE 0x0 21 + #define CLKGATE_SEPARATED_DISABLE 0x4 22 + #define CLKGATE_SEPARATED_STATUS 0x8 23 23 24 24 struct clkgate_separated { 25 25 struct clk_hw hw; ··· 40 40 spin_lock_irqsave(sclk->lock, flags); 41 41 reg = BIT(sclk->bit_idx); 42 42 writel_relaxed(reg, sclk->enable); 43 - readl_relaxed(sclk->enable + CLKGATE_SEPERATED_STATUS); 43 + readl_relaxed(sclk->enable + CLKGATE_SEPARATED_STATUS); 44 44 if (sclk->lock) 45 45 spin_unlock_irqrestore(sclk->lock, flags); 46 46 return 0; ··· 56 56 if (sclk->lock) 57 57 spin_lock_irqsave(sclk->lock, flags); 58 58 reg = BIT(sclk->bit_idx); 59 - writel_relaxed(reg, sclk->enable + CLKGATE_SEPERATED_DISABLE); 60 - readl_relaxed(sclk->enable + CLKGATE_SEPERATED_STATUS); 59 + writel_relaxed(reg, sclk->enable + CLKGATE_SEPARATED_DISABLE); 60 + readl_relaxed(sclk->enable + CLKGATE_SEPARATED_STATUS); 61 61 if (sclk->lock) 62 62 spin_unlock_irqrestore(sclk->lock, flags); 63 63 } ··· 68 68 u32 reg; 69 69 70 70 sclk = container_of(hw, struct clkgate_separated, hw); 71 - reg = readl_relaxed(sclk->enable + CLKGATE_SEPERATED_STATUS); 71 + reg = readl_relaxed(sclk->enable + CLKGATE_SEPARATED_STATUS); 72 72 reg &= BIT(sclk->bit_idx); 73 73 74 74 return reg ? 1 : 0; ··· 100 100 init.parent_names = (parent_name ? &parent_name : NULL); 101 101 init.num_parents = (parent_name ? 1 : 0); 102 102 103 - sclk->enable = reg + CLKGATE_SEPERATED_ENABLE; 103 + sclk->enable = reg + CLKGATE_SEPARATED_ENABLE; 104 104 sclk->bit_idx = bit_idx; 105 105 sclk->flags = clk_gate_flags; 106 106 sclk->hw.init = &init;
+1 -1
drivers/clk/imx/clk-fixup-div.c
··· 18 18 * @fixup: a hook to fixup the write value 19 19 * 20 20 * The imx fixup divider clock is a subclass of basic clk_divider 21 - * with an addtional fixup hook. 21 + * with an additional fixup hook. 22 22 */ 23 23 struct clk_fixup_div { 24 24 struct clk_divider divider;
+1 -1
drivers/clk/imx/clk-fixup-mux.c
··· 17 17 * @fixup: a hook to fixup the write value 18 18 * 19 19 * The imx fixup multiplexer clock is a subclass of basic clk_mux 20 - * with an addtional fixup hook. 20 + * with an additional fixup hook. 21 21 */ 22 22 struct clk_fixup_mux { 23 23 struct clk_mux mux;
+1 -1
drivers/clk/imx/clk-gate-exclusive.c
··· 18 18 * gate clock 19 19 * 20 20 * The imx exclusive gate clock is a subclass of basic clk_gate 21 - * with an addtional mask to indicate which other gate bits in the same 21 + * with an additional mask to indicate which other gate bits in the same 22 22 * register is mutually exclusive to this gate clock. 23 23 */ 24 24 struct clk_gate_exclusive {
+1 -1
drivers/clk/imx/clk-imx5.c
··· 454 454 * longer supported. Set to one for better power saving. 455 455 * 456 456 * The effect of not setting these bits is that MIPI clocks can't be 457 - * enabled without the IPU clock being enabled aswell. 457 + * enabled without the IPU clock being enabled as well. 458 458 */ 459 459 val = readl(MXC_CCM_CCDR); 460 460 val |= 1 << 18;
+1 -1
drivers/clk/imx/clk-imx8-acm.c
··· 22 22 * struct clk_imx_acm_pm_domains - structure for multi power domain 23 23 * @pd_dev: power domain device 24 24 * @pd_dev_link: power domain device link 25 - * @num_domains: power domain nummber 25 + * @num_domains: power domain number 26 26 */ 27 27 struct clk_imx_acm_pm_domains { 28 28 struct device **pd_dev;
+1 -1
drivers/clk/imx/clk-scu.c
··· 711 711 if (ret) 712 712 goto put_device; 713 713 714 - /* For API backwards compatiblilty, simply return NULL for success */ 714 + /* For API backwards compatibility, simply return NULL for success */ 715 715 return NULL; 716 716 717 717 put_device:
+1 -1
drivers/clk/ingenic/cgu.h
··· 239 239 * 240 240 * Register the clocks described by the CGU with the common clock framework. 241 241 * 242 - * Return: 0 on success or -errno if unsuccesful. 242 + * Return: 0 on success or -errno if unsuccessful. 243 243 */ 244 244 int ingenic_cgu_register_clocks(struct ingenic_cgu *cgu); 245 245
+1 -1
drivers/clk/meson/axg.c
··· 918 918 /* 919 919 * Following these parent clocks, we should also have had mpll2, mpll3 920 920 * and gp0_pll but these clocks are too precious to be used here. All 921 - * the necessary rates for MMC and NAND operation can be acheived using 921 + * the necessary rates for MMC and NAND operation can be achieved using 922 922 * xtal or fclk_div clocks 923 923 */ 924 924 };
+3 -3
drivers/clk/meson/g12a.c
··· 2489 2489 /* 2490 2490 * Following these parent clocks, we should also have had mpll2, mpll3 2491 2491 * and gp0_pll but these clocks are too precious to be used here. All 2492 - * the necessary rates for MMC and NAND operation can be acheived using 2492 + * the necessary rates for MMC and NAND operation can be achieved using 2493 2493 * g12a_ee_core or fclk_div clocks 2494 2494 */ 2495 2495 }; ··· 3753 3753 }; 3754 3754 3755 3755 /* 3756 - * FIXME: Force as bypass by forcing a single /1 table entry, and doensn't on boot value 3757 - * when setting a clock whith this node in the clock path, but doesn't garantee the divider 3756 + * FIXME: Force as bypass by forcing a single /1 table entry, and doesn't on boot value 3757 + * when setting a clock with this node in the clock path, but doesn't guarantee the divider 3758 3758 * is at /1 at boot until a rate is set. 3759 3759 */ 3760 3760 static const struct clk_div_table g12a_mipi_dsi_pxclk_div_table[] = {
+1 -1
drivers/clk/meson/gxbb.c
··· 1335 1335 /* 1336 1336 * Following these parent clocks, we should also have had mpll2, mpll3 1337 1337 * and gp0_pll but these clocks are too precious to be used here. All 1338 - * the necessary rates for MMC and NAND operation can be acheived using 1338 + * the necessary rates for MMC and NAND operation can be achieved using 1339 1339 * xtal or fclk_div clocks 1340 1340 */ 1341 1341 };
+1 -1
drivers/clk/microchip/clk-core.c
··· 326 326 * i.e. fout = fin / 2 * DIV 327 327 * whereas DIV = rodiv + (rotrim / 512) 328 328 * 329 - * Since kernel does not perform floating-point arithmatic so 329 + * Since kernel does not perform floating-point arithmetic so 330 330 * (rotrim/512) will be zero. And DIV & rodiv will result same. 331 331 * 332 332 * ie. fout = (fin * 256) / [(512 * rodiv) + rotrim] ... from (1)
+1 -1
drivers/clk/mmp/clk-gate.c
··· 15 15 #include "clk.h" 16 16 17 17 /* 18 - * Some clocks will have mutiple bits to enable the clocks, and 18 + * Some clocks will have multiple bits to enable the clocks, and 19 19 * the bits to disable the clock is not same as enabling bits. 20 20 */ 21 21
+2 -3
drivers/clk/mvebu/armada-xp.c
··· 7 7 * Gregory CLEMENT <gregory.clement@free-electrons.com> 8 8 * Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> 9 9 * Andrew Lunn <andrew@lunn.ch> 10 - * 11 10 */ 12 11 13 12 #include <linux/kernel.h> ··· 18 19 /* 19 20 * Core Clocks 20 21 * 21 - * Armada XP Sample At Reset is a 64 bit bitfiled split in two 22 - * register of 32 bits 22 + * Armada XP Sample At Reset is a 64 bit bitfield split in two 23 + * registers of 32 bits 23 24 */ 24 25 25 26 #define SARL 0 /* Low part [0:31] */
+1 -1
drivers/clk/mxs/clk-div.c
··· 16 16 * @busy: busy bit shift 17 17 * 18 18 * The mxs divider clock is a subclass of basic clk_divider with an 19 - * addtional busy bit. 19 + * additional busy bit. 20 20 */ 21 21 struct clk_div { 22 22 struct clk_divider divider;
+1 -1
drivers/clk/nxp/clk-lpc18xx-ccu.c
··· 148 148 val |= LPC18XX_CCU_RUN; 149 149 } else { 150 150 /* 151 - * To safely disable a branch clock a squence of two separate 151 + * To safely disable a branch clock a sequence of two separate 152 152 * writes must be used. First write should set the AUTO bit 153 153 * and the next write should clear the RUN bit. 154 154 */
+3 -3
drivers/clk/qcom/gcc-sm8150.c
··· 1245 1245 }; 1246 1246 1247 1247 /* 1248 - * Clock ON depends on external parent 'config noc', so cant poll 1248 + * Clock ON depends on external parent 'config noc', so can't poll 1249 1249 * delay and also mark as crtitical for camss boot 1250 1250 */ 1251 1251 static struct clk_branch gcc_camera_ahb_clk = { ··· 1398 1398 }; 1399 1399 1400 1400 /* 1401 - * Clock ON depends on external parent 'config noc', so cant poll 1401 + * Clock ON depends on external parent 'config noc', so can't poll 1402 1402 * delay and also mark as crtitical for disp boot 1403 1403 */ 1404 1404 static struct clk_branch gcc_disp_ahb_clk = { ··· 3339 3339 }; 3340 3340 3341 3341 /* 3342 - * Clock ON depends on external parent 'config noc', so cant poll 3342 + * Clock ON depends on external parent 'config noc', so can't poll 3343 3343 * delay and also mark as crtitical for video boot 3344 3344 */ 3345 3345 static struct clk_branch gcc_video_ahb_clk = {
+3 -3
drivers/clk/rockchip/clk-cpu.c
··· 16 16 * of the SoC or supplied after the SoC characterization. 17 17 * 18 18 * The below implementation of the CPU clock allows the rate changes of the CPU 19 - * clock and the corresponding rate changes of the auxillary clocks of the CPU 19 + * clock and the corresponding rate changes of the auxiliary clocks of the CPU 20 20 * domain. The platform clock driver provides a clock register configuration 21 21 * for each configurable rate which is then used to program the clock hardware 22 - * registers to acheive a fast co-oridinated rate change for all the CPU domain 22 + * registers to achieve a fast co-oridinated rate change for all the CPU domain 23 23 * clocks. 24 24 * 25 25 * On a rate change request for the CPU clock, the rate change is propagated 26 - * upto the PLL supplying the clock to the CPU domain clock blocks. While the 26 + * up to the PLL supplying the clock to the CPU domain clock blocks. While the 27 27 * CPU domain PLL is reconfigured, the CPU domain clocks are driven using an 28 28 * alternate clock source. If required, the alternate clock source is divided 29 29 * down in order to keep the output clock rate within the previous OPP limits.
+2 -2
drivers/clk/rockchip/clk-mmc-phase.c
··· 174 174 175 175 /* 176 176 * rockchip_mmc_clk is mostly used by mmc controllers to sample 177 - * the intput data, which expects the fixed phase after the tuning 177 + * the input data, which expects the fixed phase after the tuning 178 178 * process. However if the clock rate is changed, the phase is stale 179 179 * and may break the data sampling. So here we try to restore the phase 180 180 * for that case, except that 181 - * (1) cached_phase is invaild since we inevitably cached it when the 181 + * (1) cached_phase is invalid since we inevitably cached it when the 182 182 * clock provider be reparented from orphan to its real parent in the 183 183 * first place. Otherwise we may mess up the initialization of MMC cards 184 184 * since we only set the default sample phase and drive phase later on.
+1 -1
drivers/clk/rockchip/clk-pll.c
··· 68 68 const struct rockchip_pll_rate_table *rate_table = pll->rate_table; 69 69 int i; 70 70 71 - /* Assumming rate_table is in descending order */ 71 + /* Assuming rate_table is in descending order */ 72 72 for (i = 0; i < pll->rate_count; i++) { 73 73 if (drate >= rate_table[i].rate) 74 74 return rate_table[i].rate;
+1 -1
drivers/clk/rockchip/clk.h
··· 532 532 * 533 533 * Flags: 534 534 * ROCKCHIP_PLL_SYNC_RATE - check rate parameters to match against the 535 - * rate_table parameters and ajust them if necessary. 535 + * rate_table parameters and adjust them if necessary. 536 536 * ROCKCHIP_PLL_FIXED_MODE - the pll operates in normal mode only 537 537 */ 538 538 struct rockchip_pll_clock {
+1 -1
drivers/clk/samsung/clk-cpu.c
··· 243 243 if (cpuclk->flags & CLK_CPU_NEEDS_DEBUG_ALT_DIV) { 244 244 /* 245 245 * In Exynos4210, ATB clock parent is also mout_core. So 246 - * ATB clock also needs to be mantained at safe speed. 246 + * ATB clock also needs to be maintained at safe speed. 247 247 */ 248 248 alt_div |= E4210_DIV0_ATB_MASK; 249 249 alt_div_mask |= E4210_DIV0_ATB_MASK;
+1 -1
drivers/clk/samsung/clk-pll.c
··· 56 56 const struct samsung_pll_rate_table *rate_table = pll->rate_table; 57 57 int i; 58 58 59 - /* Assumming rate_table is in descending order */ 59 + /* Assuming rate_table is in descending order */ 60 60 for (i = 0; i < pll->rate_count; i++) { 61 61 if (drate >= rate_table[i].rate) 62 62 return rate_table[i].rate;
+1 -1
drivers/clk/sophgo/clk-sg2042-clkgen.c
··· 968 968 /* 969 969 * "1" is the array index of the second parent input source of 970 970 * mux. For SG2042, it's fpll for all mux clocks. 971 - * "0" is the array index of the frist parent input source of 971 + * "0" is the array index of the first parent input source of 972 972 * mux, For SG2042, it's mpll. 973 973 * FIXME, any good idea to avoid magic number? 974 974 */
+1 -1
drivers/clk/spear/spear1340_clock.c
··· 199 199 * We can program this synthesizer to make cpu run on different clock 200 200 * frequencies. 201 201 * Following table provides configuration values to let cpu run on 200, 202 - * 250, 332, 400 or 500 MHz considering different possibilites of input 202 + * 250, 332, 400 or 500 MHz considering different possibilities of input 203 203 * (vco1div2) clock. 204 204 * 205 205 * --------------------------------------------------------------------
+1 -1
drivers/clk/sprd/gate.h
··· 26 26 * CLK_GATE_BIG_ENDIAN BIT(2) 27 27 * so we define new flags from BIT(3) 28 28 */ 29 - #define SPRD_GATE_NON_AON BIT(3) /* not alway powered on, check before read */ 29 + #define SPRD_GATE_NON_AON BIT(3) /* not always powered on, check before read */ 30 30 31 31 #define SPRD_SC_GATE_CLK_HW_INIT_FN(_struct, _name, _parent, _reg, \ 32 32 _sc_offset, _enable_mask, _flags, \
+2 -2
drivers/clk/sprd/ums512-clk.c
··· 1550 1550 1551 1551 /* audcp apb gates */ 1552 1552 /* Audcp apb clocks configure CLK_IGNORE_UNUSED because these clocks may be 1553 - * controlled by audcp sys at the same time. It may be cause an execption if 1553 + * controlled by audcp sys at the same time. It may cause an exception if 1554 1554 * kernel gates these clock. 1555 1555 */ 1556 1556 static SPRD_SC_GATE_CLK_HW(audcp_wdg_eb, "audcp-wdg-eb", ··· 1592 1592 1593 1593 /* audcp ahb gates */ 1594 1594 /* Audcp aphb clocks configure CLK_IGNORE_UNUSED because these clocks may be 1595 - * controlled by audcp sys at the same time. It may be cause an execption if 1595 + * controlled by audcp sys at the same time. It may cause an exception if 1596 1596 * kernel gates these clock. 1597 1597 */ 1598 1598 static SPRD_SC_GATE_CLK_HW(audcp_iis0_eb, "audcp-iis0-eb",
+1 -1
drivers/clk/starfive/clk-starfive-jh7110-sys.c
··· 376 376 377 377 /* 378 378 * This clock notifier is called when the rate of PLL0 clock is to be changed. 379 - * The cpu_root clock should save the curent parent clock and switch its parent 379 + * The cpu_root clock should save the current parent clock and switch its parent 380 380 * clock to osc before PLL0 rate will be changed. Then switch its parent clock 381 381 * back after the PLL0 rate is completed. 382 382 */
+1 -1
drivers/clk/stm32/clk-stm32mp1.c
··· 2041 2041 KCLK(ADFSDM_K, "adfsdm_k", sai_src, 0, G_ADFSDM, M_SAI1), 2042 2042 KCLK(USBO_K, "usbo_k", usbo_src, 0, G_USBO, M_USBO), 2043 2043 2044 - /* Particulary Kernel Clocks (no mux or no gate) */ 2044 + /* Particularly Kernel Clocks (no mux or no gate) */ 2045 2045 MGATE_MP1(DFSDM_K, "dfsdm_k", "ck_mcu", 0, G_DFSDM), 2046 2046 MGATE_MP1(DSI_PX, "dsi_px", "pll4_q", CLK_SET_RATE_PARENT, G_DSI), 2047 2047 MGATE_MP1(LTDC_PX, "ltdc_px", "pll4_q", CLK_SET_RATE_PARENT, G_LTDC),
+1 -1
drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c
··· 80 80 * in the BSP source code, although most of them are unused. The existence 81 81 * of the hardware block is verified with "3.1 Memory Mapping" chapter in 82 82 * "Allwinner H6 V200 User Manual V1.1"; and the parent APB buses are verified 83 - * with "3.3.2.1 System Bus Tree" chapter inthe same document. 83 + * with "3.3.2.1 System Bus Tree" chapter in the same document. 84 84 */ 85 85 static SUNXI_CCU_GATE(r_apb1_timer_clk, "r-apb1-timer", "r-apb1", 86 86 0x11c, BIT(0), 0);
+1 -1
drivers/clk/sunxi-ng/ccu-sun8i-r40.c
··· 439 439 static SUNXI_CCU_GATE(bus_i2c3_clk, "bus-i2c3", "apb2", 440 440 0x06c, BIT(3), 0); 441 441 /* 442 - * In datasheet here's "Reserved", however the gate exists in BSP soucre 442 + * In datasheet here's "Reserved", however the gate exists in BSP source 443 443 * code. 444 444 */ 445 445 static SUNXI_CCU_GATE(bus_can_clk, "bus-can", "apb2",
+1 -1
drivers/clk/sunxi-ng/ccu_common.c
··· 66 66 * changed. In common PLL designs, changes to the dividers take effect 67 67 * almost immediately, while changes to the multipliers (implemented 68 68 * as dividers in the feedback loop) take a few cycles to work into 69 - * the feedback loop for the PLL to stablize. 69 + * the feedback loop for the PLL to stabilize. 70 70 * 71 71 * Sometimes when the PLL clock rate is changed, the decrease in the 72 72 * divider is too much for the decrease in the multiplier to catch up.
+1 -1
drivers/clk/tegra/clk-tegra210.c
··· 255 255 /* VIC register to handle during MBIST WAR */ 256 256 #define NV_PVIC_THI_SLCG_OVERRIDE_LOW 0x8c 257 257 258 - /* APE, DISPA and VIC base addesses needed for MBIST WAR */ 258 + /* APE, DISPA and VIC base addresses needed for MBIST WAR */ 259 259 #define TEGRA210_AHUB_BASE 0x702d0000 260 260 #define TEGRA210_DISPA_BASE 0x54200000 261 261 #define TEGRA210_VIC_BASE 0x54340000
+1 -1
drivers/clk/ti/autoidle.c
··· 30 30 31 31 /* 32 32 * we have some non-atomic read/write 33 - * operations behind it, so lets 33 + * operations behind it, so let's 34 34 * take one lock for handling autoidle 35 35 * of all clocks 36 36 */
+1 -1
drivers/clk/ti/clk-43xx.c
··· 286 286 /* 287 287 * cpsw_cpts_rft_clk has got the choice of 3 clocksources 288 288 * dpll_core_m4_ck, dpll_core_m5_ck and dpll_disp_m2_ck. 289 - * By default dpll_core_m4_ck is selected, witn this as clock 289 + * By default dpll_core_m4_ck is selected, with this as clock 290 290 * source the CPTS doesnot work properly. It gives clockcheck errors 291 291 * while running PTP. 292 292 * clockcheck: clock jumped backward or running slower than expected!
+1 -1
drivers/clk/ti/mux.c
··· 84 84 } 85 85 86 86 /** 87 - * clk_mux_save_context - Save the parent selcted in the mux 87 + * clk_mux_save_context - Save the parent selected in the mux 88 88 * @hw: pointer struct clk_hw 89 89 * 90 90 * Save the parent mux value.
+1 -1
drivers/clk/versatile/clk-icst.c
··· 194 194 pr_err("ICST error: tried to use RDW != 22\n"); 195 195 break; 196 196 default: 197 - /* Regular auxilary oscillator */ 197 + /* Regular auxiliary oscillator */ 198 198 mask = VERSATILE_AUX_OSC_BITS; 199 199 val = vco.v | (vco.r << 9) | (vco.s << 16); 200 200 break;
+1 -1
drivers/clk/visconti/pll.c
··· 107 107 const struct visconti_pll_rate_table *rate_table = pll->rate_table; 108 108 int i; 109 109 110 - /* Assumming rate_table is in descending order */ 110 + /* Assuming rate_table is in descending order */ 111 111 for (i = 0; i < pll->rate_count; i++) 112 112 if (rate >= rate_table[i].rate) 113 113 return rate_table[i].rate;