Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1293343iog; Tue, 14 Jun 2022 03:16:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrweQnpyu6OBWuPekbus28dNqbLZu4CLZjepuEgUusjGTwrhX6lwLtnKEFc8uNkolyfx6f X-Received: by 2002:a17:907:97d4:b0:711:cf0c:c220 with SMTP id js20-20020a17090797d400b00711cf0cc220mr3560325ejc.269.1655201779330; Tue, 14 Jun 2022 03:16:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655201779; cv=none; d=google.com; s=arc-20160816; b=ScFVK7mdXElsL8MMeoTcm617f2YJYBaKV7C79uQcUxFFsxtxa4sXc5ei2tfYqNtzRG JGCs/I1v8mmSHZ7mcdBdVUFps3JBl5KMr57XJT9UYViLV4YHbahyFLa17YoVASLVNoHg Q2deKDICKFH89NkKK8rIj6ZkzveTFNnROQLrCB93iVmxk40PjfV/8ka76AUXoApyHdbo FyGMD6LPN6OjNwDsjONM3j3P7YxYGHjKG1pF+Pv5XbOh0cAPLxWKf//f12G4pkQRyZ4J yeL6yjPS/kzShroBbyEJ2sbGJuA21JDIfcz/+RbjG9/Hak9ddiOHiLSOZvtuYVn1IpR1 QNNw== 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=AaWThxxcTSk/wcEQ64f1B+rJW5u8w08pHo0h42DxnrE=; b=FEPCeYWBVxaFc8tlfU/oOVrFqIo80I+imfIZEZttdtOhjM9UC1qIEX5T+qL5MmGEhy 4O26JPoAyElrRvfARk7DhD1pnVcLu5ZOEWEoS3m1CjDLpmgCNxjMsbbjngM+DunLGndU vhgMJsidO5MMtP+Ngpe7AnHxD62415IkvFRSOl56IvZuIVxu220mWiP7mT0zyyO67gzY lQKf1yvxLyyd0zQvuPdTBEF1DRyOkjBYGbMCuHpOAefhcCbQmunVwozAR+JkRLDVPzZK ovdhC1pR6dfrVzbfoSBTCg5j2WX6sCAcdnEMW2He/QI+WeuEYhRyVEyycz7UP0dmd+8m orrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=T5yXAPcv; 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 n9-20020a17090673c900b0070ed13d358fsi9893648ejl.194.2022.06.14.03.15.53; Tue, 14 Jun 2022 03:16:19 -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=T5yXAPcv; 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 S231475AbiFNJtb (ORCPT + 99 others); Tue, 14 Jun 2022 05:49:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232924AbiFNJt1 (ORCPT ); Tue, 14 Jun 2022 05:49:27 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCDF542EEB; Tue, 14 Jun 2022 02:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655200166; x=1686736166; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=AaWThxxcTSk/wcEQ64f1B+rJW5u8w08pHo0h42DxnrE=; b=T5yXAPcvcMNazk8trhoWzAk5JadKksSykc9i5ynDYcqPAvi17rRpxCUJ baMd0pvGXzkZYSGjGpwKX0lNYSUVOy5E/rhwsxsFZO61EHaIHSk/zMdHp GLe32bO1eB8Mh8AcZOAJZOgl7eE8BuxCV40n7QO10vi9xklsj7VfQBSX1 I=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-01.qualcomm.com with ESMTP; 14 Jun 2022 02:49:26 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2022 02:49:26 -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; Tue, 14 Jun 2022 02:49:25 -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; Tue, 14 Jun 2022 02:49:21 -0700 From: Satya Priya To: Bjorn Andersson , Rob Herring CC: Lee Jones , Liam Girdwood , Mark Brown , , , , , , , , Satya Priya Subject: [PATCH V15 4/9] mfd: pm8008: Add reset-gpios Date: Tue, 14 Jun 2022 15:18:26 +0530 Message-ID: <1655200111-18357-5-git-send-email-quic_c_skakit@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655200111-18357-1-git-send-email-quic_c_skakit@quicinc.com> References: <1655200111-18357-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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Reviewed-by: Stephen Boyd --- Changes in V15: - None. Changes in V14: - None. Changes in V13: - None. drivers/mfd/qcom-pm8008.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/mfd/qcom-pm8008.c b/drivers/mfd/qcom-pm8008.c index c472d7f..5a670b0 100644 --- a/drivers/mfd/qcom-pm8008.c +++ b/drivers/mfd/qcom-pm8008.c @@ -4,6 +4,7 @@ */ #include +#include #include #include #include @@ -221,6 +222,7 @@ static int pm8008_probe(struct i2c_client *client) { int rc; struct pm8008_data *chip; + struct gpio_desc *reset_gpio; chip = devm_kzalloc(&client->dev, sizeof(*chip), GFP_KERNEL); if (!chip) @@ -233,6 +235,10 @@ static int pm8008_probe(struct i2c_client *client) i2c_set_clientdata(client, chip); + reset_gpio = devm_gpiod_get(chip->dev, "reset", GPIOD_OUT_LOW); + if (IS_ERR(reset_gpio)) + return PTR_ERR(reset_gpio); + if (of_property_read_bool(chip->dev->of_node, "interrupt-controller")) { rc = pm8008_probe_irq_peripherals(chip, client->irq); if (rc) -- 2.7.4