Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1203796iol; Sun, 12 Jun 2022 08:57:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAEYnHRK10QodDHzVSAtn9pXHM/5rhpEZ+aKS00Np7bIhBn00NTm+wv8j9VHAp8NfXGS5J X-Received: by 2002:a17:90a:d507:b0:1ea:a977:c07b with SMTP id t7-20020a17090ad50700b001eaa977c07bmr3091586pju.33.1655049451764; Sun, 12 Jun 2022 08:57:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655049451; cv=none; d=google.com; s=arc-20160816; b=lsarfd/HbVNThBDqvJPWxRGg4R3b1fjGdd3BDIhmiDqgkqL7555HUs/mBF2Vy9eMv1 t5WMLGs1otYX3moxR8qEGIWf8ZwBxybM7h8tkziL4m/SkW4ipEEgqMvOI6qYJXZfPyt/ suJ7BsLwXa22KMKmQBW3Gm9HtXOddW7jvNN7JsBsgw8WfBHWLersBVosiY7DPtCRcRLT hxY9OHHQ16Hh3vmOzI3axC5dbBOKMwGXkTz48r6kWP8PBBaO2Am25/yS5c8yarobdCNB Pcior7Ezu2rQUg9BIr1bLW59btIqiMh9kN8Mwi6BwEzwRcdXpggF+549fbZ9sVHvbq+n tqqA== 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=BT3ij+o+RNqqmo+4+LR+KXAEY8VWuAd61fJQJ8OAeq8=; b=ZfzedLs7kNJbixRF2TH0lmFfUhsf5bdb95bqnDjFgRF7TKGlgBtCB5QbnnZwZ3loY/ 0NPXc9RnnaKwIAhIHwowrVd6hu0NnQU8DIzJvvy0HDH5jdZqptfhhUX9o+CE6cJ90Xul CsUyS0t/Zk38ki04dKVYV4EZh8p2pL9g4dpfYdsF5Azy+ifqx6znBx3is6TGBWd95Q9s q4NCUNlRTCTu3qm0Mp+7Hf6s54gcljDQh2TO+UF7+cI11+c9VUMfZu7M7aBEuf6GYx7i QOekswEy7tEexsGutfE7Nnx6BbsZa++qgZowmMkjDRssLmmtbBAJEl1t9iQGVTwo45Wk w+xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=RNXlOEmX; 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 e33-20020a631e21000000b003fdb97d8757si6189268pge.378.2022.06.12.08.57.19; Sun, 12 Jun 2022 08:57:31 -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=RNXlOEmX; 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 S233779AbiFLDZY (ORCPT + 99 others); Sat, 11 Jun 2022 23:25:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233017AbiFLDZQ (ORCPT ); Sat, 11 Jun 2022 23:25:16 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C56D666C9C; Sat, 11 Jun 2022 20:25:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655004314; x=1686540314; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=BT3ij+o+RNqqmo+4+LR+KXAEY8VWuAd61fJQJ8OAeq8=; b=RNXlOEmXM1w4eAJIHf/vMETsjPIJCL8Q9xHlaPpEn7BI2uI4pNG30bnH RHy05NMSjgWYHDxbWPnNvo9QabgT/unLCjbaN4ceZKyDgCik4ymhomVZR fBxVwuu1b6fmuhnRUE+ytLwfT1ei/o4eyl/G4H38TnLzAqD7BSleMc8Ig s=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 11 Jun 2022 20:25:14 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2022 20:25:13 -0700 Received: from nalasex01c.na.qualcomm.com (10.47.97.35) 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; Sat, 11 Jun 2022 20:25:13 -0700 Received: from fenglinw-gv.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Sat, 11 Jun 2022 20:25:10 -0700 From: Fenglin Wu To: , , CC: , , , , , Abhijeet Dharmapurikar , David Collins Subject: [RESEND PATCH v6 01/10] spmi: pmic-arb: add a print in cleanup_irq Date: Sun, 12 Jun 2022 11:24:37 +0800 Message-ID: <1655004286-11493-2-git-send-email-quic_fenglinw@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655004286-11493-1-git-send-email-quic_fenglinw@quicinc.com> References: <1655004286-11493-1-git-send-email-quic_fenglinw@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 nalasex01c.na.qualcomm.com (10.47.97.35) 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 From: Abhijeet Dharmapurikar The cleanup_irq() was meant to clear and mask interrupts that were left enabled in the hardware but there was no interrupt handler registered for it. Add an error print when it gets invoked. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: David Collins Signed-off-by: Fenglin Wu --- drivers/spmi/spmi-pmic-arb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 2113be4..5a99723 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b/drivers/spmi/spmi-pmic-arb.c @@ -590,6 +590,8 @@ static void cleanup_irq(struct spmi_pmic_arb *pmic_arb, u16 apid, int id) u8 per = ppid & 0xFF; u8 irq_mask = BIT(id); + dev_err_ratelimited(&pmic_arb->spmic->dev, "%s apid=%d sid=0x%x per=0x%x irq=%d\n", + __func__, apid, sid, per, id); writel_relaxed(irq_mask, pmic_arb->ver_ops->irq_clear(pmic_arb, apid)); if (pmic_arb_write_cmd(pmic_arb->spmic, SPMI_CMD_EXT_WRITEL, sid, -- 2.7.4