From: Kishon Vijay Abraham I <kishon@ti.com>
To: Lee Jones <lee.jones@linaro.org>
Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org,
sergei.shtylyov@cogentembedded.com,
antoine.tenart@free-electrons.com, kgene.kim@samsung.com,
maxime.ripard@free-electrons.com
Subject: Re: [RFC PATCH 2/2] phy: core: the node pointer of PHY need not be the same as that of PHY provider
Date: Mon, 7 Jul 2014 19:39:29 +0530 [thread overview]
Message-ID: <53BAAA19.9050106@ti.com> (raw)
In-Reply-To: <20140707131232.GI6407@lee--X1>
Hi,
On Monday 07 July 2014 06:42 PM, Lee Jones wrote:
> On Fri, 04 Jul 2014, Kishon Vijay Abraham I wrote:
>
>> In case of multi-phy PHY providers, each PHY should be modeled as a sub
>> node of the PHY provider. Then each PHY will have a different node pointer
>> (node pointer of sub node) than that of PHY provider. Added this provision
>> in the PHY core.
>> Also fixed all drivers to use the updated API.
>>
>> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
>> ---
>> Documentation/phy.txt | 10 ++++++----
>> drivers/phy/phy-bcm-kona-usb2.c | 2 +-
>> drivers/phy/phy-core.c | 25 ++++++++++++++++++-------
>> drivers/phy/phy-exynos-dp-video.c | 2 +-
>> drivers/phy/phy-exynos-mipi-video.c | 2 +-
>> drivers/phy/phy-exynos5-usbdrd.c | 3 ++-
>> drivers/phy/phy-exynos5250-sata.c | 2 +-
>> drivers/phy/phy-mvebu-sata.c | 2 +-
>> drivers/phy/phy-omap-usb2.c | 2 +-
>> drivers/phy/phy-samsung-usb2.c | 3 ++-
>> drivers/phy/phy-sun4i-usb.c | 2 +-
>> drivers/phy/phy-ti-pipe3.c | 2 +-
>> drivers/phy/phy-twl4030-usb.c | 2 +-
>> drivers/phy/phy-xgene.c | 2 +-
>> include/linux/phy/phy.h | 15 ++++++++++-----
>> 15 files changed, 48 insertions(+), 28 deletions(-)
>
> I wrote a very similar patch already. I knew I should have sent it on
> Friday. :(
No problem! you can send your patch along with the MiPHY series.
Cheers
Kishon
>
> Patch looks good, just a real minor point.
>
>> phy->dev.class = phy_class;
>> phy->dev.parent = dev;
>> - phy->dev.of_node = dev->of_node;
>> + phy->dev.of_node = node?node:dev->of_node;
>
> There should be spaces either side of the '?' and ':', or you can do
> this more succinctly by:
>
> phy->dev.of_node = node ?: dev->of_node;
>
> Once fixed, feel free to add my:
>
> Acked-by: Lee Jones <lee.jones@linaro.org>
>
WARNING: multiple messages have this Message-ID (diff)
From: kishon@ti.com (Kishon Vijay Abraham I)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH 2/2] phy: core: the node pointer of PHY need not be the same as that of PHY provider
Date: Mon, 7 Jul 2014 19:39:29 +0530 [thread overview]
Message-ID: <53BAAA19.9050106@ti.com> (raw)
In-Reply-To: <20140707131232.GI6407@lee--X1>
Hi,
On Monday 07 July 2014 06:42 PM, Lee Jones wrote:
> On Fri, 04 Jul 2014, Kishon Vijay Abraham I wrote:
>
>> In case of multi-phy PHY providers, each PHY should be modeled as a sub
>> node of the PHY provider. Then each PHY will have a different node pointer
>> (node pointer of sub node) than that of PHY provider. Added this provision
>> in the PHY core.
>> Also fixed all drivers to use the updated API.
>>
>> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
>> ---
>> Documentation/phy.txt | 10 ++++++----
>> drivers/phy/phy-bcm-kona-usb2.c | 2 +-
>> drivers/phy/phy-core.c | 25 ++++++++++++++++++-------
>> drivers/phy/phy-exynos-dp-video.c | 2 +-
>> drivers/phy/phy-exynos-mipi-video.c | 2 +-
>> drivers/phy/phy-exynos5-usbdrd.c | 3 ++-
>> drivers/phy/phy-exynos5250-sata.c | 2 +-
>> drivers/phy/phy-mvebu-sata.c | 2 +-
>> drivers/phy/phy-omap-usb2.c | 2 +-
>> drivers/phy/phy-samsung-usb2.c | 3 ++-
>> drivers/phy/phy-sun4i-usb.c | 2 +-
>> drivers/phy/phy-ti-pipe3.c | 2 +-
>> drivers/phy/phy-twl4030-usb.c | 2 +-
>> drivers/phy/phy-xgene.c | 2 +-
>> include/linux/phy/phy.h | 15 ++++++++++-----
>> 15 files changed, 48 insertions(+), 28 deletions(-)
>
> I wrote a very similar patch already. I knew I should have sent it on
> Friday. :(
No problem! you can send your patch along with the MiPHY series.
Cheers
Kishon
>
> Patch looks good, just a real minor point.
>
>> phy->dev.class = phy_class;
>> phy->dev.parent = dev;
>> - phy->dev.of_node = dev->of_node;
>> + phy->dev.of_node = node?node:dev->of_node;
>
> There should be spaces either side of the '?' and ':', or you can do
> this more succinctly by:
>
> phy->dev.of_node = node ?: dev->of_node;
>
> Once fixed, feel free to add my:
>
> Acked-by: Lee Jones <lee.jones@linaro.org>
>
WARNING: multiple messages have this Message-ID (diff)
From: Kishon Vijay Abraham I <kishon@ti.com>
To: Lee Jones <lee.jones@linaro.org>
Cc: <linux-doc@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-samsung-soc@vger.kernel.org>,
<sergei.shtylyov@cogentembedded.com>,
<antoine.tenart@free-electrons.com>, <kgene.kim@samsung.com>,
<maxime.ripard@free-electrons.com>
Subject: Re: [RFC PATCH 2/2] phy: core: the node pointer of PHY need not be the same as that of PHY provider
Date: Mon, 7 Jul 2014 19:39:29 +0530 [thread overview]
Message-ID: <53BAAA19.9050106@ti.com> (raw)
In-Reply-To: <20140707131232.GI6407@lee--X1>
Hi,
On Monday 07 July 2014 06:42 PM, Lee Jones wrote:
> On Fri, 04 Jul 2014, Kishon Vijay Abraham I wrote:
>
>> In case of multi-phy PHY providers, each PHY should be modeled as a sub
>> node of the PHY provider. Then each PHY will have a different node pointer
>> (node pointer of sub node) than that of PHY provider. Added this provision
>> in the PHY core.
>> Also fixed all drivers to use the updated API.
>>
>> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
>> ---
>> Documentation/phy.txt | 10 ++++++----
>> drivers/phy/phy-bcm-kona-usb2.c | 2 +-
>> drivers/phy/phy-core.c | 25 ++++++++++++++++++-------
>> drivers/phy/phy-exynos-dp-video.c | 2 +-
>> drivers/phy/phy-exynos-mipi-video.c | 2 +-
>> drivers/phy/phy-exynos5-usbdrd.c | 3 ++-
>> drivers/phy/phy-exynos5250-sata.c | 2 +-
>> drivers/phy/phy-mvebu-sata.c | 2 +-
>> drivers/phy/phy-omap-usb2.c | 2 +-
>> drivers/phy/phy-samsung-usb2.c | 3 ++-
>> drivers/phy/phy-sun4i-usb.c | 2 +-
>> drivers/phy/phy-ti-pipe3.c | 2 +-
>> drivers/phy/phy-twl4030-usb.c | 2 +-
>> drivers/phy/phy-xgene.c | 2 +-
>> include/linux/phy/phy.h | 15 ++++++++++-----
>> 15 files changed, 48 insertions(+), 28 deletions(-)
>
> I wrote a very similar patch already. I knew I should have sent it on
> Friday. :(
No problem! you can send your patch along with the MiPHY series.
Cheers
Kishon
>
> Patch looks good, just a real minor point.
>
>> phy->dev.class = phy_class;
>> phy->dev.parent = dev;
>> - phy->dev.of_node = dev->of_node;
>> + phy->dev.of_node = node?node:dev->of_node;
>
> There should be spaces either side of the '?' and ':', or you can do
> this more succinctly by:
>
> phy->dev.of_node = node ?: dev->of_node;
>
> Once fixed, feel free to add my:
>
> Acked-by: Lee Jones <lee.jones@linaro.org>
>
next prev parent reply other threads:[~2014-07-07 14:09 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-04 15:07 [RFC PATCH 0/2] phy: core: better support for multi-phy in phy-core Kishon Vijay Abraham I
2014-07-04 15:07 ` Kishon Vijay Abraham I
2014-07-04 15:07 ` Kishon Vijay Abraham I
2014-07-04 15:07 ` [RFC PATCH 1/2] phy: core: Fix of_phy_provider_lookup to return PHY provider for sub node Kishon Vijay Abraham I
2014-07-04 15:07 ` Kishon Vijay Abraham I
2014-07-04 15:07 ` Kishon Vijay Abraham I
2014-07-07 13:43 ` Lee Jones
2014-07-07 13:43 ` Lee Jones
2014-07-04 15:07 ` [RFC PATCH 2/2] phy: core: the node pointer of PHY need not be the same as that of PHY provider Kishon Vijay Abraham I
2014-07-04 15:07 ` Kishon Vijay Abraham I
2014-07-04 15:07 ` Kishon Vijay Abraham I
2014-07-07 13:12 ` Lee Jones
2014-07-07 13:12 ` Lee Jones
2014-07-07 14:09 ` Kishon Vijay Abraham I [this message]
2014-07-07 14:09 ` Kishon Vijay Abraham I
2014-07-07 14:09 ` Kishon Vijay Abraham I
2014-07-07 14:59 ` Lee Jones
2014-07-07 14:59 ` Lee Jones
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=53BAAA19.9050106@ti.com \
--to=kishon@ti.com \
--cc=antoine.tenart@free-electrons.com \
--cc=kgene.kim@samsung.com \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=maxime.ripard@free-electrons.com \
--cc=sergei.shtylyov@cogentembedded.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 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.