[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <406c6a63a9b246f7a9a9fc4b9026796d@BLUPR03MB486.namprd03.prod.outlook.com>
Date: Tue, 20 May 2014 13:13:18 +0000
From: "Frank.Li@...escale.com" <Frank.Li@...escale.com>
To: "fugang.duan@...escale.com" <fugang.duan@...escale.com>,
"davem@...emloft.net" <davem@...emloft.net>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"fugang.duan@...escale.com" <fugang.duan@...escale.com>,
"bhutchings@...arflare.com" <bhutchings@...arflare.com>,
"stephen@...workplumber.org" <stephen@...workplumber.org>
Subject: RE: [PATCH 2/2] net: fec: correct the MDIO clock source
> -----Original Message-----
> From: Fugang Duan [mailto:b38611@...escale.com]
> Sent: Tuesday, May 20, 2014 12:23 AM
> To: Li Frank-B20596; davem@...emloft.net
> Cc: netdev@...r.kernel.org; Duan Fugang-B38611; bhutchings@...arflare.com;
> stephen@...workplumber.org
> Subject: [PATCH 2/2] net: fec: correct the MDIO clock source
>
> Since imx serials FEC/ENET MDIO clock source is internal ipg clock, and
> "ahb" clock is defined as FEC/ENET bus clock, so the patch just correct
> the fec driver MDIO clock source.
>
> Signed-off-by: Fugang Duan <B38611@...escale.com>
Acked-by: Frank Li <frank.li@...escale.com>
> ---
> drivers/net/ethernet/freescale/fec_main.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/ethernet/freescale/fec_main.c
> b/drivers/net/ethernet/freescale/fec_main.c
> index 99fb0dc..cb5c987 100644
> --- a/drivers/net/ethernet/freescale/fec_main.c
> +++ b/drivers/net/ethernet/freescale/fec_main.c
> @@ -1407,7 +1407,7 @@ static int fec_enet_mii_init(struct platform_device
> *pdev)
> * Reference Manual has an error on this, and gets fixed on i.MX6Q
> * document.
> */
> - fep->phy_speed = DIV_ROUND_UP(clk_get_rate(fep->clk_ahb), 5000000);
> + fep->phy_speed = DIV_ROUND_UP(clk_get_rate(fep->clk_ipg), 5000000);
> if (id_entry->driver_data & FEC_QUIRK_ENET_MAC)
> fep->phy_speed--;
> fep->phy_speed <<= 1;
> --
> 1.7.8
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists