From: LABBE Corentin <clabbe@baylibre.com>
To: Rob Herring <robh@kernel.org>
Cc: hdegoede@redhat.com, linux@armlinux.org.uk, mark.rutland@arm.com,
maxime.ripard@free-electrons.com, tj@kernel.org, wens@csie.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-sunxi@googlegroups.com, thierry.reding@gmail.com,
icenowy@aosc.io
Subject: Re: [PATCH v3 4/9] dt-bindings: ata: ahci-platform: document AHCI reset
Date: Tue, 17 Jul 2018 13:16:30 +0200 [thread overview]
Message-ID: <20180717111630.GA7900@Red> (raw)
In-Reply-To: <20180716155416.GA32497@rob-hp-laptop>
On Mon, Jul 16, 2018 at 09:54:16AM -0600, Rob Herring wrote:
> On Fri, Jul 13, 2018 at 11:03:01AM +0000, Corentin Labbe wrote:
> > This patch document the new optional resets for ahci node.
> >
> > Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
> > ---
> > Documentation/devicetree/bindings/ata/ahci-platform.txt | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/ata/ahci-platform.txt b/Documentation/devicetree/bindings/ata/ahci-platform.txt
> > index 5f362af2724c..a5281d7557e3 100644
> > --- a/Documentation/devicetree/bindings/ata/ahci-platform.txt
> > +++ b/Documentation/devicetree/bindings/ata/ahci-platform.txt
> > @@ -34,6 +34,8 @@ Optional properties:
> > - phys : reference to the SATA PHY node
> > - phy-names : must be "sata-phy"
> > - ahci-supply : regulator for AHCI controller
> > +- resets : phandle to the reset line of AHCI controller
> > + If set, must have a reset-names set as "ahci"
>
> A name is pointless if there is only one. Also, the name should be what
> the signal in the block is called which I doubt would be called "ahci".
> A likely name is some form of reset, resetn, etc. which again is
> pointless to name if there is only 1.
>
> If you do have 'reset-names' then that needs to be listed too like
> phy-names.
>
Since the ahci-platform code is common to lots of different drivers, I must have a name otherwise I could grab a reset which wasnt for me.
See the revert of f0f56716fc3e ("ata: ahci-platform: add reset control support") for example.
So the code need to grab a name, and since this name could be used by other people I took the generic "ahci".
In my case (R40), the reset is called sata, so I will change reset-names to "sata" in my next serie.
Regards
WARNING: multiple messages have this Message-ID (diff)
From: clabbe@baylibre.com (LABBE Corentin)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 4/9] dt-bindings: ata: ahci-platform: document AHCI reset
Date: Tue, 17 Jul 2018 13:16:30 +0200 [thread overview]
Message-ID: <20180717111630.GA7900@Red> (raw)
In-Reply-To: <20180716155416.GA32497@rob-hp-laptop>
On Mon, Jul 16, 2018 at 09:54:16AM -0600, Rob Herring wrote:
> On Fri, Jul 13, 2018 at 11:03:01AM +0000, Corentin Labbe wrote:
> > This patch document the new optional resets for ahci node.
> >
> > Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
> > ---
> > Documentation/devicetree/bindings/ata/ahci-platform.txt | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/ata/ahci-platform.txt b/Documentation/devicetree/bindings/ata/ahci-platform.txt
> > index 5f362af2724c..a5281d7557e3 100644
> > --- a/Documentation/devicetree/bindings/ata/ahci-platform.txt
> > +++ b/Documentation/devicetree/bindings/ata/ahci-platform.txt
> > @@ -34,6 +34,8 @@ Optional properties:
> > - phys : reference to the SATA PHY node
> > - phy-names : must be "sata-phy"
> > - ahci-supply : regulator for AHCI controller
> > +- resets : phandle to the reset line of AHCI controller
> > + If set, must have a reset-names set as "ahci"
>
> A name is pointless if there is only one. Also, the name should be what
> the signal in the block is called which I doubt would be called "ahci".
> A likely name is some form of reset, resetn, etc. which again is
> pointless to name if there is only 1.
>
> If you do have 'reset-names' then that needs to be listed too like
> phy-names.
>
Since the ahci-platform code is common to lots of different drivers, I must have a name otherwise I could grab a reset which wasnt for me.
See the revert of f0f56716fc3e ("ata: ahci-platform: add reset control support") for example.
So the code need to grab a name, and since this name could be used by other people I took the generic "ahci".
In my case (R40), the reset is called sata, so I will change reset-names to "sata" in my next serie.
Regards
next prev parent reply other threads:[~2018-07-17 11:16 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-13 11:02 [PATCH v3 0/9] ata: ahci_platform: support allwinner R40 AHCI Corentin Labbe
2018-07-13 11:02 ` Corentin Labbe
2018-07-13 11:02 ` Corentin Labbe
2018-07-13 11:02 ` [PATCH v3 1/9] ata: ahci_platform: add support for AHCI controller regulator Corentin Labbe
2018-07-13 11:02 ` Corentin Labbe
2018-07-13 11:02 ` [PATCH v3 2/9] dt-bindings: ata: ahci-platform: document ahci-supply Corentin Labbe
2018-07-13 11:02 ` Corentin Labbe
[not found] ` <1531479786-4911-3-git-send-email-clabbe-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2018-07-16 15:49 ` Rob Herring
2018-07-16 15:49 ` Rob Herring
2018-07-16 15:49 ` Rob Herring
2018-07-13 11:03 ` [PATCH v3 3/9] ata: ahci_platform: add support for AHCI controller reset Corentin Labbe
2018-07-13 11:03 ` Corentin Labbe
2018-07-13 11:03 ` [PATCH v3 4/9] dt-bindings: ata: ahci-platform: document AHCI reset Corentin Labbe
2018-07-13 11:03 ` Corentin Labbe
[not found] ` <1531479786-4911-5-git-send-email-clabbe-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2018-07-13 12:44 ` Maxime Ripard
2018-07-13 12:44 ` Maxime Ripard
2018-07-13 12:44 ` Maxime Ripard
2018-07-16 15:54 ` Rob Herring
2018-07-16 15:54 ` Rob Herring
2018-07-16 15:54 ` Rob Herring
2018-07-17 11:16 ` LABBE Corentin [this message]
2018-07-17 11:16 ` LABBE Corentin
2018-07-13 11:03 ` [PATCH v3 5/9] dt-bindings: ata: ahci-platform: fix indentation of target-supply Corentin Labbe
2018-07-13 11:03 ` Corentin Labbe
[not found] ` <1531479786-4911-6-git-send-email-clabbe-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2018-07-16 15:55 ` Rob Herring
2018-07-16 15:55 ` Rob Herring
2018-07-16 15:55 ` Rob Herring
2018-07-13 11:03 ` [PATCH v3 6/9] ata: ahci_platform: add support for port regulator Corentin Labbe
2018-07-13 11:03 ` Corentin Labbe
[not found] ` <1531479786-4911-7-git-send-email-clabbe-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2018-07-13 11:07 ` Icenowy Zheng
2018-07-13 11:07 ` Icenowy Zheng
2018-07-13 11:07 ` Icenowy Zheng
2018-07-13 11:03 ` [PATCH v3 7/9] dt-bindings: ata: ahci-platform: document port-supply Corentin Labbe
2018-07-13 11:03 ` Corentin Labbe
2018-07-13 11:03 ` Corentin Labbe
2018-07-16 15:59 ` Rob Herring
2018-07-16 15:59 ` Rob Herring
2018-07-16 16:02 ` Icenowy Zheng
2018-07-16 16:02 ` Icenowy Zheng
2018-07-16 16:02 ` Icenowy Zheng
2018-07-13 11:03 ` [PATCH v3 8/9] ARM: dts: sun8i: r40: add sata node Corentin Labbe
2018-07-13 11:03 ` Corentin Labbe
2018-07-13 11:03 ` [PATCH v3 9/9] ARM: dts: sun8i: sun8i-r40-bananapi-m2-ultra: enable AHCI Corentin Labbe
2018-07-13 11:03 ` Corentin Labbe
2018-07-19 0:16 ` [PATCH v3 0/9] ata: ahci_platform: support allwinner R40 AHCI Simon Baatz
2018-07-19 0:16 ` Simon Baatz
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=20180717111630.GA7900@Red \
--to=clabbe@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=hdegoede@redhat.com \
--cc=icenowy@aosc.io \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@googlegroups.com \
--cc=linux@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=maxime.ripard@free-electrons.com \
--cc=robh@kernel.org \
--cc=thierry.reding@gmail.com \
--cc=tj@kernel.org \
--cc=wens@csie.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.