Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935800AbcCQOcL (ORCPT ); Thu, 17 Mar 2016 10:32:11 -0400 Received: from muru.com ([72.249.23.125]:48715 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932568AbcCQOcI (ORCPT ); Thu, 17 Mar 2016 10:32:08 -0400 Date: Thu, 17 Mar 2016 07:32:05 -0700 From: Tony Lindgren To: Ivaylo Dimitrov Cc: Pali =?utf-8?B?Um9ow6Fy?= , Sebastian Reichel , Grygorii Strashko , Peter Ujfalusi , Jarkko Nikula , Lars-Peter Clausen , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Pavel Machek , Aaro Koskinen , Nishanth Menon , merlijn@wizzup.org Subject: Re: Nokia N900 - audio TPA6130A2 problems Message-ID: <20160317143204.GM9329@atomide.com> References: <20160316144709.GA3389@earth> <56E9A42B.3010209@gmail.com> <56E9A6D9.7000003@ti.com> <56E9B910.7000904@gmail.com> <20160317004917.GA6750@earth> <56EA6326.4000702@gmail.com> <20160317130115.GU8413@pali> <56EAACF4.2040005@gmail.com> <20160317133313.GL9329@atomide.com> <56EAB62D.80803@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56EAB62D.80803@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1088 Lines: 30 * Ivaylo Dimitrov [160317 06:51]: > Hi, > > On 17.03.2016 15:33, Tony Lindgren wrote: > > > >Check the schematics. If the hardware has external pull-ups on a > >line then don't enable the internal pull-ups. Otherwise both the > >external and intenal pulls are parallel the pull value will be > >wrong. My guess is that on n900 all the i2c lines have external > >pulls. > > There are, 1k connected to VIO_18, but still, stock Nokia kernel enables the > internal pull-ups as well. I doubt Nokia devs did that by mistake. Could it > be that VIO_18 is disabled by the time TPA6130A2 is probed? Seems like a bug to me. My bets are on the deferred probe related Peter posted. > Also, what is the problem to have both internal and external pull-ups in > parallel? You can calculate the parallel resistor value of the weak internal pull with the 1k external pull :) If the i2c line pulls are wrong the signal quality won't match the spec and you will be getting i2c bus errors. If you can read and write to the i2c chip, this is not the issue. Regards, Tony