Re: [PATCH] net/phy: micrel: Add clock support for KSZ8021/KSZ8031

2014-10-10 Thread Sascha Hauer
On Thu, Oct 09, 2014 at 10:01:15AM -0700, Florian Fainelli wrote: > On 10/09/2014 05:32 AM, Sascha Hauer wrote: > > static int ksz8021_config_init(struct phy_device *phydev) > > { > > + struct clk *clk; > > const u16 val = KSZPHY_OMSO_B_CAST_OFF | KSZPHY_OMSO_RMII_OVERRIDE; > > int rc;

Re: [PATCH] net/phy: micrel: Add clock support for KSZ8021/KSZ8031

2014-10-09 Thread Florian Fainelli
On 10/09/2014 05:32 AM, Sascha Hauer wrote: > The KSZ8021 and KSZ8031 support RMII reference input clocks of 25MHz > and 50MHz. Both PHYs differ in the default frequency they expect > after reset. If this differs from the actual input clock, then > register 0x1f bit 7 must be changed. Looks reason

[PATCH] net/phy: micrel: Add clock support for KSZ8021/KSZ8031

2014-10-09 Thread Sascha Hauer
The KSZ8021 and KSZ8031 support RMII reference input clocks of 25MHz and 50MHz. Both PHYs differ in the default frequency they expect after reset. If this differs from the actual input clock, then register 0x1f bit 7 must be changed. Signed-off-by: Sascha Hauer --- Documentation/devicetree/bindi