Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933942AbcCNJ75 (ORCPT ); Mon, 14 Mar 2016 05:59:57 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:53474 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751239AbcCNJ7s (ORCPT ); Mon, 14 Mar 2016 05:59:48 -0400 Subject: Re: Nokia N900 - audio TPA6130A2 problems To: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Sebastian Reichel , Jarkko Nikula , Tony Lindgren References: <201507251228.27128@pali> <201601050034.12810@pali> <20160306152339.GA428@earth> <201603121342.33099@pali> CC: Lars-Peter Clausen , , , Pavel Machek , Aaro Koskinen , Nishanth Menon , Ivaylo Dimitrov , From: Peter Ujfalusi X-Enigmail-Draft-Status: N1110 Message-ID: <56E68B71.2030202@ti.com> Date: Mon, 14 Mar 2016 11:59:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <201603121342.33099@pali> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1294 Lines: 27 On 2016-03-12 14:42, Pali Rohár wrote: > Hi Sebastian! Commenting calling lp55xx_reset_device function did not > helped. Still getting that error. > > Tony, Peter, Jarkko: can you reproduce this problem? I'm really stucked > here... do not know where is problem or how to fix it. What we know that > it happens when rebooting from stock Nokia kernel (2.6.28) to upstream. I'm sorry, but I can not debug my n900 as I rely on it as primary phone time-to-time. I would try to disable one by one the drivers for devices on the i2c_2 bus in the stock kernel and see if this will point to something. It might worth looking at the driver init codes for the devices we have on i2c_2 also. Since rebooting to stock kernel does not have issue, it might be the chip init for at least one of the device might cause the i2c bus lock. It is also possible that the driver load order is different and we might need to load one of the drivers before the others? In the board file (board-rx51-peripherals.c) the tpa is the last entry in the i2c_board_info, so it is most likely the last one to load among the drivers for i2c_2 devices. In the dts si4713 and bq24150a is after the tpa... Try to move the tpa as last one in the dts? Does the i2c communication breaks with DT _and_ non DT boot? -- Péter