Re: TWL6040 fails to initialize

2014-02-27 Thread Peter Ujfalusi
On 02/26/2014 12:31 PM, Florian Vaussard wrote: I statistically checked that the sleep should be placed after the GPIO request, so indeed this seems to be the problem, and your explanation is plausible. Can you send a proper patch? Now, related to this, I managed to found a part of the

Re: TWL6040 fails to initialize

2014-02-27 Thread Florian Vaussard
On 02/27/2014 01:05 PM, Peter Ujfalusi wrote: On 02/26/2014 12:31 PM, Florian Vaussard wrote: I statistically checked that the sleep should be placed after the GPIO request, so indeed this seems to be the problem, and your explanation is plausible. Can you send a proper patch? Now, related

Re: TWL6040 fails to initialize

2014-02-26 Thread Florian Vaussard
Hi, First, thanks for your help. On 02/26/2014 08:26 AM, Peter Ujfalusi wrote: On 02/25/2014 05:41 PM, Florian Vaussard wrote: If the power was not enabled at all, I would be unable to read the revision register, no? And delaying the probe by one millisecond would be of no help in this case

Re: TWL6040 fails to initialize

2014-02-26 Thread Peter Ujfalusi
On 02/26/2014 11:53 AM, Florian Vaussard wrote: On 02/26/2014 08:26 AM, Peter Ujfalusi wrote: On 02/25/2014 05:41 PM, Florian Vaussard wrote: If the power was not enabled at all, I would be unable to read the revision register, no? And delaying the probe by one millisecond would be of no help

Re: TWL6040 fails to initialize

2014-02-26 Thread Florian Vaussard
On 02/26/2014 11:28 AM, Peter Ujfalusi wrote: On 02/26/2014 11:53 AM, Florian Vaussard wrote: On 02/26/2014 08:26 AM, Peter Ujfalusi wrote: On 02/25/2014 05:41 PM, Florian Vaussard wrote: If the power was not enabled at all, I would be unable to read the revision register, no? And delaying

TWL6040 fails to initialize

2014-02-25 Thread Florian Vaussard
Hi Peter, I got recently to work on the DT support for an OMAP4 board [1], and I encountered some troubles with the probe of the twl6040 audio codec on 3.14-rc kernels. On 3.13, things were working correctly. So I somewhat managed to bisect this down to [c7f9129 mfd: twl6040: reg_defaults support

Re: TWL6040 fails to initialize

2014-02-25 Thread Peter Ujfalusi
Hi Florian, On 02/25/2014 12:30 PM, Florian Vaussard wrote: Hi Peter, I got recently to work on the DT support for an OMAP4 board [1], and I encountered some troubles with the probe of the twl6040 audio codec on 3.14-rc kernels. On 3.13, things were working correctly. So I somewhat managed

Re: TWL6040 fails to initialize

2014-02-25 Thread Florian Vaussard
Hi Peter, On 02/25/2014 03:29 PM, Peter Ujfalusi wrote: Hi Florian, On 02/25/2014 12:30 PM, Florian Vaussard wrote: Hi Peter, I got recently to work on the DT support for an OMAP4 board [1], and I encountered some troubles with the probe of the twl6040 audio codec on 3.14-rc kernels. On

Re: TWL6040 fails to initialize

2014-02-25 Thread Peter Ujfalusi
On 02/25/2014 05:41 PM, Florian Vaussard wrote: If the power was not enabled at all, I would be unable to read the revision register, no? And delaying the probe by one millisecond would be of no help in this case IMHO. One thing which might cause this is that if the audpwron GPIO is set high