Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5442464pxb; Wed, 26 Jan 2022 12:04:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpylV+ARO/iUTwtuHFfXPB4kRLA6FGa0MXzC6ZqKmgEqJYFhz+DulhfC16BfUuMIcoOx7p X-Received: by 2002:a17:902:ed82:: with SMTP id e2mr584297plj.55.1643227498249; Wed, 26 Jan 2022 12:04:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643227498; cv=none; d=google.com; s=arc-20160816; b=sirI2h1t9/VF5T2H2fY60WkDu9958JtubAYDvjsMuNSxHVl5K3W499G+pQ4STzYzVe saB0IGJTr08II12wKLw0NyoGrJJqEPLRDK5lQM+GoKGqzmDgTbzfaIKRfXZXhscUq/WY UqNf+LCA5tkDhIw3IBcI5289FWkg021XJNgemn+8i7K6PUGyNc+DglUMsKuCFp1oNUAq Fjfd9eod4CWsAZurAPmKwskTJ01PC7EW0b6/XWLPPiuLegj+1irHQ0mM2TnoTpaQJbcM 2w4lHPsDd+wE3dgPEhdxq09awB3bAfYEN3/ad/dR9IDoHxQXrAnqHCPU/HcKoiQk435W kyEw== 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=fVD8QSKQM3hi6s6BBtdKW/SR2FK+mXef0JexNk05iGZcf6lf5GO1oGx0NZwAa8veh7 5zdP/ap6rcmkaW1YEV/evTKEJ33yXVwDv39HGgXDZucdzer61AjvqjIAg3uwZKV8Rv+z NLBRa3jduls7PY4IgVNZZU4BAUFkk0QTdm8Zd90rYVlChkHr6zPtx0YAD7BPkOfBvzne BtmliNngqkoZcEIfr9mjM9ZGUAFqQ01SwmnVIaBSPG5a++/l5nXWjjSOh77cLDCXQkCL o9umtAe0ScdC1qmVEBZl0+ky1KZaRFSmsnaUqTrpG5bjg6tqQW+YlXO6xCCREoNVV80P V0mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=MzPje2m6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z19si170720plb.264.2022.01.26.12.04.46; Wed, 26 Jan 2022 12:04:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=MzPje2m6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S235912AbiAZGcj (ORCPT + 99 others); Wed, 26 Jan 2022 01:32:39 -0500 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:48499 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235846AbiAZGci (ORCPT ); Wed, 26 Jan 2022 01:32:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1643178758; x=1674714758; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=BT3ij+o+RNqqmo+4+LR+KXAEY8VWuAd61fJQJ8OAeq8=; b=MzPje2m6/WGBD0N7mzerbn4eluaeFaThqiiMTIdNWRCrJ+tsLGfEFpbV jLz+cnvGppDiq+HJ5Opl07yrMnjD+tQRCtiG9RH+Tmiu2B89gCy+1HEep NnyR/VRX/FNoe/fHBCRs0InIdbS9KRQhnfrPTjNQEQFlakViECNaXTruB s=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 25 Jan 2022 22:32:37 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2022 22:32:37 -0800 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.922.19; Tue, 25 Jan 2022 22:32:37 -0800 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.922.19; Tue, 25 Jan 2022 22:32:34 -0800 From: Fenglin Wu To: , , CC: , , , , , Abhijeet Dharmapurikar Subject: [PATCH v5 01/10] spmi: pmic-arb: add a print in cleanup_irq Date: Wed, 26 Jan 2022 14:31:43 +0800 Message-ID: <1643178713-17178-2-git-send-email-quic_fenglinw@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1643178713-17178-1-git-send-email-quic_fenglinw@quicinc.com> References: <1643178713-17178-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) 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