Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4047992pxb; Wed, 13 Oct 2021 19:29:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUhU2C5hhDK2cxNpH6M6GUQDbXBG7Xtq8NPY5ac/9DJU/xFS20PpuKpP2lOQfGBK6Vij1R X-Received: by 2002:a17:907:7d8b:: with SMTP id oz11mr605815ejc.84.1634178548888; Wed, 13 Oct 2021 19:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634178548; cv=none; d=google.com; s=arc-20160816; b=Smqv74rP35QntN1/1eVPETErJqpFMo1Rum6j23y0egBOwkKGv0zOXWayGRLLwesimD PKWQQAOkWjCLgJoqOZk2TTL+0akMjLy3p+KdXtZ+1VOpzBPSBpGU2A22mJR1D7of3kLg 0SkMCDzkwwhoSXxPP/+P+rbS12JdJjoraTnvOYAQrKeQ4ZGK/MssCc0gatWUOoTcEydr T35iClHwyJ92/9zQtJwutb86FSLVKFkdA1uMYq12X1PqOuCMaxPN5z+Cw5X0QLAElmFu lbFST1OOXIc4Lhq12A8y+EaC63Iar+jd+qLF/Ne4wUJSxmcbapPu5tWjyFPmcD/enCzI XBsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=uCL83pOineMIRtmcmPQ39e3/hdQ8pQvZIO4w7eV9FCk=; b=p4dKpSkRPZqi6R042sYtPQUR6MdW6VwCYscZkXL0oewhpu2jTdCXB2g40QsauQULby pjytcSvw3HU5kP0iWaxeB7aNpv+Dj6qsadc9FtPcFoc8XTjuGk5avuBw+PW3V5IFphpz xEc8Hj7ASprI8rxf0KszAIR2pmoq7CzzdtIxHR0LmY9WrLjN7Zx8t/KYURwfclllJcBb EEbfslXlOCg0Ska7QpzRUwbU4X1YJA5qspZYoGWZrlKScld5aXocwch+6iqe65tDj4mA +q7FYll4WR1cNECtHt0loc6TCHxgstf7TbIfKzM9uDwBEyBPzuO7r1P1xHH+hIQAuCXh 9dtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=iZdviWo6; 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 d26si1910702edx.561.2021.10.13.19.28.45; Wed, 13 Oct 2021 19:29:08 -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=@quicinc.com header.s=qcdkim header.b=iZdviWo6; 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 S229882AbhJNC3G (ORCPT + 99 others); Wed, 13 Oct 2021 22:29:06 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:38807 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbhJNC3F (ORCPT ); Wed, 13 Oct 2021 22:29:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1634178422; x=1665714422; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=uCL83pOineMIRtmcmPQ39e3/hdQ8pQvZIO4w7eV9FCk=; b=iZdviWo6XoV76f/BfHI+VExGoMnoZYrmZlmbO++G3DJupJN3FWBMMKBD Ud715Oz9BrBNagAw2n20yJfK3EvEtJ08aZo70hGzHjd0m1nmJSn/cJuYy SasiRJGsAjkBKhqVQJ3XC0853Hp89oEqpMyshv1D96apHJ0bvKvB9fnLM I=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 13 Oct 2021 19:27:01 -0700 X-QCInternal: smtphost Received: from nalasex01c.na.qualcomm.com ([10.47.97.35]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2021 19:27:01 -0700 Received: from [10.231.205.174] (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.7; Wed, 13 Oct 2021 19:26:58 -0700 Subject: Re: [RESEND PATCH v1 1/9] spmi: pmic-arb: add a print in cleanup_irq To: Stephen Boyd , , CC: , , Abhijeet Dharmapurikar 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> <163415372158.936959.16897606198271075227@swboyd.mtv.corp.google.com> From: Fenglin Wu Message-ID: Date: Thu, 14 Oct 2021 10:26:55 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <163415372158.936959.16897606198271075227@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/14/2021 3:35 AM, Stephen Boyd wrote: > Quoting Fenglin Wu (2021-10-12 21:15:42) >> 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? >> Thanks for reviewing the change. >> >> No, there is no existing message printed out in this special case ( IRQ >> 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? In such case, the irq number is not valid and there won't be a valid irq_desc, hence it's not possible to call handle_bad_irq() here.