From: Mika Westerberg Subject: Re: [PATCH] i2c: designware: use enable on resume instead initialization Date: Wed, 24 Jun 2015 14:27:23 +0300 Message-ID: <20150624112723.GE827@lahna.fi.intel.com> References: <1433785828-4100-1-git-send-email-lucas.de.marchi@gmail.com> <20150609085146.GD1478@lahna.fi.intel.com> <20150610070722.GM1478@lahna.fi.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: christian.ruppert-Yycd8EPnGM5BDgjK7y7TUQ@public.gmane.org Cc: Lucas De Marchi , Christian Ruppert , Fabio Mello , Jarkko Nikula , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, lkml , Lucas De Marchi , Wolfram Sang List-Id: linux-i2c@vger.kernel.org On Wed, Jun 24, 2015 at 09:36:43AM +0200, christian.ruppert-Yycd8EPnGM5BDgjK7y7TUQ@public.gmane.org wrote: > Dear Lucas, > > Lucas De Marchi wrote on 23.06.2015 19:02:03: > > On Tue, Jun 23, 2015 at 1:45 PM, wrote: > > > Hello, > > > > > > Christian Ruppert/ALi_GVA/ALi wrote on 10.06.2015 17:05:16: > > [...] > > > The result is not very encouraging: Out of five (identical) designware > i2c > > > controllers we have on my test SOC, the first one initialises properly > but > > > the second one gets stuck in the famous irq loop right away when the > > > module is enabled in i2c_dw_init. The system never gets around to try > > > > Are you using the pci or platform driver? I noticed yesterday the pci > > version is failing here with a NULL pointer dereference. > > The test was performed with the platform driver (instantiated through > device tree). > I just re-checked and the ultimate problem which hangs/kills the system in > my case is the IRQ loop. > I haven't observed any NULL pointer dereferences on the road. Thanks Christian for testing. Since the patch causes problems on your hardware, I don't think it is good idea to merge it.