From: "Kathpalia, Tanmay" <tanmay.kathpalia@altera.com>
To: Paul Cercueil <paul.cercueil@bootlin.com>,
Adrian Hunter <adrian.hunter@intel.com>,
Ulf Hansson <ulfh@kernel.org>
Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: Re: [PATCH] mmc: sdhci-cadence: enable probing from ACPI
Date: Sat, 7 Nov 2026 00:34:36 +0530 [thread overview]
Message-ID: <e98f0478-1b8b-4296-81c5-92dd4a4fc2f8@altera.com> (raw)
In-Reply-To: <5496704ade7e7f2ea2d7bedf2a68e31daa76518c.camel@bootlin.com>
On 04-11-2026 21:48, Paul Cercueil wrote:
> Le mercredi 04 novembre 2026 à 18:05 +0200, Adrian Hunter a écrit :
>> On 04/11/2026 16:38, Paul Cercueil wrote:
>>> Hi Adrian,
>>>
>>> Le mercredi 04 novembre 2026 à 16:30 +0200, Adrian Hunter a écrit :
>>>> On 03/11/2026 11:35, Paul Cercueil wrote:
>>>>> Use the device property API instead of the OF-specific property API.
>>>>> This way, the driver will also probe from ACPI.
>>>>>
>>>>> Note the change in the core's probe function for SD6HC. We can't have
>>>>> named clocks in ACPI.
>>>> Do you mean in the future? ACPI does not provide clocks at all
>>>> at the moment does it? Otherwise, clocks registered directly by
>>>> clk_register_clkdev() can have names. Maybe I misunderstand,
>>>> but perhaps clarify the commit message.
>>> I sent another patch in parallel of this one, that adds basic support for
>>> clock
>>> resources introduced in ACPI 6.5:
>>>
>>> https://lore.kernel.org/linux-acpi/20261103084718.8222-1-paul.cercueil@bootlin.com/T/#u
>>>
>> Would have been worth mentioning that in a cover letter.
>>
>> Seems like it gives the clock a name
>>
>> + snprintf(name, sizeof(name), "%s-clk%u", dev_name(dev), data-
>>> idx++);
>> +
>> + err = devm_clk_hw_register_clkdev(dev, clk, name,
>> dev_name(dev));
>>
>> but clk_find() doesn't look like it would match then - the comment says:
>> * An entry with a NULL ID is assumed to be a wildcard.
>> * If an entry has a device ID, it must match
>> * If an entry has a connection ID, it must match <------
> You're missing part 3 ;)
>
> https://lore.kernel.org/linux-arm-kernel/20261103084915.8405-1-paul.cercueil@bootlin.com/T/#u
>
> I also considered not giving them a name (which wouldn't require the clkdev
> patch), but thought that there's probably some ACPI tables out there that
> provide more than one fixed clock for the same device, so it felt like the
> safest option.
Note that on ACPI the driver requests a single unnamed clock and uses
it as "ciu"; with the proposed clkdev change this resolves to the first
clock registered for the device. The "biu" bus clock is not requested
and is expected to be kept enabled by firmware.
Acked-by: Tanmay Kathpalia <tanmay.kathpalia@altera.com>
prev parent reply other threads:[~2026-11-06 19:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 9:35 Paul Cercueil
2026-11-04 14:30 ` Adrian Hunter
2026-11-04 14:38 ` Paul Cercueil
2026-11-04 16:05 ` Adrian Hunter
2026-11-04 16:18 ` Paul Cercueil
2026-11-06 19:04 ` Kathpalia, Tanmay [this message]
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=e98f0478-1b8b-4296-81c5-92dd4a4fc2f8@altera.com \
--to=tanmay.kathpalia@altera.com \
--cc=adrian.hunter@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=paul.cercueil@bootlin.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=ulfh@kernel.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
all inboxes | Powered by JetHome®