From: Caleb Connolly <caleb.connolly@linaro.org>
To: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Sumit Garg <sumit.garg@linaro.org>,
Jaehoon Chung <jh80.chung@samsung.com>,
u-boot@lists.denx.de, u-boot-qcom@groups.io
Subject: Re: [PATCH v6 06/24] soc: qcom: cmd-db: adjust probe for U-Boot
Date: Fri, 19 Jul 2024 21:45:17 +0200 [thread overview]
Message-ID: <73e4df07-274e-4ceb-9d80-a3b54cc1e960@linaro.org> (raw)
In-Reply-To: <CAFLszTgYdSdPv5AhCOZBx0fh1292KAtZ9KBxTE3DVW5PnP6+oA@mail.gmail.com>
On 19/07/2024 17:04, Simon Glass wrote:
> Hi Caleb,
>
> On Tue, 16 Jul 2024 at 08:16, Caleb Connolly <caleb.connolly@linaro.org> wrote:
>>
>>
>>
>> On 16/07/2024 09:04, Simon Glass wrote:
>>> Hi Caleb,
>>>
>>> On Mon, 15 Jul 2024 at 22:42, Caleb Connolly <caleb.connolly@linaro.org> wrote:
>>>>
>>>>
>>>>
>>>> On 15/07/2024 13:39, Simon Glass wrote:
>>>>> On Mon, 15 Jul 2024 at 11:08, Caleb Connolly <caleb.connolly@linaro.org> wrote:
>>>>>>
>>>>>> Integrate cmd-db into the U-Boot driver model.
>>>>>>
>>>>>> This is just a wrapper around an in-memory database, so we just need to
>>>>>> get the address and validate that cmd-db is there.
>>>>>>
>>>>>> Since cmd_db_header will be stored in the .data section we can skip
>>>>>> bind if it's already set.
>>>>>>
>>>>>> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
>>>>>> ---
>>>>>> To: Simon Glass <sjg@chromium.org>
>>>>>> ---
>>>>>> drivers/soc/qcom/cmd-db.c | 72 +++++++++++++++--------------------------------
>>>>>> include/soc/qcom/cmd-db.h | 3 --
>>>>>> 2 files changed, 23 insertions(+), 52 deletions(-)
>>>>>>
>>>>>
>>>>> Reviewed-by: Simon Glass <sjg@chromium.org>
>>>>
>>>> Thanks
>>>>>
>>>>> BTW, this is a MISC driver. Does it implement the read() operation?
>>>>
>>>> No, the API (as defined in the header file) takes a string and returns a
>>>> database entry. cmd-db users don't have an easily available handle to
>>>> the node / udevice regardless.
>>>
>>> OK. The closest thing might be UCLASS_SYSINFO, but it is designed for
>>> inside U-Boot and uses an int instead of a string for lookup.
>>
>> Right, I don't think we'll be able to find a more optimum solution here.
>
> OK
>
>>>
>>> Could you use the devicetree for this information? What sort of info is it?
>>
>> It maps resource names (e.g. "ldoa1" - the LDO1 regulator on PMIC A) to
>> the address of the resource on the RPMh co-processor.
>>
>> We need to support existing (upstream) devicetree, since this has
>> already been around for many years.
>
> OK., Has this problem been resolved in more recent platforms?
What problem?
>
> Regards,
> Simon
--
// Caleb (they/them)
next prev parent reply other threads:[~2024-07-19 19:45 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-15 10:07 [PATCH v6 00/24] qcom: rpmh core and regulator support Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 01/24] dm: core: scan reserved-memory nodes Caleb Connolly
2024-07-15 11:39 ` Simon Glass
2024-07-15 10:08 ` [PATCH v6 02/24] linux/bitmap.h: add bitmap_empty helper Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 03/24] soc: qcom: import rpmh and cmd-db drivers from Linux Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 04/24] soc: qcom: cmd-db: adjust headers for U-Boot Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 05/24] soc: qcom: cmd-db: drop unused functions Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 06/24] soc: qcom: cmd-db: adjust probe for U-Boot Caleb Connolly
2024-07-15 11:39 ` Simon Glass
2024-07-15 21:42 ` Caleb Connolly
2024-07-16 7:04 ` Simon Glass
2024-07-16 7:16 ` Caleb Connolly
2024-07-19 15:04 ` Simon Glass
2024-07-19 19:45 ` Caleb Connolly [this message]
2024-07-20 12:36 ` Simon Glass
2024-07-15 10:08 ` [PATCH v6 07/24] soc: qcom: cmd-db: adjust for U-Boot API Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 08/24] soc: qcom: rpmh-rsc: drop unused multi-threading and non-active TCS support Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 09/24] soc: qcom: rpmh-rsc: adjust headers for U-Boot Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 10/24] soc: qcom: rpmh-rsc: adjust probe " Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 11/24] soc: qcom: rpmh-rsc: remaining U-Boot API changes Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 12/24] soc: qcom: rpmh: adjust headers for U-Boot Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 13/24] soc: qcom: rpmh: drop unused functions Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 14/24] soc: qcom: rpmh: U-Boot API changes Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 15/24] soc: qcom: add build infrastructure Caleb Connolly
2024-07-15 12:29 ` Neil Armstrong
2024-07-15 10:08 ` [PATCH v6 16/24] power: regulator: import qcom-rpmh-regulator from Linux Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 17/24] power: regulator: qcom-rpmh-regulator: adjust headers for U-Boot Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 18/24] power: regulator: qcom-rpmh-regulator: port over lineage_range helpers Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 19/24] power: regulator: qcom-rpmh-regulator: adjust structs for U-Boot Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 20/24] power: regulator: qcom-rpmh-regulator: remove unused regulators Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 21/24] power: regulator: qcom-rpmh-regulator: port ops to U-Boot Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 22/24] power: regulator: qcom-rpmh-regulator: adjust probe for U-Boot Caleb Connolly
2024-07-15 10:08 ` [PATCH v6 23/24] power: regulator: qcom-rpmh-regulator: add build infra Caleb Connolly
2024-07-15 12:29 ` Neil Armstrong
2024-07-15 10:08 ` [PATCH v6 24/24] qcom_defconfig: enable rpmh regulators Caleb Connolly
2024-07-25 23:38 ` [PATCH v6 00/24] qcom: rpmh core and regulator support Caleb Connolly
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=73e4df07-274e-4ceb-9d80-a3b54cc1e960@linaro.org \
--to=caleb.connolly@linaro.org \
--cc=jh80.chung@samsung.com \
--cc=neil.armstrong@linaro.org \
--cc=sjg@chromium.org \
--cc=sumit.garg@linaro.org \
--cc=trini@konsulko.com \
--cc=u-boot-qcom@groups.io \
--cc=u-boot@lists.denx.de \
/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