Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2372116pxx; Sat, 31 Oct 2020 18:35:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeyX6ItB7V7RkAA8s4n/OR4TrRNpgi1Gjd/YEqIDVxLHIXukfjFbrpLOGaP+F+srcd6Chr X-Received: by 2002:a17:906:318f:: with SMTP id 15mr8883685ejy.180.1604194500111; Sat, 31 Oct 2020 18:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604194500; cv=none; d=google.com; s=arc-20160816; b=cquUDs/v2fLT6ID7xQjr15ubxo3p23jWfMPEBdd7HRJaCtOiLx+WN0NeaTYLKUiJhS hGXv1FLma1iCSqd5MXpPdaa5oQ8VUPH4RSRuqRlHZXFxIShl+Xw0dO+j1hCO11+rp17R cZvltqGJgRSBzfSTbfHZnYExXjjzzyOuY2iO5SK1TqgEKtk0FbvbfFY0wCEx/qUrVHY2 uGQtu+4GJPEICxCjc4s3aEtRUI0cFs8pvycNKTjsEpQW2IHhh0dXNKn1la77PI17/JdJ VWpewUJtgGn9qje/1SoXK0ozPnb8v0a/rB/rQniszrLxnOfxwSStc0M8IvyupNg6fN3a XUUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=hrsPOB7NtV1lkHJ0Y3m0DXPB6xsTo5dd2q62RAD25Ow=; b=x6gc5MO9BTzmYclFL/MfKLLH2BNWSsAi0oJVzYPoJMbwC3JD2nwQVptSiattf90TVu XnZL42ec1WCssPz8Qthe1cmb5W1Nf25hIukn2VBRSQOtnn10jnBd+SEeftslvJR+eypc LWHOQ9l3zKXnw5TEW9aUtVZVyKTYkzmhP2S40qi4lCo+SaGxTyLm4hmvrGCQ30UIEKtM eR6z2AGBPhvcEQJ3XhKSAJABgwew5lRVRqoQZnfh4Pu1GH+gRL7DI5yXqTOlZSbhTtsP v0X5lKdcygkKFovJ+lG1/x3xBsG9wRt01NuUQpBjrbuOoSGnCqW0gVoE4h1nRSd51Fv2 Xs8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b="Ve3/ooPO"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g18si171782edh.40.2020.10.31.18.34.37; Sat, 31 Oct 2020 18:35:00 -0700 (PDT) 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; dkim=pass header.i=@megous.com header.s=mail header.b="Ve3/ooPO"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726395AbgKABbR (ORCPT + 99 others); Sat, 31 Oct 2020 21:31:17 -0400 Received: from vps.xff.cz ([195.181.215.36]:56900 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726243AbgKABbQ (ORCPT ); Sat, 31 Oct 2020 21:31:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1604194275; bh=H89e9NhotYsOSduIL8y0NwGbsc/k6/4q0Jhr0fSLbcU=; h=Date:From:To:Cc:Subject:References:X-My-GPG-KeyId:From; b=Ve3/ooPOfdl4wiiwYvtMny/B8moovnRmooTBHvPGD5lFAC8U5zQMQVMxkwZfAINij G1TA0T9G7FD6PHgbn5PapVLg9z9+hZ5cE0ztF583YQ422UyNTWBa1tZsZy9e29XjSJ IQkOkPmE8aGNFGDPPILw8LZFvcukPf0adtJL/OQs= Date: Sun, 1 Nov 2020 02:31:15 +0100 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= Cc: Corentin Labbe , mripard@kernel.org, wens@csie.org, broonie@kernel.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [BUG] Error applying setting, reverse things back on lot of devices Message-ID: <20201101013115.espxyxbnqgj3j4tg@core.my.home> Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Corentin Labbe , mripard@kernel.org, wens@csie.org, broonie@kernel.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20201021183149.GA8436@Red> <20201023134201.GA533@Red> <20201023203943.GA21435@Red> <20201024115307.GA2745@qmqm.qmqm.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201024115307.GA2745@qmqm.qmqm.pl> X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Michał, On Sat, Oct 24, 2020 at 01:53:07PM +0200, 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: > > > > [ 5.796585] dcdc4: supplied by regulator-dummy > > > > [ 5.801647] vcc-dram: supplied by regulator-dummy > > > > [ 5.806470] vcc-gmac-phy: failed to get the current voltage: -EINVAL > > > > [ 5.812839] axp20x-regulator axp20x-regulator: Failed to register dc1sw > > > > [ 5.820291] axp20x-regulator: probe of axp20x-regulator failed with error -22 > > > > > > 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. > > 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; > + > rdev_err(rdev, > "failed to get the current voltage: %pe\n", > ERR_PTR(current_uV)); I did hit the same problem on sun8i-a83t-tbs-a711.dts tablet. The patch helps on top of v5.9.2, and on linus/master. regards, o.