All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH RESEND] phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID
@ 2016-05-26 16:24 Andrea Merello
  2016-09-27 12:59 ` Marek Vasut
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Andrea Merello @ 2016-05-26 16:24 UTC (permalink / raw)
  To: u-boot

This adds support for internal delay on RX and TX on RGMII interface for the
AR8035 phy.

This is basically the same Linux driver do. Tested on a Zynq Zturn board (for
which u-boot support in is my tree; first patch waiting ML approval)

Signed-off-by: Andrea Merello <andrea.merello@gmail.com>

diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c
index e57c412..694a338 100644
--- a/drivers/net/phy/atheros.c
+++ b/drivers/net/phy/atheros.c
@@ -31,6 +31,22 @@ static int ar8035_config(struct phy_device *phydev)
 	regval = phy_read(phydev, MDIO_DEVAD_NONE, 0x1e);
 	phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, (regval|0x0100));

+	if ((phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) ||
+	    (phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID)) {
+		/* select debug reg 5 */
+		phy_write(phydev, MDIO_DEVAD_NONE, 0x1D, 0x5);
+		/* enable tx delay */
+		phy_write(phydev, MDIO_DEVAD_NONE, 0x1E, 0x0100);
+	}
+
+	if ((phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) ||
+	    (phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID)) {
+		/* select debug reg 0 */
+		phy_write(phydev, MDIO_DEVAD_NONE, 0x1D, 0x0);
+		/* enable rx delay */
+		phy_write(phydev, MDIO_DEVAD_NONE, 0x1E, 0x8000);
+	}
+
 	phydev->supported = phydev->drv->features;

 	genphy_config_aneg(phydev);
--
2.1.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH RESEND] phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID
  2016-05-26 16:24 [U-Boot] [PATCH RESEND] phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID Andrea Merello
@ 2016-09-27 12:59 ` Marek Vasut
  2016-09-28 18:55   ` Joe Hershberger
  2016-09-28 18:53 ` Joe Hershberger
  2016-10-13 17:38 ` [U-Boot] " Joe Hershberger
  2 siblings, 1 reply; 10+ messages in thread
From: Marek Vasut @ 2016-09-27 12:59 UTC (permalink / raw)
  To: u-boot

On 05/26/2016 06:24 PM, Andrea Merello wrote:
> This adds support for internal delay on RX and TX on RGMII interface for the
> AR8035 phy.
> 
> This is basically the same Linux driver do. Tested on a Zynq Zturn board (for
> which u-boot support in is my tree; first patch waiting ML approval)
> 
> Signed-off-by: Andrea Merello <andrea.merello@gmail.com>

Reviewed-by: Marek Vasut <marex@denx.de>
Acked-by: Marek Vasut <marex@denx.de>

Can we get this applied ? Thanks

> 
> diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c
> index e57c412..694a338 100644
> --- a/drivers/net/phy/atheros.c
> +++ b/drivers/net/phy/atheros.c
> @@ -31,6 +31,22 @@ static int ar8035_config(struct phy_device *phydev)
>  	regval = phy_read(phydev, MDIO_DEVAD_NONE, 0x1e);
>  	phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, (regval|0x0100));
> 
> +	if ((phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) ||
> +	    (phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID)) {
> +		/* select debug reg 5 */
> +		phy_write(phydev, MDIO_DEVAD_NONE, 0x1D, 0x5);
> +		/* enable tx delay */
> +		phy_write(phydev, MDIO_DEVAD_NONE, 0x1E, 0x0100);
> +	}
> +
> +	if ((phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) ||
> +	    (phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID)) {
> +		/* select debug reg 0 */
> +		phy_write(phydev, MDIO_DEVAD_NONE, 0x1D, 0x0);
> +		/* enable rx delay */
> +		phy_write(phydev, MDIO_DEVAD_NONE, 0x1E, 0x8000);
> +	}
> +
>  	phydev->supported = phydev->drv->features;
> 
>  	genphy_config_aneg(phydev);
> --
> 2.1.4
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
> 


-- 
Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH RESEND] phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID
  2016-05-26 16:24 [U-Boot] [PATCH RESEND] phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID Andrea Merello
  2016-09-27 12:59 ` Marek Vasut
