Message ID | 20210614102643.080869964@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp3157206jae; Mon, 14 Jun 2021 03:38:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4HBro0B+4+vhAa22QWYWgsZ9+QAGM5AiEMnFRx3bsbjWISacn+xYM+pRhuA7mfiOaB+2k X-Received: by 2002:aa7:c782:: with SMTP id n2mr16519574eds.77.1623667097260; Mon, 14 Jun 2021 03:38:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623667097; cv=none; d=google.com; s=arc-20160816; b=k0k676f51kVbOI6IOH82PHZgsEzuM92/M+qp910dxNdtdqe66aV10SiMBb2UnRHmZi xlHoQ0K12qllOdez0X49llTAMkQ+8DxWxzeJsKOLRKjt/QbQhXDzuMpS8OcpZz25AZR3 kHrDjZYVDRJqxkLtdHubkwKSy5PFFP0Og8O3yXa3mpYNgiiDkkrAbPAX940vR1h0YhLd k7mV+4ZS0N9+S7FckGTv2DAv8Gx3AWNUMpyMq13mIV5RYRVX+O1rXCfcVj1MKQIW7Lda r/4tSabBH/fCrvbvx+DpY/u/nEi37MVlbebrDCStuNqO0pkRMWG15ucALoTF5uHPtiCd s8Aw== 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=LZ6jFBSCxQmaWELL2sx5MK4jicuLzp5OMD1cu+tOlI0=; b=T5qh065rsJDMDceG+ieIF+314bOZRg6+GDu+xX16ZZc1RHOU1YFejO521IDHp8jHxY UcByfL1EHH5cednKkx9+XEpIzh6NIf7omUyVe62rnhAeiJM8HnW1LVSYQLKWxT+hbNKA /ge5CO1Ol/igK6tJsug5PUqP/EMjsMGQdD4aLrdtxm0e2oUd33GvyvlTLmiOkNDatIng eEU+o6cBZAEL/SyaxmZFBviRpmovGQxfuqrfHqKYqjyWcqNdRTQbR+FSqHBs2harqZTo g32LUtwS8wCj/DEaS29CTf1vovO6nM1B9UYv7xdeDuMYNaFlqe7iX5u6Ch/kkEkDso0q pwdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Hsk18G8H; 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 j15si2605138edw.0.2021.06.14.03.38.17; Mon, 14 Jun 2021 03:38:17 -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=Hsk18G8H; 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 S232888AbhFNKkK (ORCPT <rfc822;semen.protsenko@linaro.org> + 12 others); Mon, 14 Jun 2021 06:40:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:39898 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233015AbhFNKhI (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 14 Jun 2021 06:37:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CC18D610CD; Mon, 14 Jun 2021 10:33:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623666806; bh=VegNpaNu5hsoz+HL48/0pYz8xuhfa6ePNEhS/Kd5zcE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hsk18G8HJ6IKWwZsSh6r7z4MdXbQU0ZjBFOp+9ZRZ9az8ftOBMIGcNovjR/+DEwhK TRCkQg4qmySFE2+WFLunL5fVZgDwaSYouZJzH0UE7vj1F68gNIJazkstteL0DPH8OE DMoitVZ0bCoF9SdE5okl4W2QNy6Gs7M1Vm0rBAP0= 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 4.14 37/49] regulator: core: resolve supply for boot-on/always-on regulators Date: Mon, 14 Jun 2021 12:27:30 +0200 Message-Id: <20210614102643.080869964@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210614102641.857724541@linuxfoundation.org> References: <20210614102641.857724541@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 @@ -1081,6 +1081,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; + ret = _regulator_do_enable(rdev); if (ret < 0 && ret != -EINVAL) { rdev_err(rdev, "failed to enable\n");