Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp166941pxb; Fri, 15 Oct 2021 03:07:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOabNviXgOrWkSao+FwmbyhPQ2e+u1WwUHMZHklfs2RvpsT0V2SGpTVLylXWcc0kWBEF8b X-Received: by 2002:a17:906:454a:: with SMTP id s10mr5553243ejq.11.1634292465462; Fri, 15 Oct 2021 03:07:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634292465; cv=none; d=google.com; s=arc-20160816; b=z//24+n3nEZUdLlm1GLxstEgua3Su7uT90fQmm8YNVPnBtvm0x2QNkOql0Cc7nNdHX dnmECRqvRL2Ktq/Y9gLUP2dsbRMnXPhh0pyEfj2q41HB21Zj5TJtryE+tvLzuFkCQUme k8HBvRR8o2JAHzSu+fvbHG56vVaxrQD6T+MV8rY0RsGSFoqnlFeGzX3wbevacZiOlU55 OrxV0b6t9pSFbIL5EoTThrCdLuqXlFSq3PIf8N7bULgkaEQRwbXvP7inHH9kuql82OUg tktnklD2yHINxPcSADdI8birwhzNmeoBGiFrCAlpn8Jz8IdFQ2yYE35DDcvJLx3ZhzzK GQsg== 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=uaXn3JKlF05+Pmbri7MsfGeSTJ54qAS8sIzvWSpWuIg=; b=K6i6r8y8uvEowXonxvMEcgfP5cPoL1XIEkX+PzNP2aOq/9C6jThGGotas5pAJEZNtD 8+0YXbUmkf182jTCRc0jck4Ztx7TTi45wGaFyF5qmbvGIBPmPpFuLe3lprJPhcfZ7Nxa 7pfHRqHW4Md/5she1YlUw1LaR/PHvpQ6U7H3eZ7LvI4MJs7gP7FpJsoxKvx5iKylrc8u /UEJ6KHWBnqMxWQsAeXPvWm/5yPOKftvacHMm5jpfoVlyHrSESgchTadEVgkw8GQH4gy oeKcxloQvcsTET32OMuTYZENtKjgasvH9frpP4NQ+Sf5jv5RkLCHTI2wq1kjGx7xciW8 aDag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="qK/vGXxW"; 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 i6si7207009edl.526.2021.10.15.03.07.21; Fri, 15 Oct 2021 03:07:45 -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="qK/vGXxW"; 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 S231561AbhJOBLP (ORCPT + 99 others); Thu, 14 Oct 2021 21:11:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:46576 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229959AbhJOBLP (ORCPT ); Thu, 14 Oct 2021 21:11:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 714B261151; Fri, 15 Oct 2021 01:09:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634260149; bh=uaXn3JKlF05+Pmbri7MsfGeSTJ54qAS8sIzvWSpWuIg=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=qK/vGXxWIhKUf6XX7T/sdBDJi38bcz8JSWELHJf3twIa9JPdUWsSgJdWIZYvqiHuS KgZ2kZzJd8Av99/8l3rgaK/dJ3JqfBa261U7Hprd35zISYM/+pdebVFmYvcYdBfB/L 2jaS4jYtEZKzvkviE2TVMK9H7Ip3DzQjTAcvv1mL015Bmkbv5S75ZNuQnMw/tpdhZx CzLGXp+jyGEd18KB+E+Q6ynjpB1YcpxjmQnyB84+fVF1+3wNOX+5FTglxEI7wwnKBM aCIvA3NkHbea2hDNy6l+B+/e2vEVKTgs80pGUJF8TqdpZes27VtjCHy7ZPmw4sUGh1 +Ik3XVCDgCesw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: 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> 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: Thu, 14 Oct 2021 18:09:07 -0700 Message-ID: <163426014715.936959.6136985763712059359@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-13 19:26:55) >=20 > 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. I mean handle_bad_irq() on the irqdesc for the spmi pmic arb chained irq. Because things are not good with the chained irq.