@ 2016-09-28 18:53 ` Joe Hershberger
  2016-10-13 17:38 ` [U-Boot] " Joe Hershberger
  2 siblings, 0 replies; 10+ messages in thread
From: Joe Hershberger @ 2016-09-28 18:53 UTC (permalink / raw)
  To: u-boot

On Thu, May 26, 2016 at 11:24 AM, Andrea Merello
<andrea.merello@gmail.com> wrote:
> This adds support for internal delay on RX and TX on RGMII interface for the
> AR8035 phy.
>
> This is basically the same Linux driver do. Tested on a Zynq Zturn board (for
> which u-boot support in is my tree; first patch waiting ML approval)
>
> Signed-off-by: Andrea Merello <andrea.merello@gmail.com>

Acked-by: Joe Hershberger <joe.hershberger@ni.com>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH RESEND] phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID
  2016-09-27 12:59 ` Marek Vasut
@ 2016-09-28 18:55   ` Joe Hershberger
  2016-09-28 19:01     ` Marek Vasut
  0 siblings, 1 reply; 10+ messages in thread
From: Joe Hershberger @ 2016-09-28 18:55 UTC (permalink / raw)
  To: u-boot

On Tue, Sep 27, 2016 at 7:59 AM, Marek Vasut <marex@denx.de> wrote:
> On 05/26/2016 06:24 PM, Andrea Merello wrote:
>> This adds support for internal delay on RX and TX on RGMII interface for the
>> AR8035 phy.
>>
>> This is basically the same Linux driver do. Tested on a Zynq Zturn board (for
>> which u-boot support in is my tree; first patch waiting ML approval)
>>
>> Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
>
> Reviewed-by: Marek Vasut <marex@denx.de>
> Acked-by: Marek Vasut <marex@denx.de>
>
> Can we get this applied ? Thanks

This is assigned to Michal in patchwork, so at least someone thinks
that's the correct path. I'm good either way.

-Joe

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH RESEND] phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID
  2016-09-28 18:55   ` Joe Hershberger
@ 2016-09-28 19:01     ` Marek Vasut
  2016-09-28 19:04       ` Joe Hershberger
  0 siblings, 1 reply; 10+ messages in thread
From: Marek Vasut @ 2016-09-28 19:01 UTC (permalink / raw)
  To: u-boot

On 09/28/2016 08:55 PM, Joe Hershberger wrote:
> On Tue, Sep 27, 2016 at 7:59 AM, Marek Vasut <marex@denx.de> wrote:
>> On 05/26/2016 06:24 PM, Andrea Merello wrote:
>>> This adds support for internal delay on RX and TX on RGMII interface for the
>>> AR8035 phy.
>>>
>>> This is basically the same Linux driver do. Tested on a Zynq Zturn board (for
>>> which u-boot support in is my tree; first patch waiting ML approval)
>>>
>>> Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
>>
>> Reviewed-by: Marek Vasut <marex@denx.de>
>> Acked-by: Marek Vasut <marex@denx.de>
>>
>> Can we get this applied ? Thanks
> 
> This is assigned to Michal in patchwork, so at least someone thinks
> that's the correct path. I'm good either way.

Well that doesn't make any sense, so please pick it.

-- 
Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH RESEND] phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID
  2016-09-28 19:01     ` Marek Vasut
@ 2016-09-28 19:04       ` Joe Hershberger
  2016-09-28 19:10         ` Marek Vasut
  0 siblings, 1 reply; 10+ messages in thread
From: Joe Hershberger @ 2016-09-28 19:04 UTC (permalink / raw)
  To: u-boot

On Wed, Sep 28, 2016 at 2:01 PM, Marek Vasut <marex@denx.de> wrote:
> On 09/28/2016 08:55 PM, Joe Hershberger wrote:
>> On Tue, Sep 27, 2016 at 7:59 AM, Marek Vasut <marex@denx.de> wrote:
>>> On 05/26/2016 06:24 PM, Andrea Merello wrote:
>>>> This adds support for internal delay on RX and TX on RGMII interface for the
>>>> AR8035 phy.
>>>>
>>>> This is basically the same Linux driver do. Tested on a Zynq Zturn board (for
>>>> which u-boot support in is my tree; first patch waiting ML approval)
>>>>
>>>> Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
>>>
>>> Reviewed-by: Marek Vasut <marex@denx.de>
>>> Acked-by: Marek Vasut <marex@denx.de>
>>>
>>> Can we get this applied ? Thanks
>>
>> This is assigned to Michal in patchwork, so at least someone thinks
>> that's the correct path. I'm good either way.
>
> Well that doesn't make any sense, so please pick it.

Probably was done because it mentions it's for a Zynq board. Sure
would be nice if patchwork listed a history of who changed what
fields.

-Joe

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH RESEND] phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID
  2016-09-28 19:04       ` Joe Hershberger
