Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3772830pxb; Wed, 13 Oct 2021 12:38:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE99n0DiEdAEgCozp16PghxXUUAscWRZoTRqo1Nnu889lZkCMujstH3azc5H/gqKDC7zcr X-Received: by 2002:a17:902:bcc6:b0:12d:bd30:bc4d with SMTP id o6-20020a170902bcc600b0012dbd30bc4dmr1089280pls.18.1634153909208; Wed, 13 Oct 2021 12:38:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634153909; cv=none; d=google.com; s=arc-20160816; b=DxZ8t0C7/nrI1U+wtFtg03zisXqugJxJJRPUeREIuL0s0aREUBDmXwAC455wTGXKPO HezOFfebJ0/00B6ckEQd9rwhGiMAAICZBEb9no+ZNPJ95FHltFxl/YUkDGpFgEICjHDD wHgxudZuvx+nYNC3ARNlowvSEt+azQpFTC51LhQxeTUQDVhqKPIGivo9yXwC0L7vtGBA PqsjFzQSfkyZSMyHuWJBq9j7HM+rVn72VuSq5s3eGaH+RrGc0pJSns26GoNCLtDNKiX1 Fs0mPlsOrcf/L07E1YNRIVJKGM8hcQQSvYUTH3muUKEorrwGKYR4/l8cDGrP8wFvxubK DUFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=Rm/Ai1yoJTuw3zJfyUVZiE5qj6NlqFqXYNJzlZIrlQ8=; b=xsV9f+mhfLWVCGJpVUthJJ4kK2FeJVe/e47/U+TzWJmQX10b13ymhZXMvvTtxE07Rb qnHoIcyN+x04A4ogHmnIztS3aVEbPiyvm7D4mZQzRPN2O8Y9vTeZ7EdPp5DxCE6BpuAT HvgfwnWe1vt1YcNhv3r27ZZvMcvmwviBK1wLrFiQAf+ajplJ4DAWFZbh/I77QOQx9cOY ILN0kkg/yNltGq1XpX6JZvlzvdjkn6+dojOvPXScLHKlpThXCuXSfcCLzBiFBkgrK3DI hGNdXEkQfmxzw6aXhhdPABCDBY/aqgGzL8OquuRC3S2pQfdk6gESZd9TplU3RBHqItya tb0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dbL7Yv3d; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w1si575099plk.70.2021.10.13.12.38.16; Wed, 13 Oct 2021 12:38:29 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=dbL7Yv3d; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231308AbhJMTh1 (ORCPT + 99 others); Wed, 13 Oct 2021 15:37:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:32780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbhJMTh0 (ORCPT ); Wed, 13 Oct 2021 15:37:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E148C61163; Wed, 13 Oct 2021 19:35:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634153723; bh=Rm/Ai1yoJTuw3zJfyUVZiE5qj6NlqFqXYNJzlZIrlQ8=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=dbL7Yv3dVFVIowcjRrBx0NOFmIDh6rqdxAs6afi+91JDytj7YpCQmdi/UrtqMh5t6 cQV8MCAl4EuMGKxwonGj2pwQXAYHtcDsRXOCNaoLSur2JEiENhIWbScIvgWgmAwkSM LO4SgHCGKHODghEWYFCInEKib8EaMJWRb4q7R32JjvYG7K9D9yvvZ8VTyJrHH4H4Fd 4+Jj5eZPbx/K93KP4kOIDiJUgJUrcJEpU0pqa3iXBPVKw2N3li+a/l9DpjG9f6Q9AR qCfzDxn4JLVkW99aLf4yIQI7OU8z+7qhieuVTiwVhZHbADL8/052K2OnhueYrh13HR Wh5iZ31b6Kriw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <6c91a6ad-0ff2-a431-138a-2ec83f2bfa74@quicinc.com> References: <1631860384-26608-1-git-send-email-quic_fenglinw@quicinc.com> <1631860384-26608-2-git-send-email-quic_fenglinw@quicinc.com> <163406078422.936959.12726677103787301939@swboyd.mtv.corp.google.com> <6c91a6ad-0ff2-a431-138a-2ec83f2bfa74@quicinc.com> Subject: Re: [RESEND PATCH v1 1/9] spmi: pmic-arb: add a print in cleanup_irq From: Stephen Boyd Cc: collinsd@codeaurora.org, subbaram@codeaurora.org, Abhijeet Dharmapurikar To: Fenglin Wu , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 13 Oct 2021 12:35:21 -0700 Message-ID: <163415372158.936959.16897606198271075227@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Fenglin Wu (2021-10-12 21:15:42) >=20 > On 10/13/2021 1:46 AM, Stephen Boyd wrote: > > Quoting Fenglin Wu (2021-09-16 23:32:56) > >> 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. > > Why? Don't we get the genirq spurious irq message in this scenario? >=20 > Thanks for reviewing the change. >=20 > No, there is no existing message printed out in this special case ( IRQ=20 > fired for not registered interrupt). Ah I see so the irq doesn't have a flow handler? Shouldn't you call handle_bad_irq() in this case so we get a irq descriptor print?