Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp303234iob; Thu, 28 Apr 2022 02:46:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx57O8CL4H11NpieZqDa/MJ7TgIh0rZxbtA2UNlPk1zPlF2Rl7c8y6T8HA2cfCoL0d4Qx6s X-Received: by 2002:a05:6a00:140e:b0:4e1:c81a:625c with SMTP id l14-20020a056a00140e00b004e1c81a625cmr34227705pfu.39.1651139185277; Thu, 28 Apr 2022 02:46:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651139185; cv=none; d=google.com; s=arc-20160816; b=cbEgrUVV8E68S/aiK0KTBTBuXg/9Ds+EKXGq74Kn0GUFPt09E8y7HYRQ0NS/gT23qb 4i/+FhclT7+DNPkbOa6FMidqde/3EqR9sjGNgznABkRmWOaEzVYwweU1DSSGtWvI/Va7 vHwzseXiJ1Ka5TEaRTfVK6EDvwUTY3m/Lx/bboK4UV+4TKTAMsuvcO5mRHEgCQ6uocUS FyCrR6XzDGiAijbLS5aZrFUe70XjC4nZhK/BkZOK9Uv9DX9uBbTCNRWzcWzyvnITPTV1 V37EuC1bv5C0k1e8DmDfOcp+4kHffa4Rpy3NtOmZCROTBjKNVvUlVE97v9MUnq6PTu3n 2LHg== 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=RxYjHVDPaZU2q3pmp0/zla6NQR6dxAFtlpx3TAWBmXpGj9c1ZgzQziwQIGqDLHyTfi 9sfxzWtNNSFdP7lTWw4PnV9qfp+z7de1i+vn+AK86RPWzp7fSzMb4C6Bg3+QOlTb5ItK zTuQFLK1wkU2rFMelsjATNot6Sts1Y98DlLletnNdg66ScxhWnDhwWCuangK0oyDlHbA gMs39sQEhffTd1tWDpy86cuco/BoNGScBcygZKhjOo7Z75yltdfBPworlXJZoDJ/c7Ov ekqTP18CBFHHmLwZY77YZI0E6LO1ntzq1ecynBU7fCLZ2dEnJxd+9sPwITSf8VVcEfdq cu/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=A7czZsnM; 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 j11-20020a170902da8b00b00158f13b4872si4522611plx.7.2022.04.28.02.46.10; Thu, 28 Apr 2022 02:46:25 -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=A7czZsnM; 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 S240271AbiD1BQU (ORCPT + 99 others); Wed, 27 Apr 2022 21:16:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231307AbiD1BQR (ORCPT ); Wed, 27 Apr 2022 21:16:17 -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 67186369F7; Wed, 27 Apr 2022 18:13:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1651108383; x=1682644383; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=BT3ij+o+RNqqmo+4+LR+KXAEY8VWuAd61fJQJ8OAeq8=; b=A7czZsnMuiDq2BafHyOqbGUQBeRyBnzF9VeQLJDaTSJrh6KEWSNtacN+ 9smUdKkOOSn0nrgg/Ysp8qiRdLKQfsmNcJC0wWb805Yb+2Q/ed/bM7O16 HgairDwdY4TgmECpYOAdok5gtwH70yL97UpjnG0537j2VuuQEmXm2PwLq k=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-01.qualcomm.com with ESMTP; 27 Apr 2022 18:13:03 -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; 27 Apr 2022 18:13:02 -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; Wed, 27 Apr 2022 18:13:02 -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; Wed, 27 Apr 2022 18:12:59 -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: Thu, 28 Apr 2022 09:12:40 +0800 Message-ID: <1651108369-11059-2-git-send-email-quic_fenglinw@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1651108369-11059-1-git-send-email-quic_fenglinw@quicinc.com> References: <1651108369-11059-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: nasanex01a.na.qualcomm.com (10.52.223.231) 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 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