@ 2016-09-28 19:10         ` Marek Vasut
  2016-09-28 19:13           ` Joe Hershberger
  0 siblings, 1 reply; 10+ messages in thread
From: Marek Vasut @ 2016-09-28 19:10 UTC (permalink / raw)
  To: u-boot

On 09/28/2016 09:04 PM, Joe Hershberger wrote:
> On Wed, Sep 28, 2016 at 2:01 PM, Marek Vasut <marex@denx.de> wrote:
>> On 09/28/2016 08:55 PM, Joe Hershberger wrote:
>>> On Tue, Sep 27, 2016 at 7:59 AM, Marek Vasut <marex@denx.de> wrote:
>>>> On 05/26/2016 06:24 PM, Andrea Merello wrote:
>>>>> This adds support for internal delay on RX and TX on RGMII interface for the
>>>>> AR8035 phy.
>>>>>
>>>>> This is basically the same Linux driver do. Tested on a Zynq Zturn board (for
>>>>> which u-boot support in is my tree; first patch waiting ML approval)
>>>>>
>>>>> Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
>>>>
>>>> Reviewed-by: Marek Vasut <marex@denx.de>
>>>> Acked-by: Marek Vasut <marex@denx.de>
>>>>
>>>> Can we get this applied ? Thanks
>>>
>>> This is assigned to Michal in patchwork, so at least someone thinks
>>> that's the correct path. I'm good either way.
>>
>> Well that doesn't make any sense, so please pick it.
> 
> Probably was done because it mentions it's for a Zynq board. Sure
> would be nice if patchwork listed a history of who changed what
> fields.

I would rather avoid fingerpointing, but probably Tom, he's the one
doing the hard work of reassigning patches and is alone at it I think.
Thus, accidents can happen.

-- 
Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH RESEND] phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID
  2016-09-28 19:10         ` Marek Vasut
@ 2016-09-28 19:13           ` Joe Hershberger
  2016-09-29 17:22             ` Michal Simek
  0 siblings, 1 reply; 10+ messages in thread
From: Joe Hershberger @ 2016-09-28 19:13 UTC (permalink / raw)
  To: u-boot

On Wed, Sep 28, 2016 at 2:10 PM, Marek Vasut <marex@denx.de> wrote:
> On 09/28/2016 09:04 PM, Joe Hershberger wrote:
>> On Wed, Sep 28, 2016 at 2:01 PM, Marek Vasut <marex@denx.de> wrote:
>>> On 09/28/2016 08:55 PM, Joe Hershberger wrote:
>>>> On Tue, Sep 27, 2016 at 7:59 AM, Marek Vasut <marex@denx.de> wrote:
>>>>> On 05/26/2016 06:24 PM, Andrea Merello wrote:
>>>>>> This adds support for internal delay on RX and TX on RGMII interface for the
>>>>>> AR8035 phy.
>>>>>>
>>>>>> This is basically the same Linux driver do. Tested on a Zynq Zturn board (for
>>>>>> which u-boot support in is my tree; first patch waiting ML approval)
>>>>>>
>>>>>> Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
>>>>>
>>>>> Reviewed-by: Marek Vasut <marex@denx.de>
>>>>> Acked-by: Marek Vasut <marex@denx.de>
>>>>>
>>>>> Can we get this applied ? Thanks
>>>>
>>>> This is assigned to Michal in patchwork, so at least someone thinks
>>>> that's the correct path. I'm good either way.
>>>
>>> Well that doesn't make any sense, so please pick it.
>>
>> Probably was done because it mentions it's for a Zynq board. Sure
>> would be nice if patchwork listed a history of who changed what
>> fields.
>
> I would rather avoid fingerpointing, but probably Tom, he's the one
> doing the hard work of reassigning patches and is alone at it I think.
> Thus, accidents can happen.

I also assign some, mostly unassigned and pertaining to me. I
certainly try to not take patches assigned to others when there's any
doubt in case they are in progress. I'm not interested in
finger-pointing so much as knowing who to ask about the assignment.

-Joe

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH RESEND] phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID
  2016-09-28 19:13           ` Joe Hershberger
