Re: [PATCH 3/3] net: macb: remove #if defined(CONFIG_ARCH_AT91) sections

2015-03-06 Thread Boris Brezillon
On Thu, 5 Mar 2015 20:44:18 +0100 Alexandre Belloni alexandre.bell...@free-electrons.com wrote: On 05/03/2015 at 17:27:22 +0100, Boris Brezillon wrote : @@ -2388,21 +2392,20 @@ static int macb_probe(struct platform_device *pdev) bp-phy_interface = err; } + config =

Re: [PATCH 3/3] net: macb: remove #if defined(CONFIG_ARCH_AT91) sections

2015-03-05 Thread Alexandre Belloni
On 05/03/2015 at 17:27:22 +0100, Boris Brezillon wrote : @@ -2388,21 +2392,20 @@ static int macb_probe(struct platform_device *pdev) bp-phy_interface = err; } + config = 0; if (bp-phy_interface == PHY_INTERFACE_MODE_RGMII) - macb_or_gem_writel(bp,

[PATCH 3/3] net: macb: remove #if defined(CONFIG_ARCH_AT91) sections

2015-03-05 Thread Boris Brezillon
With multi platform support those sections could lead to unexpected behavior if both ARCH_AT91 and another ARM SoC using the MACB IP are selected. Add two new capabilities to encode the default MII mode and the presence of a CLKEN bit in USRIO register. Then define the appropriate config for IPs