From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752050AbdHCCvZ (ORCPT ); Wed, 2 Aug 2017 22:51:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:47726 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751809AbdHCCvY (ORCPT ); Wed, 2 Aug 2017 22:51:24 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A522722BE3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=shawnguo@kernel.org Date: Thu, 3 Aug 2017 10:50:18 +0800 From: Shawn Guo To: Stefan Agner Cc: kernel@pengutronix.de, Fabio Estevam , Andrey Smirnov , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] soc: imx: gpcv2: fix regulator deferred probe Message-ID: <20170803025017.GJ31819@dragon> References: <20170802195129.20442-1-stefan@agner.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170802195129.20442-1-stefan@agner.ch> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 02, 2017 at 12:51:29PM -0700, Stefan Agner wrote: > If a regulator requests a deferred probe, the power domain gets > initialized twice. This leads to a list double add (without > list debugging the kernel hangs due to the double add later): > > WARNING: CPU: 0 PID: 19 at lib/list_debug.c:31 __list_add_valid+0xbc/0xc4 > list_add double add: new=c1229754, prev=c12383b4, next=c1229754. > > Initialize the power domain after we get the regulator. Also do > not print an error in case the regulator defers probing. > > Cc: Fabio Estevam > Cc: Andrey Smirnov > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > Fixes: 03aa12629fc4 ("soc: imx: Add GPCv2 power gating driver") > Signed-off-by: Stefan Agner > --- > Hi Shawn, > > Since this leads to a Kernel hang in v4.13-rc3, can you get this > into v4.13 still? Sure. But before doing that, I would like to get an ACK from Andrey on this fix. Shawn