From: Stephen Boyd <sboyd@kernel.org>
To: Bo-Chen Chen <rex-bc.chen@mediatek.com>,
matthias.bgg@gmail.com, mturquette@baylibre.com,
p.zabel@pengutronix.de
Cc: runyang.chen@mediatek.com, miles.chen@mediatek.com,
wenst@chromium.org, angelogioacchino.delregno@collabora.com,
nfraprado@collabora.com, linux-kernel@vger.kernel.org,
linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,
Project_Global_Chrome_Upstream_Group@mediatek.com,
Bo-Chen Chen <rex-bc.chen@mediatek.com>
Subject: Re: [PATCH v6 2/3] clk: mediatek: Add auxiliary bus support for sysclk reset
Date: Thu, 27 Oct 2022 16:46:19 -0700 [thread overview]
Message-ID: <20221027234622.14589C433D6@smtp.kernel.org> (raw)
In-Reply-To: <20221021104804.21391-3-rex-bc.chen@mediatek.com>
Quoting Bo-Chen Chen (2022-10-21 03:48:03)
> diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c
> index 74408849ed86..61b7ee23738a 100644
> --- a/drivers/clk/mediatek/clk-mtk.c
> +++ b/drivers/clk/mediatek/clk-mtk.c
> @@ -444,6 +444,63 @@ void mtk_clk_unregister_dividers(const struct mtk_clk_divider *mcds, int num,
[..]
> +int mtk_reset_controller_register(struct device *dev, const char *name)
> +{
> + struct auxiliary_device *adev;
> + int ret;
> +
> + adev = mtk_reset_adev_alloc(dev, name);
> + if (IS_ERR(adev))
> + return PTR_ERR(adev);
> +
> + ret = auxiliary_device_add(adev);
> + if (ret) {
> + auxiliary_device_uninit(adev);
> + return ret;
> + }
> +
> + return devm_add_action_or_reset(dev, mtk_reset_unregister_adev, adev);
Can we have devm_auxiliary_device_add() that sets the parent and
registers the device?
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-10-27 23:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-21 10:48 [PATCH v6 0/3] Move mediatek system clock reset to reset folder Bo-Chen Chen
2022-10-21 10:48 ` [PATCH v6 1/3] reset: mediatek: Move MediaTek system clock reset to reset/mediatek Bo-Chen Chen
2022-10-25 10:36 ` AngeloGioacchino Del Regno
2022-10-31 5:14 ` Rex-BC Chen (陳柏辰)
2022-11-03 22:11 ` Nícolas F. R. A. Prado
2022-10-21 10:48 ` [PATCH v6 2/3] clk: mediatek: Add auxiliary bus support for sysclk reset Bo-Chen Chen
2022-10-27 23:46 ` Stephen Boyd [this message]
2022-10-31 5:57 ` Rex-BC Chen (陳柏辰)
2022-10-21 10:48 ` [PATCH v6 3/3] reset: mediatek: Add auxiliary bus support for sysclk Bo-Chen Chen
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=20221027234622.14589C433D6@smtp.kernel.org \
--to=sboyd@kernel.org \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=angelogioacchino.delregno@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=miles.chen@mediatek.com \
--cc=mturquette@baylibre.com \
--cc=nfraprado@collabora.com \
--cc=p.zabel@pengutronix.de \
--cc=rex-bc.chen@mediatek.com \
--cc=runyang.chen@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).