Skip to content

Commit 0d51d0d

Browse files
committed
Merge tag 'samsung-clk-6.2' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into clk-fixes
Pull Samsung SoC clk driver fixes from Krzysztof Kozlowski: - Fix calling of_device_get_match_data() on wrong device (parent's) in Exynos clock out driver - Correct clock name in bindings of ExynosAutov9 clocks - Correct parents of div4 clock on Exynos7885 * tag 'samsung-clk-6.2' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux: clk: samsung: Revert "clk: samsung: exynos-clkout: Use of_device_get_match_data()" dt-bindings: clock: exynosautov9: fix reference to CMU_FSYS1 clk: samsung: exynos7885: Correct "div4" clock parents
2 parents 4cc47e8 + 2bc5feb commit 0d51d0d

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Documentation/devicetree/bindings/clock/samsung,exynosautov9-clock.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ allOf:
148148
items:
149149
- const: oscclk
150150
- const: dout_clkcmu_fsys1_bus
151-
- const: dout_clkcmu_fsys1_mmc_card
151+
- const: gout_clkcmu_fsys1_mmc_card
152152
- const: dout_clkcmu_fsys1_usbdrd
153153

154154
- if:

drivers/clk/samsung/clk-exynos-clkout.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,19 @@ MODULE_DEVICE_TABLE(of, exynos_clkout_ids);
8181
static int exynos_clkout_match_parent_dev(struct device *dev, u32 *mux_mask)
8282
{
8383
const struct exynos_clkout_variant *variant;
84+
const struct of_device_id *match;
8485

8586
if (!dev->parent) {
8687
dev_err(dev, "not instantiated from MFD\n");
8788
return -EINVAL;
8889
}
8990

90-
variant = of_device_get_match_data(dev->parent);
91-
if (!variant) {
91+
match = of_match_device(exynos_clkout_ids, dev->parent);
92+
if (!match) {
9293
dev_err(dev, "cannot match parent device\n");
9394
return -EINVAL;
9495
}
96+
variant = match->data;
9597

9698
*mux_mask = variant->mux_mask;
9799

drivers/clk/samsung/clk-exynos7885.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,15 @@ static const struct samsung_div_clock top_div_clks[] __initconst = {
231231
CLK_CON_DIV_PLL_SHARED0_DIV2, 0, 1),
232232
DIV(CLK_DOUT_SHARED0_DIV3, "dout_shared0_div3", "fout_shared0_pll",
233233
CLK_CON_DIV_PLL_SHARED0_DIV3, 0, 2),
234-
DIV(CLK_DOUT_SHARED0_DIV4, "dout_shared0_div4", "fout_shared0_pll",
234+
DIV(CLK_DOUT_SHARED0_DIV4, "dout_shared0_div4", "dout_shared0_div2",
235235
CLK_CON_DIV_PLL_SHARED0_DIV4, 0, 1),
236236
DIV(CLK_DOUT_SHARED0_DIV5, "dout_shared0_div5", "fout_shared0_pll",
237237
CLK_CON_DIV_PLL_SHARED0_DIV5, 0, 3),
238238
DIV(CLK_DOUT_SHARED1_DIV2, "dout_shared1_div2", "fout_shared1_pll",
239239
CLK_CON_DIV_PLL_SHARED1_DIV2, 0, 1),
240240
DIV(CLK_DOUT_SHARED1_DIV3, "dout_shared1_div3", "fout_shared1_pll",
241241
CLK_CON_DIV_PLL_SHARED1_DIV3, 0, 2),
242-
DIV(CLK_DOUT_SHARED1_DIV4, "dout_shared1_div4", "fout_shared1_pll",
242+
DIV(CLK_DOUT_SHARED1_DIV4, "dout_shared1_div4", "dout_shared1_div2",
243243
CLK_CON_DIV_PLL_SHARED1_DIV4, 0, 1),
244244

245245
/* CORE */

0 commit comments

Comments
 (0)