Re: [PATCH V3 4/8] phy: Initialize phy core with subsys_initcall

2014-01-31 Thread Arnd Bergmann
On Friday 31 January 2014, Pratyush Anand wrote: > > Having the PHY driver get initialized after the PCI root driver should > > also work, but it requires correct handling of -EPROBE_DEFER: if phy_get > > I had issue with phy-core driver getting initialized after pcie rc > driver. I found a kernel

Re: [PATCH V3 4/8] phy: Initialize phy core with subsys_initcall

2014-01-30 Thread Pratyush Anand
On Thu, Jan 30, 2014 at 08:44:58PM +0800, Arnd Bergmann wrote: > On Thursday 30 January 2014, Pratyush Anand wrote: > > On Thu, Jan 30, 2014 at 07:43:37PM +0800, Kishon Vijay Abraham I wrote: > > > Hi, > > > > > > On Thursday 30 January 2014 04:18 PM, Mohit Kumar wrote: > > > > From: Pratyush Anan

Re: [PATCH V3 4/8] phy: Initialize phy core with subsys_initcall

2014-01-30 Thread Arnd Bergmann
On Thursday 30 January 2014, Pratyush Anand wrote: > On Thu, Jan 30, 2014 at 07:43:37PM +0800, Kishon Vijay Abraham I wrote: > > Hi, > > > > On Thursday 30 January 2014 04:18 PM, Mohit Kumar wrote: > > > From: Pratyush Anand > > > > > > PCIe RC drivers are initialized with subsys_initcall. Few P

Re: [PATCH V3 4/8] phy: Initialize phy core with subsys_initcall

2014-01-30 Thread Kishon Vijay Abraham I
On Thursday 30 January 2014 05:45 PM, Pratyush Anand wrote: > On Thu, Jan 30, 2014 at 07:52:12PM +0800, Pratyush ANAND wrote: >> On Thu, Jan 30, 2014 at 07:43:37PM +0800, Kishon Vijay Abraham I wrote: >>> Hi, >>> >>> On Thursday 30 January 2014 04:18 PM, Mohit Kumar wrote: From: Pratyush Anand

Re: [PATCH V3 4/8] phy: Initialize phy core with subsys_initcall

2014-01-30 Thread Pratyush Anand
On Thu, Jan 30, 2014 at 07:52:12PM +0800, Pratyush ANAND wrote: > On Thu, Jan 30, 2014 at 07:43:37PM +0800, Kishon Vijay Abraham I wrote: > > Hi, > > > > On Thursday 30 January 2014 04:18 PM, Mohit Kumar wrote: > > > From: Pratyush Anand > > > > > > PCIe RC drivers are initialized with subsys_in

Re: [PATCH V3 4/8] phy: Initialize phy core with subsys_initcall

2014-01-30 Thread Kishon Vijay Abraham I
Hi, On Thursday 30 January 2014 05:22 PM, Pratyush Anand wrote: > On Thu, Jan 30, 2014 at 07:43:37PM +0800, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Thursday 30 January 2014 04:18 PM, Mohit Kumar wrote: >>> From: Pratyush Anand >>> >>> PCIe RC drivers are initialized with subsys_initcall. Fe

Re: [PATCH V3 4/8] phy: Initialize phy core with subsys_initcall

2014-01-30 Thread Pratyush Anand
On Thu, Jan 30, 2014 at 07:43:37PM +0800, Kishon Vijay Abraham I wrote: > Hi, > > On Thursday 30 January 2014 04:18 PM, Mohit Kumar wrote: > > From: Pratyush Anand > > > > PCIe RC drivers are initialized with subsys_initcall. Few PCIe drivers > > like SPEAr13xx needs phy drivers to be initialize

Re: [PATCH V3 4/8] phy: Initialize phy core with subsys_initcall

2014-01-30 Thread Kishon Vijay Abraham I
Hi, On Thursday 30 January 2014 04:18 PM, Mohit Kumar wrote: > From: Pratyush Anand > > PCIe RC drivers are initialized with subsys_initcall. Few PCIe drivers > like SPEAr13xx needs phy drivers to be initialized. Instead change PCIe RC drivers to module init. Phy drivers should be loaded very e

[PATCH V3 4/8] phy: Initialize phy core with subsys_initcall

2014-01-30 Thread Mohit Kumar
From: Pratyush Anand PCIe RC drivers are initialized with subsys_initcall. Few PCIe drivers like SPEAr13xx needs phy drivers to be initialized. Therefore initialize phy core driver with subsys_initcall to avoid calling of phy_get before phy_class is created. Signed-off-by: Pratyush Anand Cc: M