From: Christian Marangi <ansuelsmth@gmail.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Chaotian Jing <chaotian.jing@mediatek.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Wenbin Mei <wenbin.mei@mediatek.com>,
linux-mmc@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, upstream@airoha.com
Subject: Re: [PATCH v2 2/2] mmc: mtk-sd: add support for AN7581 MMC Host
Date: Mon, 27 Jan 2025 12:41:10 +0100 [thread overview]
Message-ID: <679770d8.7b0a0220.b6f23.38b4@mx.google.com> (raw)
In-Reply-To: <20250121-zippy-umber-fossa-abbfb0@krzk-bin>
On Tue, Jan 21, 2025 at 08:59:19AM +0100, Krzysztof Kozlowski wrote:
> On Mon, Jan 20, 2025 at 07:47:02PM +0100, Christian Marangi wrote:
> > - pinctrl_select_state(host->pinctrl, host->pins_uhs);
> > + /* Skip setting uhs pins if not supported */
> > + if (host->pins_uhs)
> > + pinctrl_select_state(host->pinctrl, host->pins_uhs);
> > } else {
> > dev_pm_clear_wake_irq(host->dev);
> > }
> > @@ -2816,9 +2835,12 @@ static int msdc_of_clock_parse(struct platform_device *pdev,
> > if (IS_ERR(host->src_clk))
> > return PTR_ERR(host->src_clk);
> >
> > - host->h_clk = devm_clk_get(&pdev->dev, "hclk");
> > - if (IS_ERR(host->h_clk))
> > - return PTR_ERR(host->h_clk);
> > + /* AN7581 SoC doesn't have hclk */
> > + if (!device_is_compatible(&pdev->dev, "airoha,an7581-mmc")) {
>
> Please avoid coding compatible in multiple places. Not only because
> above check is slow comparing to check on integer, but it just scales
> poorly and leads to less readable further code. Use driver data with
> model name or flags/quirks bitmask.
>
I implemented this in a more compatible way so we don't need an
additional compatible anymore. Soo this series is not needed anymore.
Should I flag these as not applicable anywhere in the patchwork systems?
--
Ansuel
next prev parent reply other threads:[~2025-01-27 11:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-20 18:47 [PATCH v2 1/2] dt-bindings: mmc: mtk-sd: Add eMMC for AN7581 Christian Marangi
2025-01-20 18:47 ` [PATCH v2 2/2] mmc: mtk-sd: add support for AN7581 MMC Host Christian Marangi
2025-01-21 7:59 ` Krzysztof Kozlowski
2025-01-27 11:41 ` Christian Marangi [this message]
2025-01-27 15:15 ` Ulf Hansson
2025-01-20 20:29 ` [PATCH v2 1/2] dt-bindings: mmc: mtk-sd: Add eMMC for AN7581 Rob Herring (Arm)
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=679770d8.7b0a0220.b6f23.38b4@mx.google.com \
--to=ansuelsmth@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chaotian.jing@mediatek.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-mmc@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=robh@kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=upstream@airoha.com \
--cc=wenbin.mei@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