Message ID | 20210614102648.490314334@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:907:7409:0:0:0:0 with SMTP id gj9csp2584465ejc; Mon, 14 Jun 2021 03:56:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhRrvHj1UUqSlDvTDaefmBFCIPAvw/ydHfsZeOQFLaQU+j21JG8a93sIvZtCRlXeElKtUZ X-Received: by 2002:a05:6402:487:: with SMTP id k7mr16076749edv.315.1623668176570; Mon, 14 Jun 2021 03:56:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623668176; cv=none; d=google.com; s=arc-20160816; b=DRBnCgOmXQhq5xixh8JAIIRsJAGo1AcjBZGHKpj4385MSGnzO9DWAufZQp3D/Lgo+x 83rT9fRmnqL9VMB2BnExID/8epFyi8bzuyN5CdrH/6WVdY0z2H8ADpF9VmuYzjmzHXny Vep7jdB1OoRRnBGSProMSV7N6PGGjr2JTSOzpXOuynvlOMZF01pFCRdqETd1s3K301wv wIE8sxo4laDnQY9upoXSbn9r7+0yoUAQat5SkGemMr4Gb1qFTP57uiiFAZsTtjHLGNAr 4vF5iRASbcEiJ7BM+GLHo5C5dlHuRvTlA0L5n/NACj862e8fksFAyq5QIdw9DxOJBqvW Clgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lcZrO7qJ5p30+52f3WNkuNXANUaRODTgQXXditiC9GY=; b=PyK2U9SEMG7JftQnbeT6kW8AGUCtyms/fJ6TyhbpAhLbHyk8eXejtg1OCD4jVeDopg k9b85842pm6YrYDTSgUPQ13sZYEDQ1rIMT0N2sXeWYO0c4tCyFhJ1zgnQUOh/rThsn0H 4gzPLi5hqVO8LGgPnHJ8XdK2BfujoU1ktC3VTnHcfrb0ADkqD4AcX43zgkbjqM6zJd+3 xYbKXaCal3L+1Uqcdud+zk0FXon2y5TvGaxat1+f6XQgJ+d0O7A6wDa+RjFul9F8oVUV RrcbJ7h27EXVgNzD+yiGR2ZNjNcrYH+c1U4cHLlgr3D5M343Cj2hktNGbLOrwWzmlgQ2 YpwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qYX+p6as; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cb22si11685300edb.401.2021.06.14.03.56.16; Mon, 14 Jun 2021 03:56:16 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-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=@linuxfoundation.org header.s=korg header.b=qYX+p6as; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234585AbhFNK6H (ORCPT <rfc822;semen.protsenko@linaro.org> + 12 others); Mon, 14 Jun 2021 06:58:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:59300 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233934AbhFNK4J (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 14 Jun 2021 06:56:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A074261206; Mon, 14 Jun 2021 10:40:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623667259; bh=xE4zS2vv7KNhhWgDhMlfTpZX94wdbK0NNqMY56tsSJ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qYX+p6asvCpHA8DPYJ1m8FhBbspB7h9+eFPyhnJRKQcRHCCyD+Zl5JhNmt0H9AYx1 OUvOYMVYLrFx4KYpr46NqiUHoL/Q7Lw8kOxLyx1XvX6JkEi+ZQSo5F3dHpvVgRwK07 l7IHx5lqiYGNhQaax/MuC6NzPFU8uRLpiGgVK4j4= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Mark Brown <broonie@kernel.org> Subject: [PATCH 5.4 62/84] regulator: core: resolve supply for boot-on/always-on regulators Date: Mon, 14 Jun 2021 12:27:40 +0200 Message-Id: <20210614102648.490314334@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210614102646.341387537@linuxfoundation.org> References: <20210614102646.341387537@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -1381,6 +1381,12 @@ static int set_machine_constraints(struc * and we have control then make sure it is enabled. */ if (rdev->constraints->always_on || rdev->constraints->boot_on) { + /* If we want to enable this regulator, make sure that we know + * the supplying regulator. + */ + if (rdev->supply_name && !rdev->supply) + return -EPROBE_DEFER; + if (rdev->supply) { ret = regulator_enable(rdev->supply); if (ret < 0) {