All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] net: phy: aquantia: readd XGMII support for AQR107
@ 2019-05-15 15:07 Madalin-cristian Bucur
  2019-05-15 16:19 ` Florian Fainelli
  2019-05-16 19:15 ` David Miller
  0 siblings, 2 replies; 6+ messages in thread
From: Madalin-cristian Bucur @ 2019-05-15 15:07 UTC (permalink / raw)
  To: netdev; +Cc: andrew, hkallweit1, davem

XGMII interface mode no longer works on AQR107 after the recent changes,
adding back support.

Fixes: 570c8a7d5303 ("net: phy: aquantia: check for supported interface modes in config_init")

Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
---
 drivers/net/phy/aquantia_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/phy/aquantia_main.c b/drivers/net/phy/aquantia_main.c
index eed4fe3d871f..0fedd28fdb6e 100644
--- a/drivers/net/phy/aquantia_main.c
+++ b/drivers/net/phy/aquantia_main.c
@@ -487,6 +487,7 @@ static int aqr107_config_init(struct phy_device *phydev)
 	/* Check that the PHY interface type is compatible */
 	if (phydev->interface != PHY_INTERFACE_MODE_SGMII &&
 	    phydev->interface != PHY_INTERFACE_MODE_2500BASEX &&
+	    phydev->interface != PHY_INTERFACE_MODE_XGMII &&
 	    phydev->interface != PHY_INTERFACE_MODE_10GKR)
 		return -ENODEV;
 
-- 
2.1.0

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

* Re: [PATCH v2] net: phy: aquantia: readd XGMII support for AQR107
  2019-05-15 15:07 [PATCH v2] net: phy: aquantia: readd XGMII support for AQR107 Madalin-cristian Bucur
@ 2019-05-15 16:19 ` Florian Fainelli
  2019-05-15 17:25   ` Heiner Kallweit
  2019-05-16 19:15 ` David Miller
  1 sibling, 1 reply; 6+ messages in thread
From: Florian Fainelli @ 2019-05-15 16:19 UTC (permalink / raw)
  To: Madalin-cristian Bucur, netdev; +Cc: andrew, hkallweit1, davem

On 5/15/19 8:07 AM, Madalin-cristian Bucur wrote:
> XGMII interface mode no longer works on AQR107 after the recent changes,
> adding back support.
> 
> Fixes: 570c8a7d5303 ("net: phy: aquantia: check for supported interface modes in config_init")
> 
> Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>

Just so you know for future submissions, there is no need for a newline
between your Fixes: and Signed-off-by: tag, it's just a normal tag.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

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

* Re: [PATCH v2] net: phy: aquantia: readd XGMII support for AQR107
  2019-05-15 16:19 ` Florian Fainelli
@ 2019-05-15 17:25   ` Heiner Kallweit
  2019-05-15 18:44     ` Andrew Lunn
  0 siblings, 1 reply; 6+ messages in thread
From: Heiner Kallweit @ 2019-05-15 17:25 UTC (permalink / raw)
  To: Florian Fainelli, Madalin-cristian Bucur, netdev; +Cc: andrew, davem

On 15.05.2019 18:19, Florian Fainelli wrote:
> On 5/15/19 8:07 AM, Madalin-cristian Bucur wrote:
>> XGMII interface mode no longer works on AQR107 after the recent changes,
>> adding back support.
>>
>> Fixes: 570c8a7d5303 ("net: phy: aquantia: check for supported interface modes in config_init")
>>
>> Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
> 
> Just so you know for future submissions, there is no need for a newline
> between your Fixes: and Signed-off-by: tag, it's just a normal tag.
> 
> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
> 
I checked the datasheet and AQR107 doesn't support XGMII. It supports USXGMII,
maybe XGMII is used as workaround because phy_interface_t doesn't cover
USXGMII yet. If it makes the board work again, I think using XGMII is fine for
now. But we should add USXGMII and the remove this workaround.

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

