From: Matthias Brugger <matthias.bgg@gmail.com>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: roger.lu@mediatek.com, khilman@baylibre.com,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org,
nfraprado@collabora.com, kernel@collabora.com
Subject: Re: [PATCH 3/6] soc: mediatek: mtk-svs: Remove hardcoded irqflags
Date: Thu, 25 Aug 2022 15:28:13 +0200 [thread overview]
Message-ID: <20ad18de-0db0-c1fa-55e5-ad0897269876@gmail.com> (raw)
In-Reply-To: <20220726141653.177948-4-angelogioacchino.delregno@collabora.com>
On 26/07/2022 16:16, AngeloGioacchino Del Regno wrote:
> The interrupt flags are specified in devicetree: forcing them into
> the driver is suboptimal and not very useful.
>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Applied, thanks
> ---
> drivers/soc/mediatek/mtk-svs.c | 9 +--------
> 1 file changed, 1 insertion(+), 8 deletions(-)
>
> diff --git a/drivers/soc/mediatek/mtk-svs.c b/drivers/soc/mediatek/mtk-svs.c
> index ee990acfc2d5..fcf246a6bb07 100644
> --- a/drivers/soc/mediatek/mtk-svs.c
> +++ b/drivers/soc/mediatek/mtk-svs.c
> @@ -262,7 +262,6 @@ static const u32 svs_regs_v2[] = {
> * @rst: svs platform reset control
> * @efuse_parsing: svs platform efuse parsing function pointer
> * @probe: svs platform probe function pointer
> - * @irqflags: svs platform irq settings flags
> * @efuse_max: total number of svs efuse
> * @tefuse_max: total number of thermal efuse
> * @regs: svs platform registers map
> @@ -280,7 +279,6 @@ struct svs_platform {
> struct reset_control *rst;
> bool (*efuse_parsing)(struct svs_platform *svsp);
> int (*probe)(struct svs_platform *svsp);
> - unsigned long irqflags;
> size_t efuse_max;
> size_t tefuse_max;
> const u32 *regs;
> @@ -294,7 +292,6 @@ struct svs_platform_data {
> struct svs_bank *banks;
> bool (*efuse_parsing)(struct svs_platform *svsp);
> int (*probe)(struct svs_platform *svsp);
> - unsigned long irqflags;
> const u32 *regs;
> u32 bank_max;
> };
> @@ -2680,7 +2677,6 @@ static const struct svs_platform_data svs_mt8192_platform_data = {
> .banks = svs_mt8192_banks,
> .efuse_parsing = svs_mt8192_efuse_parsing,
> .probe = svs_mt8192_platform_probe,
> - .irqflags = IRQF_TRIGGER_HIGH,
> .regs = svs_regs_v2,
> .bank_max = ARRAY_SIZE(svs_mt8192_banks),
> };
> @@ -2699,7 +2695,6 @@ static const struct svs_platform_data svs_mt8183_platform_data = {
> .banks = svs_mt8183_banks,
> .efuse_parsing = svs_mt8183_efuse_parsing,
> .probe = svs_mt8183_platform_probe,
> - .irqflags = IRQF_TRIGGER_LOW,
> .regs = svs_regs_v2,
> .bank_max = ARRAY_SIZE(svs_mt8183_banks),
> };
> @@ -2743,7 +2738,6 @@ static struct svs_platform *svs_platform_probe(struct platform_device *pdev)
> svsp->banks = svsp_data->banks;
> svsp->efuse_parsing = svsp_data->efuse_parsing;
> svsp->probe = svsp_data->probe;
> - svsp->irqflags = svsp_data->irqflags;
> svsp->regs = svsp_data->regs;
> svsp->bank_max = svsp_data->bank_max;
>
> @@ -2782,8 +2776,7 @@ static int svs_probe(struct platform_device *pdev)
> }
>
> ret = devm_request_threaded_irq(svsp->dev, svsp_irq, NULL, svs_isr,
> - svsp->irqflags | IRQF_ONESHOT,
> - svsp->name, svsp);
> + IRQF_ONESHOT, svsp->name, svsp);
> if (ret) {
> dev_err(svsp->dev, "register irq(%d) failed: %d\n",
> svsp_irq, ret);
_______________________________________________
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-08-25 13:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-26 14:16 [PATCH 0/6] soc: mediatek: Cleanups for MediaTek SVS driver AngeloGioacchino Del Regno
2022-07-26 14:16 ` [PATCH 1/6] soc: mediatek: mtk-svs: Commonize t-calibration-data fuse array read AngeloGioacchino Del Regno
2022-08-25 13:27 ` Matthias Brugger
2022-07-26 14:16 ` [PATCH 2/6] soc: mediatek: mtk-svs: Switch to platform_get_irq() AngeloGioacchino Del Regno
2022-08-25 13:26 ` Matthias Brugger
2022-07-26 14:16 ` [PATCH 3/6] soc: mediatek: mtk-svs: Remove hardcoded irqflags AngeloGioacchino Del Regno
2022-08-25 13:28 ` Matthias Brugger [this message]
2022-07-26 14:16 ` [PATCH 4/6] soc: mediatek: mtk-svs: Drop of_match_ptr() for of_match_table AngeloGioacchino Del Regno
2022-08-25 13:28 ` Matthias Brugger
2022-07-26 14:16 ` [PATCH 5/6] soc: mediatek: mtk-svs: Use devm variant for dev_pm_opp_of_add_table() AngeloGioacchino Del Regno
2022-08-25 13:28 ` Matthias Brugger
2022-07-26 14:16 ` [PATCH 6/6] soc: mediatek: mtk-svs: Use bitfield access macros where possible AngeloGioacchino Del Regno
2022-08-25 13:29 ` Matthias Brugger
2022-08-25 18:50 ` Nícolas F. R. A. Prado
2022-08-29 9:36 ` AngeloGioacchino Del Regno
2022-08-29 9:33 ` AngeloGioacchino Del Regno
2022-08-29 11:02 ` Matthias Brugger
2022-07-26 14:22 ` [PATCH 0/6] soc: mediatek: Cleanups for MediaTek SVS driver AngeloGioacchino Del Regno
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=20ad18de-0db0-c1fa-55e5-ad0897269876@gmail.com \
--to=matthias.bgg@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=kernel@collabora.com \
--cc=khilman@baylibre.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=nfraprado@collabora.com \
--cc=roger.lu@mediatek.com \
/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).