Re: [RFC PATCH 2/6] phy: armada38x: add common phy support

2018-11-15 Thread Maxime Chevallier
Hi Russell, On Mon, 12 Nov 2018 12:30:52 + Russell King wrote: >Add support for the Armada 38x common phy to allow us to change the >speed of the Ethernet serdes lane. This driver only supports >manipulation of the speed, it does not support configuration of the >common phy. Tested-by: Max

Re: [RFC PATCH 2/6] phy: armada38x: add common phy support

2018-11-14 Thread Kishon Vijay Abraham I
Hi, On 12/11/18 6:00 PM, Russell King wrote: > Add support for the Armada 38x common phy to allow us to change the > speed of the Ethernet serdes lane. This driver only supports > manipulation of the speed, it does not support configuration of the > common phy. > > Signed-off-by: Russell King >

Re: [RFC PATCH 2/6] phy: armada38x: add common phy support

2018-11-12 Thread Andrew Lunn
> +static int a38x_comphy_poll(struct a38x_comphy_lane *lane, > + unsigned int offset, u32 mask, u32 value) > +{ > + unsigned int timeout = 10; > + u32 val; > + > + while (1) { > + val = readl_relaxed(lane->base + offset); > + if ((val & m

[RFC PATCH 2/6] phy: armada38x: add common phy support

2018-11-12 Thread Russell King
Add support for the Armada 38x common phy to allow us to change the speed of the Ethernet serdes lane. This driver only supports manipulation of the speed, it does not support configuration of the common phy. Signed-off-by: Russell King --- drivers/phy/marvell/Kconfig| 10 ++ d