mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Biju Das <biju.das.jz@bp.renesas.com>
To: Wolfram Sang <wsa+renesas@sang-engineering.com>,
	"Lad, Prabhakar" <prabhakar.csengg@gmail.com>
Cc: "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	Fabrizio Castro <fabrizio.castro.jz@renesas.com>,
	Conor Dooley <conor+dt@kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	Ulf Hansson <ulf.hansson@linaro.org>,
	Magnus Damm <magnus.damm@gmail.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>,
	"linux-renesas-soc@vger.kernel.org"
	<linux-renesas-soc@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [RFC PATCH v2 3/3] mmc: renesas_sdhi: Add support for RZ/V2H(P) SoC
Date: Thu, 20 Jun 2024 09:30:41 +0000	[thread overview]
Message-ID: <TY3PR01MB113467E6EF1CFC24154AF73E986C82@TY3PR01MB11346.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <o7tswznmyk6gxoqfqvbvzxdndvf5ggkyc54nwafypquxjlvdrv@3ncwl5i5wyy3>

Hi Wolfram, Prabhakar,

> -----Original Message-----
> From: Wolfram Sang <wsa+renesas@sang-engineering.com>
> Sent: Thursday, June 20, 2024 8:40 AM
> Subject: Re: [RFC PATCH v2 3/3] mmc: renesas_sdhi: Add support for RZ/V2H(P) SoC
> 
> Hi Prabhakar,
> 
> > I did give it a try with platform_driver_probe() and failed.
> 
> Ok, thanks for trying nonetheless!
> 
> > - Firstly I had to move the regulator node outside the SDHI node for
> > platform_driver_probe() to succeed or else it failed with -ENODEV (at
> > https://elixir.bootlin.com/linux/latest/source/drivers/base/platform.c
> > #L953)
> 
> This makes sense to me because it is just a "regular" regulator.
> 
> > - In Renesas SoCs we have multiple instances of SDHI, the problem
> > being for each instance we are calling platform_driver_probe(). Which
> > causes a problem as the regulator node will use the first device.
> 
> I see... we would need a reg property to differentiate between the internal regulators but that is
> already used by the parent SDHI node.
> 
> Okay, so let's scrap that idea. However, we need to ensure that we can still have an external
> regulator. Seeing the bindings, it looks like you enable the internal regulator with the "vqmmc-
> r9a09g057-regulator"
> property? I wonder now if we can simplify this to an "use-internal-regulator" property because we
> have 'compatible' already to differentiate? Needs advice from DT maintainers, probably.

Why this cannot be modelled as a regular "regulator" as a child device of SDHI device?

See [1] and [2]

[1]
https://lore.kernel.org/linux-renesas-soc/20240616105402.45211-1-biju.das.jz@bp.renesas.com/

[2]
https://elixir.bootlin.com/linux/latest/source/drivers/regulator/vqmmc-ipq4019-regulator.c

Cheers,
Biju


  reply	other threads:[~2024-06-20  9:30 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-13  9:17 [RFC PATCH v2 0/3] Add SD/MMC support for Renesas " Prabhakar
2024-06-13  9:17 ` [RFC PATCH v2 1/3] dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support Prabhakar
2024-06-13  9:17 ` [RFC PATCH v2 2/3] mmc: tmio: Use MMC core APIs to control the vqmmc regulator Prabhakar
2024-06-17  7:30   ` Wolfram Sang
2024-06-17  7:37   ` Geert Uytterhoeven
2024-06-13  9:17 ` [RFC PATCH v2 3/3] mmc: renesas_sdhi: Add support for RZ/V2H(P) SoC Prabhakar
2024-06-17  8:31   ` Wolfram Sang
2024-06-19 16:18     ` Lad, Prabhakar
2024-06-20  7:39       ` Wolfram Sang
2024-06-20  9:30         ` Biju Das [this message]
2024-06-20  9:43           ` Lad, Prabhakar
2024-06-20  9:49             ` Biju Das
2024-06-20  9:59               ` Lad, Prabhakar
2024-06-20 17:15         ` Lad, Prabhakar
2024-06-21  7:54           ` Wolfram Sang
2024-06-21 11:58             ` Geert Uytterhoeven
2024-06-21 12:33               ` Lad, Prabhakar
2024-06-28 14:17               ` Lad, Prabhakar
2024-06-20 15:40   ` Geert Uytterhoeven
2024-06-20 15:56     ` Lad, Prabhakar
2024-06-21  7:45       ` Wolfram Sang
2024-06-21  7:47         ` Wolfram Sang
2024-06-21  7:42     ` Wolfram Sang

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=TY3PR01MB113467E6EF1CFC24154AF73E986C82@TY3PR01MB11346.jpnprd01.prod.outlook.com \
    --to=biju.das.jz@bp.renesas.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=fabrizio.castro.jz@renesas.com \
    --cc=geert+renesas@glider.be \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=prabhakar.csengg@gmail.com \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --cc=robh@kernel.org \
    --cc=ulf.hansson@linaro.org \
    --cc=wsa+renesas@sang-engineering.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

all inboxes | Powered by JetHome®