Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3272511pxx; Mon, 2 Nov 2020 04:51:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6DX8nZ1gpBbpeWo+CATvrviygOiQhDbBF1BA4nZVDYQjwD/j5cYjZqGIOWTkT+KI3leAP X-Received: by 2002:aa7:dd49:: with SMTP id o9mr15948829edw.143.1604321485570; Mon, 02 Nov 2020 04:51:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604321485; cv=none; d=google.com; s=arc-20160816; b=zpPN6dh4F9ZqvoVskmVt1Xp4Lyam0OeXYijC6PNipUovlHv+lknW92tt5L0M4OkPu2 A89H9LT7JxQ9xI68Tbjrzq0EqkHiRnX4VflcHIE9Umn9dl4WaiwwPH+ZKF6PIYTWKUB/ GOuN1cOS5FkF0blkYp/BVY2Qep6HQ4UUrBB6OWwMW72Cuu1Tv/os+9VewbPxmxqf6YTw +t7ySJogULh8pOEJk42UtcSrC18rQ/ZqSL7b5b3hrqNgmrcC5sZZ2NVOjDQu4Bf6iipR wSf5Q/8wcanag8vakK2MauksuzfOMoRoN7KWZx4H7OCuVzQmGGGW+erozE6Ado9yUKIv JOkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=uHLVRY8QINfCL24Sl2oyTlLaGyDe5A7CzCrqSRZYriM=; b=UkeUMTFqmAYsytvkHbxmiGOjlnB+GZUR86jXnntOInS2i0gwLQ/Vfp73R2dvMbgTzr rS911kFKnifIYocfuPEaCqZA7+lT3xk/MMf9F9RaAHvFoRGULrj0EyMwY1y1Ylfb15tY X3sL8h7vvBR3hprvQOp0SCJ0lpwx4kIe7O8v67Fz97W2sNAt7RT9WGmEW9T0ikyKi8tr v2fgGBSNaz5xJK1PLMHIiqMFz7LPECE7W+BeaPYBoYEckbq0FjMYUuCtXEqSWmkd7PEh mpdvVksm3nLFVy83NTRromjnjWAL9VFoBXAdPQb1zJzWzroUXiqTeyskd1FhrwuZFTln fGAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u27si6673525edi.588.2020.11.02.04.51.02; Mon, 02 Nov 2020 04:51:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728687AbgKBMtC (ORCPT + 99 others); Mon, 2 Nov 2020 07:49:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728789AbgKBMtB (ORCPT ); Mon, 2 Nov 2020 07:49:01 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1374CC0617A6 for ; Mon, 2 Nov 2020 04:49:01 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1kZZGa-0001Yb-0n; Mon, 02 Nov 2020 13:48:56 +0100 Subject: Re: [BUG] Error applying setting, reverse things back on lot of devices To: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Corentin Labbe Cc: lgirdwood@gmail.com, mripard@kernel.org, linux-kernel@vger.kernel.org, wens@csie.org, broonie@kernel.org, linux-arm-kernel@lists.infradead.org, "linux-stm32@st-md-mailman.stormreply.com" References: <20201021183149.GA8436@Red> <20201023134201.GA533@Red> <20201023203943.GA21435@Red> <20201024115307.GA2745@qmqm.qmqm.pl> From: Ahmad Fatoum Message-ID: <8a580d12-fa4a-6cd8-4d82-3e3b784e348b@pengutronix.de> Date: Mon, 2 Nov 2020 13:48:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 MIME-Version: 1.0 In-Reply-To: <20201024115307.GA2745@qmqm.qmqm.pl> Content-Type: text/plain; charset=iso-8859-2 Content-Language: en-US Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Micha?, CC += linux-stm32 On 10/24/20 1:53 PM, Micha? Miros?aw wrote: > On Fri, Oct 23, 2020 at 10:39:43PM +0200, Corentin Labbe wrote: >> On Fri, Oct 23, 2020 at 03:42:01PM +0200, Corentin Labbe wrote: >>> On Wed, Oct 21, 2020 at 08:31:49PM +0200, Corentin Labbe wrote: >>> I have just saw thoses 3 lines which are probably the real problem. >>> I have started a new bisect with this error, but it is hitting the same "crash range" the first one. >>> >> >> I have bisected the problem to commit aea6cb99703e17019e025aa71643b4d3e0a24413 ("regulator: resolve supply after creating regulator") >> Reverting this fix my problem. The change broke boot on all the STM32MP1 boards, because the STPMIC driver has a vref_ddr regulator, which does not have a dedicated supply, but without a vref_ddr-supply property the system now no longer boots. > Can you try the hack below? > > Best Regards, > Micha? Miros?aw > > diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c > index a4ffd71696da..9ad091f5f1ab 100644 > --- a/drivers/regulator/core.c > +++ b/drivers/regulator/core.c > @@ -1169,6 +1169,9 @@ static int machine_constraints_voltage(struct regulator_dev *rdev, > } > > if (current_uV < 0) { > + if (current_uV == -EINVAL && rdev->supply_name) > + return -EPROBE_DEFER; > + This doesn't fix the issue for the STM32MP1 boards (tested on LXA MC-1). Seeing that the patch is already in stable, I think this patch should be reverted until the issues are solved in Linus' master. Cheers, Ahmad > rdev_err(rdev, > "failed to get the current voltage: %pe\n", > ERR_PTR(current_uV)); > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |