Skip to content

Commit d6b8a8c

Browse files
committed
Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
Pull clk fixes from Stephen Boyd: "A couple more patches that would be good to get into -rc1: - Revert an i.MX patch that's causing video failures because division math goes sideways - Fix a clang + W=1 build isue where FIELD_PREP() is taking a 32-bit variable instead of the usual u64 type - Fix a Kconfig bug in the StarFive JH7110 clk config that selects a reset controller when it can't be selected" * tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: clk: starfive: Fix RESET_STARFIVE_JH7110 can't be selected in a specified case clk: sp7021: Adjust width of _m in HWM_FIELD_PREP() Revert "clk: imx: composite-8m: Add support to determine_rate"
2 parents 1c1094e + 31c6ed4 commit d6b8a8c

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

drivers/clk/clk-sp7021.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ enum {
4141
/* HIWORD_MASK FIELD_PREP */
4242
#define HWM_FIELD_PREP(mask, value) \
4343
({ \
44-
u32 _m = mask; \
44+
u64 _m = mask; \
4545
(_m << 16) | FIELD_PREP(_m, value); \
4646
})
4747

drivers/clk/imx/clk-composite-8m.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,10 @@ static int imx8m_clk_composite_divider_set_rate(struct clk_hw *hw,
119119
return ret;
120120
}
121121

122-
static int imx8m_clk_divider_determine_rate(struct clk_hw *hw,
123-
struct clk_rate_request *req)
124-
{
125-
return clk_divider_ops.determine_rate(hw, req);
126-
}
127-
128122
static const struct clk_ops imx8m_clk_composite_divider_ops = {
129123
.recalc_rate = imx8m_clk_composite_divider_recalc_rate,
130124
.round_rate = imx8m_clk_composite_divider_round_rate,
131125
.set_rate = imx8m_clk_composite_divider_set_rate,
132-
.determine_rate = imx8m_clk_divider_determine_rate,
133126
};
134127

135128
static u8 imx8m_clk_composite_mux_get_parent(struct clk_hw *hw)

drivers/clk/starfive/Kconfig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ config CLK_STARFIVE_JH7110_SYS
2626
depends on ARCH_STARFIVE || COMPILE_TEST
2727
select AUXILIARY_BUS
2828
select CLK_STARFIVE_JH71X0
29-
select RESET_STARFIVE_JH7110
29+
select RESET_STARFIVE_JH7110 if RESET_CONTROLLER
3030
default ARCH_STARFIVE
3131
help
3232
Say yes here to support the system clock controller on the
@@ -35,9 +35,6 @@ config CLK_STARFIVE_JH7110_SYS
3535
config CLK_STARFIVE_JH7110_AON
3636
tristate "StarFive JH7110 always-on clock support"
3737
depends on CLK_STARFIVE_JH7110_SYS
38-
select AUXILIARY_BUS
39-
select CLK_STARFIVE_JH71X0
40-
select RESET_STARFIVE_JH7110
4138
default m if ARCH_STARFIVE
4239
help
4340
Say yes here to support the always-on clock controller on the

0 commit comments

Comments
 (0)