* Re: [PATCH v2] net: phy: aquantia: readd XGMII support for AQR107
  2019-05-15 17:25   ` Heiner Kallweit
@ 2019-05-15 18:44     ` Andrew Lunn
  2019-05-15 18:55       ` Heiner Kallweit
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Lunn @ 2019-05-15 18:44 UTC (permalink / raw)
  To: Heiner Kallweit; +Cc: Florian Fainelli, Madalin-cristian Bucur, netdev, davem

On Wed, May 15, 2019 at 07:25:14PM +0200, Heiner Kallweit wrote:
> On 15.05.2019 18:19, Florian Fainelli wrote:
> > On 5/15/19 8:07 AM, Madalin-cristian Bucur wrote:
> >> XGMII interface mode no longer works on AQR107 after the recent changes,
> >> adding back support.
> >>
> >> Fixes: 570c8a7d5303 ("net: phy: aquantia: check for supported interface modes in config_init")
> >>
> >> Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
> > 
> > Just so you know for future submissions, there is no need for a newline
> > between your Fixes: and Signed-off-by: tag, it's just a normal tag.
> > 
> > Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
> > 
> I checked the datasheet and AQR107 doesn't support XGMII. It supports USXGMII,
> maybe XGMII is used as workaround because phy_interface_t doesn't cover
> USXGMII yet. If it makes the board work again, I think using XGMII is fine for
> now. But we should add USXGMII and the remove this workaround.

Hi Heiner

We should add USXGMII anyway. But that is net-next material, if it is
not the fix we go with.

    Andrew

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

* Re: [PATCH v2] net: phy: aquantia: readd XGMII support for AQR107
  2019-05-15 18:44     ` Andrew Lunn
@ 2019-05-15 18:55       ` Heiner Kallweit
  0 siblings, 0 replies; 6+ messages in thread
From: Heiner Kallweit @ 2019-05-15 18:55 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: Florian Fainelli, Madalin-cristian Bucur, netdev, davem

On 15.05.2019 20:44, Andrew Lunn wrote:
> On Wed, May 15, 2019 at 07:25:14PM +0200, Heiner Kallweit wrote:
>> On 15.05.2019 18:19, Florian Fainelli wrote:
>>> On 5/15/19 8:07 AM, Madalin-cristian Bucur wrote:
>>>> XGMII interface mode no longer works on AQR107 after the recent changes,
>>>> adding back support.
>>>>
>>>> Fixes: 570c8a7d5303 ("net: phy: aquantia: check for supported interface modes in config_init")
>>>>
>>>> Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
>>>
>>> Just so you know for future submissions, there is no need for a newline
>>> between your Fixes: and Signed-off-by: tag, it's just a normal tag.
>>>
>>> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
>>>
>> I checked the datasheet and AQR107 doesn't support XGMII. It supports USXGMII,
>> maybe XGMII is used as workaround because phy_interface_t doesn't cover
>> USXGMII yet. If it makes the board work again, I think using XGMII is fine for
>> now. But we should add USXGMII and the remove this workaround.
> 
> Hi Heiner
> 
> We should add USXGMII anyway. But that is net-next material, if it is
> not the fix we go with.
> 
Right. It's a very small patch, I added it to my tree already.

>     Andrew
> 
Heiner

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

* Re: [PATCH v2] net: phy: aquantia: readd XGMII support for AQR107
  2019-05-15 15:07 [PATCH v2] net: phy: aquantia: readd XGMII support for AQR107 Madalin-cristian Bucur
  2019-05-15 16:19 ` Florian Fainelli
@ 2019-05-16 19:15 ` David Miller
  1 sibling, 0 replies; 6+ messages in thread
From: David Miller @ 2019-05-16 19:15 UTC (permalink / raw)
  To: madalin.bucur; +Cc: netdev, andrew, hkallweit1

From: Madalin-cristian Bucur <madalin.bucur@nxp.com>
Date: Wed, 15 May 2019 15:07:44 +0000

> XGMII interface mode no longer works on AQR107 after the recent changes,
> adding back support.
> 
> Fixes: 570c8a7d5303 ("net: phy: aquantia: check for supported interface modes in config_init")
> Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>

Applied, thanks.

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

end of thread, other threads:[~2019-05-16 19:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-15 15:07 [PATCH v2] net: phy: aquantia: readd XGMII support for AQR107 Madalin-cristian Bucur
2019-05-15 16:19 ` Florian Fainelli
2019-05-15 17:25   ` Heiner Kallweit
2019-05-15 18:44     ` Andrew Lunn
2019-05-15 18:55       ` Heiner Kallweit
2019-05-16 19:15 ` David Miller

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.