From: Daniel Golle <daniel@makrotopia.org>
To: "Michael Turquette" <mturquette@baylibre.com>,
"Stephen Boyd" <sboyd@kernel.org>,
"Matthias Brugger" <matthias.bgg@gmail.com>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>,
"Daniel Golle" <daniel@makrotopia.org>,
"Nícolas F. R. A. Prado" <nfraprado@collabora.com>,
"Laura Nao" <laura.nao@collabora.com>,
"Chen-Yu Tsai" <wenst@chromium.org>,
"Weiyi Lu" <weiyi.lu@mediatek.com>,
"Chun-Jie Chen" <chun-jie.chen@mediatek.com>,
"Ikjoon Jang" <ikjn@chromium.org>,
"Sam Shih" <sam.shih@mediatek.com>,
linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org
Subject: [PATCH v2 0/3] clk: mediatek: fix gate-less mux definitions
Date: Thu, 26 Mar 2026 05:09:22 +0000 [thread overview]
Message-ID: <cover.1774499536.git.daniel@makrotopia.org> (raw)
Some MediaTek clock drivers define gate-less muxes without an update
register using MUX_GATE_CLR_SET_UPD, passing -1 as a sentinel for the
absent gate and update fields. Since those fields are stored in u8 and
u32 struct members, the -1 truncates to unexpected values.
Add MUX_CLR_SET, a wrapper around MUX_CLR_SET_UPD that hardcodes the
absent fields, and convert the affected mux definitions in mt8192 and
mt7988 to use it.
Daniel Golle (3):
clk: mediatek: add MUX_CLR_SET macro
clk: mediatek: mt8192: use MUX_CLR_SET
clk: mediatek: mt7988: use MUX_CLR_SET for gate-less muxes
drivers/clk/mediatek/clk-mt7988-infracfg.c | 80 ++++++++++------------
drivers/clk/mediatek/clk-mt8192.c | 4 +-
drivers/clk/mediatek/clk-mux.h | 6 ++
3 files changed, 46 insertions(+), 44 deletions(-)
--
2.53.0
next reply other threads:[~2026-03-26 5:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-26 5:09 Daniel Golle [this message]
2026-03-26 5:09 ` [PATCH v2 1/3] clk: mediatek: add MUX_CLR_SET macro Daniel Golle
2026-03-26 6:37 ` Chen-Yu Tsai
2026-04-29 2:06 ` Stephen Boyd
2026-03-26 5:10 ` [PATCH v2 2/3] clk: mediatek: mt8192: use MUX_CLR_SET Daniel Golle
2026-03-26 6:37 ` Chen-Yu Tsai
2026-04-29 2:06 ` Stephen Boyd
2026-03-26 5:11 ` [PATCH v2 3/3] clk: mediatek: mt7988: use MUX_CLR_SET for gate-less muxes Daniel Golle
2026-03-26 6:39 ` Chen-Yu Tsai
2026-04-29 2:06 ` Stephen Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1774499536.git.daniel@makrotopia.org \
--to=daniel@makrotopia.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chun-jie.chen@mediatek.com \
--cc=ikjn@chromium.org \
--cc=laura.nao@collabora.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=mturquette@baylibre.com \
--cc=nfraprado@collabora.com \
--cc=sam.shih@mediatek.com \
--cc=sboyd@kernel.org \
--cc=weiyi.lu@mediatek.com \
--cc=wenst@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.