Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp739863pxb; Fri, 15 Apr 2022 10:06:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtwj8Od10Q4zLYRLqPlnTeu5v7K/kp1TgyBCY/sMqq2Pfgb4dhwCvCewfbYWEUSkZa3Lvc X-Received: by 2002:a05:6a00:1512:b0:505:da8c:26ba with SMTP id q18-20020a056a00151200b00505da8c26bamr82758pfu.63.1650042372718; Fri, 15 Apr 2022 10:06:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650042372; cv=none; d=google.com; s=arc-20160816; b=NYFsbRwCIWwx7EhWRhGe+aXPIOmwP9DsbRSYbG/zi5V8tI0vHULsat+akdN19P5g39 uFXO7TjaFEQVUkRb0EwQZ8Mt60aignJFBTfFTSGBGnel6dAYN5CRl25eWRgNIMwRWhO8 sRwz6/ziFW6QFm/9Edkocbt6qzg7KTJ+vJsthlGNudS2ZiWEyalTUrDNR2KGF3sDKhVz FSI9gJ/fLxIHDz0BTiGh4H8M8AB/OXSlPGVA8vRzeIosIwS9RaFS3on4F/KqzWrCHQ5L fvGeXtuEJtX0BjpCsKa9C550T7gBAjeL/Xa+9iwCoUADke4m0XtCqKt/OLn5MpRQsd7b 8B3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ittCj7XZJ/CtLmop6fZ5zdHBBalDy7MvV1QbC5uRLII=; b=REDLhU4mRKqoTk7/buXTtK0xueqP4m1kqKQUCSETcRURPzg4oAuJ4vYHEdk9QEAuHB XQmebYlcRqDXxS2VOpzMLtKGQKOpPHRTBrQ5q7XFCU1vPwHsV11TINSLGqsJczYtZBm2 wfLgUQGyS4Y1FUArVxLTKhIJ9P/yAtWns+AqI5KlCHH5mBtrSL2TBQ5K8dcHe/v9DnYn KSzW3jHnwLCyB/HSQi1+fX1FCUOTrxCGV9QiHgBMQT7J+yX3sr+2vwfyQWhRFhBgrzxy AKqs0wxRviofZQvM2nE1F+pTkqX/BZ/B3e2stU9GoK7k2s7pd6cQRHYpkWQNutRLc7O+ JgTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=iVeO9WLF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a170902f54700b001587f055d31si1844542plf.16.2022.04.15.10.05.56; Fri, 15 Apr 2022 10:06:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=iVeO9WLF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243390AbiDNMdp (ORCPT + 99 others); Thu, 14 Apr 2022 08:33:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243388AbiDNMdl (ORCPT ); Thu, 14 Apr 2022 08:33:41 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFCB938195; Thu, 14 Apr 2022 05:31:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1649939475; x=1681475475; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=ittCj7XZJ/CtLmop6fZ5zdHBBalDy7MvV1QbC5uRLII=; b=iVeO9WLFWCdtYUZATJ7dY+kqzu7XAK8qzAcuki/zYrkMZwfU+vJDX4Gw r+sCILAav30E+K1PZfqlCPrnS8FzYmB8RM0G5AG+YdwqigGnhy9qwo0/r OiLdYbMc2jOCvKp0RJZTqDNnaEIFYgu/n2cI8x11ZPs4OHPsIX5UkpCbx s=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 14 Apr 2022 05:31:11 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2022 05:31:10 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 14 Apr 2022 05:31:10 -0700 Received: from c-skakit-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 14 Apr 2022 05:31:05 -0700 From: Satya Priya To: Bjorn Andersson , Rob Herring CC: Lee Jones , Liam Girdwood , Mark Brown , , , , , , , , Satya Priya Subject: [PATCH V10 4/9] mfd: pm8008: Add reset-gpios Date: Thu, 14 Apr 2022 18:00:13 +0530 Message-ID: <1649939418-19861-5-git-send-email-quic_c_skakit@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1649939418-19861-1-git-send-email-quic_c_skakit@quicinc.com> References: <1649939418-19861-1-git-send-email-quic_c_skakit@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the reset-gpio toggling in the pm8008_probe() to bring pm8008 chip out of reset instead of doing it in DT node using "output-high" property. Signed-off-by: Satya Priya --- Changes in V10: - This has been split from [V9,3/6] as per comments here [1] [1] https://patchwork.kernel.org/project/linux-arm-msm/patch/1649166633-25872-4-git-send-email-quic_c_skakit@quicinc.com/#24803409 drivers/mfd/qcom-pm8008.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/mfd/qcom-pm8008.c b/drivers/mfd/qcom-pm8008.c index c472d7f..97a72da 100644 --- a/drivers/mfd/qcom-pm8008.c +++ b/drivers/mfd/qcom-pm8008.c @@ -4,6 +4,7 @@ */ #include +#include #include #include #include @@ -57,6 +58,7 @@ enum { struct pm8008_data { struct device *dev; struct regmap *regmap; + struct gpio_desc *reset_gpio; int irq; struct regmap_irq_chip_data *irq_data; }; @@ -239,6 +241,13 @@ static int pm8008_probe(struct i2c_client *client) dev_err(chip->dev, "Failed to probe irq periphs: %d\n", rc); } + chip->reset_gpio = devm_gpiod_get(chip->dev, "reset", GPIOD_OUT_HIGH); + if (IS_ERR(chip->reset_gpio)) { + dev_err(chip->dev, "failed to acquire reset gpio\n"); + return PTR_ERR(chip->reset_gpio); + } + gpiod_set_value(chip->reset_gpio, 1); + return devm_of_platform_populate(chip->dev); } -- 2.7.4