lkml.org 
[lkml]   [2020]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net 1/3] net: fsl/fman: treat all RGMII modes in memac_adjust_link()
On Fri, Mar 13, 2020 at 02:04:23PM +0200, Madalin Bucur wrote:
> Treat all internal delay variants the same as RGMII.
>
> Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
> ---
> drivers/net/ethernet/freescale/fman/fman_memac.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/freescale/fman/fman_memac.c b/drivers/net/ethernet/freescale/fman/fman_memac.c
> index e1901874c19f..0fc98584974a 100644
> --- a/drivers/net/ethernet/freescale/fman/fman_memac.c
> +++ b/drivers/net/ethernet/freescale/fman/fman_memac.c
> @@ -782,7 +782,10 @@ int memac_adjust_link(struct fman_mac *memac, u16 speed)
> /* Set full duplex */
> tmp &= ~IF_MODE_HD;
>
> - if (memac->phy_if == PHY_INTERFACE_MODE_RGMII) {
> + if (memac->phy_if == PHY_INTERFACE_MODE_RGMII ||
> + memac->phy_if == PHY_INTERFACE_MODE_RGMII_ID ||
> + memac->phy_if == PHY_INTERFACE_MODE_RGMII_RXID ||
> + memac->phy_if == PHY_INTERFACE_MODE_RGMII_TXID) {

Hi Madalin

You can use phy_interface_mode_is_rgmii()

Andrew

\
 
 \ /
  Last update: 2020-03-15 02:56    [W:0.092 / U:4.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site