Re: [PATCHv6 RFT] net: fec: Ensure clocks are enabled while using mdio bus

2015-08-03 Thread Uwe Kleine-König
Hello, On Mon, Aug 03, 2015 at 03:50:23PM +0200, Andrew Lunn wrote: > > The problem is that on i.MX27 there are two clocks involved that both > > must be on to send a packet, while on i.MX6 it's only a single one > > (abstracted by having ipg-clock = ahb-clock). With the suggested patch > > only a

Re: [PATCHv6 RFT] net: fec: Ensure clocks are enabled while using mdio bus

2015-08-03 Thread Andrew Lunn
On Mon, Aug 03, 2015 at 03:13:40PM +0200, Uwe Kleine-König wrote: > Hello, > > On Mon, Aug 03, 2015 at 02:55:40PM +0200, Andrew Lunn wrote: > > v5 was accepted and then reverted, because it broke imx6. Lucas Stach > > debugged what was going wrong and provided a patch. Thanks Lucas. This > > has

Re: [PATCHv6 RFT] net: fec: Ensure clocks are enabled while using mdio bus

2015-08-03 Thread Uwe Kleine-König
Hello, On Mon, Aug 03, 2015 at 02:55:40PM +0200, Andrew Lunn wrote: > v5 was accepted and then reverted, because it broke imx6. Lucas Stach > debugged what was going wrong and provided a patch. Thanks Lucas. This > has been squashed into v6. This fixed-for-i.MX6 patch was included for 4.2-rc5 as

Re: [PATCHv6 RFT] net: fec: Ensure clocks are enabled while using mdio bus

2015-07-27 Thread David Miller
From: Andrew Lunn Date: Sat, 25 Jul 2015 22:38:02 +0200 > When a switch is attached to the mdio bus, the mdio bus can be used > while the interface is not open. If the IPG clock is not enabled, MDIO > reads/writes will simply time out. > > Add support for runtime PM to control this clock. Enable

Re: [PATCHv6 RFT] net: fec: Ensure clocks are enabled while using mdio bus

2015-07-26 Thread Andrew Lunn
On Sat, Jul 25, 2015 at 10:38:02PM +0200, Andrew Lunn wrote: > When a switch is attached to the mdio bus, the mdio bus can be used > while the interface is not open. If the IPG clock is not enabled, MDIO > reads/writes will simply time out. Hi David Now there are two tested-by's could you pick th

Re: [PATCHv6 RFT] net: fec: Ensure clocks are enabled while using mdio bus

2015-07-25 Thread Tyler Baker
Hi Andrew, On 25 July 2015 at 13:38, Andrew Lunn wrote: > When a switch is attached to the mdio bus, the mdio bus can be used > while the interface is not open. If the IPG clock is not enabled, MDIO > reads/writes will simply time out. > > Add support for runtime PM to control this clock. Enable/

Re: [PATCHv6 RFT] net: fec: Ensure clocks are enabled while using mdio bus

2015-07-25 Thread Fabio Estevam
Hi Andrew, On Sat, Jul 25, 2015 at 5:38 PM, Andrew Lunn wrote: > When a switch is attached to the mdio bus, the mdio bus can be used > while the interface is not open. If the IPG clock is not enabled, MDIO > reads/writes will simply time out. > > Add support for runtime PM to control this clock.

[PATCHv6 RFT] net: fec: Ensure clocks are enabled while using mdio bus

2015-07-25 Thread Andrew Lunn
When a switch is attached to the mdio bus, the mdio bus can be used while the interface is not open. If the IPG clock is not enabled, MDIO reads/writes will simply time out. Add support for runtime PM to control this clock. Enable/disable this clock using runtime PM, with open()/close() and mdio r