Re: [PATCH v6 10/22] clk: mediatek: Add MT8192 basic clocks support
From: Ikjoon Jang
Date: Wed Jan 06 2021 - 22:01:27 EST
On Wed, Jan 6, 2021 at 7:06 PM Weiyi Lu <weiyi.lu@xxxxxxxxxxxx> wrote:
>
> On Wed, 2021-01-06 at 18:52 +0800, Ikjoon Jang wrote:
> > On Wed, Jan 6, 2021 at 6:42 PM Weiyi Lu <weiyi.lu@xxxxxxxxxxxx> wrote:
> > >
> > > On Wed, 2021-01-06 at 18:25 +0800, Ikjoon Jang wrote:
> > > > On Tue, Dec 22, 2020 at 9:14 PM Weiyi Lu <weiyi.lu@xxxxxxxxxxxx> wrote:
> > > > >
> > > > > Add MT8192 basic clock providers, include topckgen, apmixedsys,
> > > > > infracfg and pericfg.
> > > > >
> > > > > Signed-off-by: Weiyi Lu <weiyi.lu@xxxxxxxxxxxx>
> > > > > ---
> > > > > drivers/clk/mediatek/Kconfig | 8 +
> > > > > drivers/clk/mediatek/Makefile | 1 +
> > > > > drivers/clk/mediatek/clk-mt8192.c | 1326 +++++++++++++++++++++++++++++++++++++
> > > > > drivers/clk/mediatek/clk-mux.h | 15 +
> > > > > 4 files changed, 1350 insertions(+)
> > > > > create mode 100644 drivers/clk/mediatek/clk-mt8192.c
> > > > >
> > > >
> > > > <snip>
> > > >
> > > > > diff --git a/drivers/clk/mediatek/clk-mux.h b/drivers/clk/mediatek/clk-mux.h
> > > > > index f5625f4..afbc7df 100644
> > > > > --- a/drivers/clk/mediatek/clk-mux.h
> > > > > +++ b/drivers/clk/mediatek/clk-mux.h
> > > > > @@ -77,6 +77,21 @@ struct mtk_mux {
> > > > > _width, _gate, _upd_ofs, _upd, \
> > > > > CLK_SET_RATE_PARENT)
> > > > >
> > > > > +#define MUX_CLR_SET_UPD_FLAGS(_id, _name, _parents, _mux_ofs, \
> > > > > + _mux_set_ofs, _mux_clr_ofs, _shift, _width, \
> > > > > + _upd_ofs, _upd, _flags) \
> > > > > + GATE_CLR_SET_UPD_FLAGS(_id, _name, _parents, _mux_ofs, \
> > > > > + _mux_set_ofs, _mux_clr_ofs, _shift, _width, \
> > > > > + 0, _upd_ofs, _upd, _flags, \
> > > > > + mtk_mux_clr_set_upd_ops)
> > > > > +
> > > > > +#define MUX_CLR_SET_UPD(_id, _name, _parents, _mux_ofs, \
> > > > > + _mux_set_ofs, _mux_clr_ofs, _shift, _width, \
> > > > > + _upd_ofs, _upd) \
> > > > > + MUX_CLR_SET_UPD_FLAGS(_id, _name, _parents, \
> > > > > + _mux_ofs, _mux_set_ofs, _mux_clr_ofs, _shift, \
> > > > > + _width, _upd_ofs, _upd, CLK_SET_RATE_PARENT)
> > > > > +
> > > >
> > > > conflicts, these macros are already existed in upstream.
> > >
> > > really? These two macros don't show up in 5.11-rc1 yet.
> >
> > yep, maybe this one: a3ae549917f1 "clk: mediatek: Add new clkmux register API"
> >
>
> The new macros in this patch are for the clock MUX without gate control.
> It's a little different from those mux macros with gate control in
> a3ae549917f1 "clk: mediatek: Add new clkmux register API"
>
sorry, my bad. it's just a simple context conflict from
> > >
> > > > > struct clk *mtk_clk_register_mux(const struct mtk_mux *mux,
> > > > > struct regmap *regmap,
> > > > > spinlock_t *lock);
> > > > > --
your another patch,
2aeff9d8c8e "clk: mediatek: Make mtk_clk_register_mux() a static function"
was applied before this series.
> > > > > 1.8.1.1.dirty
> > > > > _______________________________________________
> > > > > Linux-mediatek mailing list
> > > > > Linux-mediatek@xxxxxxxxxxxxxxxxxxx
> > > > > http://lists.infradead.org/mailman/listinfo/linux-mediatek
> > >
> > > _______________________________________________
> > > Linux-mediatek mailing list
> > > Linux-mediatek@xxxxxxxxxxxxxxxxxxx
> > > http://lists.infradead.org/mailman/listinfo/linux-mediatek
>