@ 2016-09-29 17:22             ` Michal Simek
  0 siblings, 0 replies; 10+ messages in thread
From: Michal Simek @ 2016-09-29 17:22 UTC (permalink / raw)
  To: u-boot

On 28.9.2016 12:13, Joe Hershberger wrote:
> On Wed, Sep 28, 2016 at 2:10 PM, Marek Vasut <marex@denx.de> wrote:
>> On 09/28/2016 09:04 PM, Joe Hershberger wrote:
>>> On Wed, Sep 28, 2016 at 2:01 PM, Marek Vasut <marex@denx.de> wrote:
>>>> On 09/28/2016 08:55 PM, Joe Hershberger wrote:
>>>>> On Tue, Sep 27, 2016 at 7:59 AM, Marek Vasut <marex@denx.de> wrote:
>>>>>> On 05/26/2016 06:24 PM, Andrea Merello wrote:
>>>>>>> This adds support for internal delay on RX and TX on RGMII interface for the
>>>>>>> AR8035 phy.
>>>>>>>
>>>>>>> This is basically the same Linux driver do. Tested on a Zynq Zturn board (for
>>>>>>> which u-boot support in is my tree; first patch waiting ML approval)
>>>>>>>
>>>>>>> Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
>>>>>>
>>>>>> Reviewed-by: Marek Vasut <marex@denx.de>
>>>>>> Acked-by: Marek Vasut <marex@denx.de>
>>>>>>
>>>>>> Can we get this applied ? Thanks
>>>>>
>>>>> This is assigned to Michal in patchwork, so at least someone thinks
>>>>> that's the correct path. I'm good either way.
>>>>
>>>> Well that doesn't make any sense, so please pick it.
>>>
>>> Probably was done because it mentions it's for a Zynq board. Sure
>>> would be nice if patchwork listed a history of who changed what
>>> fields.
>>
>> I would rather avoid fingerpointing, but probably Tom, he's the one
>> doing the hard work of reassigning patches and is alone at it I think.
>> Thus, accidents can happen.
> 
> I also assign some, mostly unassigned and pertaining to me. I
> certainly try to not take patches assigned to others when there's any
> doubt in case they are in progress. I'm not interested in
> finger-pointing so much as knowing who to ask about the assignment.


Joe: :-) Definitely take it via your tree.

Thanks,
Michal

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID
  2016-05-26 16:24 [U-Boot] [PATCH RESEND] phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID Andrea Merello
  2016-09-27 12:59 ` Marek Vasut
  2016-09-28 18:53 ` Joe Hershberger
@ 2016-10-13 17:38 ` Joe Hershberger
  2 siblings, 0 replies; 10+ messages in thread
From: Joe Hershberger @ 2016-10-13 17:38 UTC (permalink / raw)
  To: u-boot

Hi Andrea,

https://patchwork.ozlabs.org/patch/626776/ was applied to u-boot-net.git.

Thanks!
-Joe

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-10-13 17:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-26 16:24 [U-Boot] [PATCH RESEND] phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID Andrea Merello
2016-09-27 12:59 ` Marek Vasut
2016-09-28 18:55   ` Joe Hershberger
2016-09-28 19:01     ` Marek Vasut
2016-09-28 19:04       ` Joe Hershberger
2016-09-28 19:10         ` Marek Vasut
2016-09-28 19:13           ` Joe Hershberger
2016-09-29 17:22             ` Michal Simek
2016-09-28 18:53 ` Joe Hershberger
2016-10-13 17:38 ` [U-Boot] " Joe Hershberger

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.