Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1109222imm; Wed, 1 Aug 2018 10:19:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdHx7g4AoeT/FE5DhQzSUhZQw5Q+/GnGCUbnsL8/GfG6JMFmf5RbUtSpgEsAjgYrqeacNFq X-Received: by 2002:a63:ee56:: with SMTP id n22-v6mr6120163pgk.402.1533143978865; Wed, 01 Aug 2018 10:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533143978; cv=none; d=google.com; s=arc-20160816; b=XJAb52RqmouoCdDUy4c56SHYl+Lf5wo+GUFNWJ+OgPRXFqXFDO62rRv6/Bij8IWSFA is/0GkujIYyOAnhh9KtjorRL/8g03Xu+HmXdYXs+3fAW7DA2sxCnNQq5xw4Frz0Mk+vP m956J/VvbZsw/XvbbCEv4/NZ4ZTORzHTdiBPxmIuxXoUQr2D3gnx3N97tMSS0/2OmqnQ JaGMmIcve6dS9fC498FqcfMvj3XkduEPdHHJs5UFwbpBsKbHTN021WKcERP3IZsTYHCx XSdI/avW8eHqaOiSbDmW99yRBs5AplzEweoLmgIR1iw71NfkYDKeTzUV9kwf7bQjOFWc ENcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=30h1e0QhTRpP/J6MDKIOcO9AFrrDLDQ4c/CXJBqK20w=; b=pLj0G2KvD5arghYPvYFyOFA/VCnTPiN2mtE6o17Qt7pkONuZ1mYDTXBjyF6RlaGczo Lv7DduMjbaC4uca4gnA3vrV7I9V0a5432NbD5hPfGeKMBn56AY+uZ09Oxrzcu8bF9/h0 Mxa08eBsqPjHs62tuQahxhzQR2v+198z34wiBBe3OPvZCukhmvZpQjx6mcu+i7AqLgH7 Hs+lIHdKU2TsYqg4NYZ6A+y2aZv8jXs4qUgYRtXfDd18IYyT/9sT8J0YJsBQmraUwOUh tQa+PAy/SDiKliqhxYmRPtirhpiN0zIQbgqlT/dh2VcOdR1hxt2c8Exp9+STVgv0pHJt agYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si16488092pgb.107.2018.08.01.10.19.24; Wed, 01 Aug 2018 10:19:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404868AbeHATEq (ORCPT + 99 others); Wed, 1 Aug 2018 15:04:46 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46582 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403902AbeHATEq (ORCPT ); Wed, 1 Aug 2018 15:04:46 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 38BAFC9D; Wed, 1 Aug 2018 17:18:06 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anson Huang , Mark Brown , Sasha Levin Subject: [PATCH 4.14 126/246] regulator: pfuze100: add .is_enable() for pfuze100_swb_regulator_ops Date: Wed, 1 Aug 2018 18:50:36 +0200 Message-Id: <20180801165017.757360773@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Anson Huang [ Upstream commit 0b01fd3d40fe6402e5fa3b491ef23109feb1aaa5 ] If is_enabled() is not defined, regulator core will assume this regulator is already enabled, then it can NOT be really enabled after disabled. Based on Li Jun's patch from the NXP kernel tree. Signed-off-by: Anson Huang Signed-off-by: Mark Brown Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/regulator/pfuze100-regulator.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/regulator/pfuze100-regulator.c +++ b/drivers/regulator/pfuze100-regulator.c @@ -158,6 +158,7 @@ static const struct regulator_ops pfuze1 static const struct regulator_ops pfuze100_swb_regulator_ops = { .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, + .is_enabled = regulator_is_enabled_regmap, .list_voltage = regulator_list_voltage_table, .map_voltage = regulator_map_voltage_ascend, .set_voltage_sel = regulator_set_voltage_sel_regmap,