[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9848F2DB572E5649BA045B288BE08FBE015E3F06@039-SN2MPN1-023.039d.mgd.msft.net>
Date: Thu, 1 Aug 2013 05:31:48 +0000
From: Duan Fugang-B38611 <B38611@...escale.com>
To: Sean Cross <xobs@...agi.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>
CC: David Miller <davem@...emloft.net>,
"stephen@...workplumber.org" <stephen@...workplumber.org>,
Steven Rostedt <rostedt@...dmis.org>
Subject: RE: [PATCH] net/phy: micrel: Add OF configuration support
On Thu, Aug 01, 2013 at 12:17 PM, Sean Cross wrote:
> +/* Write/read to/from extended registers */
> +#define MII_KSZPHY_EXTREG 0x0b
> +#define KSZPHY_EXTREG_WRITE 0x8000
> +
> +#define MII_KSZPHY_EXTREG_WRITE 0x0c
> +#define MII_KSZPHY_EXTREG_READ 0x0d
> +
> +/* Write/read to/from extended registers */
> +#define MII_KSZPHY_EXTREG 0x0b
> +#define KSZPHY_EXTREG_WRITE 0x8000
> +
> +#define MII_KSZPHY_EXTREG_WRITE 0x0c
> +#define MII_KSZPHY_EXTREG_READ 0x0d
> +
Pls don't re-define the registers address and field.
> + if (!of_property_read_u32(of_node,
> + "micrel,clk-control-pad-skew",
> + &val))
> + kszphy_extended_write(phydev,
> + MII_KSZPHY_CLK_CONTROL_PAD_SKEW,
> + val);
When re-set rx/tx clock delay, rx/tx control delay, it is better to do dummy read the extended MII_KSZPHY_CLK_CONTROL_PAD_SKEW register one time.
Thanks,
Andy
--
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