From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 420DCC433DB for ; Thu, 25 Mar 2021 20:42:56 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AF57361A28 for ; Thu, 25 Mar 2021 20:42:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AF57361A28 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References:List-Owner; bh=Ab0C3d0cTm3qpuDsXt4FdStto2Ecwh8pmrTROdTLXqA=; b=qgmoxe/OP1Y5J+4MdXp1PFScB tFpVk10fU8U4l3XxTnu4V6Z/fcqZNwtfN2JQKO3pDvgu8bMuQ0HB/KNThgU/XCxIa1wmujsdaJzey khuG/S5PgTinbR/lTIntZNZMjPN8ECcxxZYCr6akeKVEHbUt7b0C8XzeC04RiQ2MgjYlbnAL9Mt1w cT8PWGMofl2YGo4OaD/RBHpKAaaJwWPha3MIFxE+NuuFfbEj6bVXb4GfYyeP0J1g582B2KhP2XkQ6 WDaJeKPCP7dezmxErZHOfuBCi3TxU/g37ArY1VFP3UuY1sJwG1b7g3TGYiOfB0yAaloaN1CC3tATL gn1OqYQYg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lPWnA-0029vI-Tw; Thu, 25 Mar 2021 20:41:21 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lPWn7-0029uY-7y for linux-arm-kernel@lists.infradead.org; Thu, 25 Mar 2021 20:41:19 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9251060240; Thu, 25 Mar 2021 20:41:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616704871; bh=/T8zm22SRswwq/QrrEZFtj36xizo7XK9JG+GRYx/kWQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=YkYohe33OH2FT7ixuKahB/b0usVAEtY8Knjnlzo39E2ESvpQqKpN2lk3AbUeayft2 FBnMWXnte95ocYRSFUrZWNd1UkTf8iO+Amm2ZrQYZ+ripvmcUZjSWAv/gdB97eLM16 dzhiok58gzwxVKKk3+nMbaOYA6e3qKnLK8oYp9lwWS3HSxAus6v37OcqhsqQwqcqKF +dz1jR+FNCm0LHDqWGzub8VyFwtWne8sOus407H9ppmm9x7CVTPZfMIe1NqT6ZJyDJ BaGCQGkpXXcHSKCm0U6wsftpVMotBy1737irp6rQVO6gXYX6f/3QAqFutPpOO6c7P+ JhRzooJuk+ZmA== Date: Thu, 25 Mar 2021 15:41:10 -0500 From: Bjorn Helgaas To: Kishon Vijay Abraham I Cc: Bjorn Helgaas , Rob Herring , Lorenzo Pieralisi , Marc Zyngier , Tom Joseph , linux-omap@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lokesh Vutla Subject: Re: [PATCH 2/4] PCI: j721e: Add PCI legacy interrupt support for J721E Message-ID: <20210325204110.GA809665@bjorn-Precision-5520> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210325090936.9306-3-kishon@ti.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210325_204117_502095_A0F7E03E X-CRM114-Status: GOOD ( 11.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org I'd promote J721E earlier in subject so it doesn't get truncated, e.g., PCI: j721e: Add J721E PCI legacy interrupt support On Thu, Mar 25, 2021 at 02:39:34PM +0530, Kishon Vijay Abraham I wrote: > +static void j721e_pcie_legacy_irq_handler(struct irq_desc *desc) > +{ > + int i; > + u32 reg; > + int virq; > + struct j721e_pcie *pcie = irq_desc_get_handler_data(desc); > + struct irq_chip *chip = irq_desc_get_chip(desc); The rest of this driver sorts locals in order of use, e.g., struct j721e_pcie *pcie = irq_desc_get_handler_data(desc); struct irq_chip *chip = irq_desc_get_chip(desc); int i; u32 reg; int virq; > + chained_irq_enter(chip, desc); > + > + for (i = 0; i < PCI_NUM_INTX; i++) { > + reg = j721e_pcie_intd_readl(pcie, STATUS_REG_SYS_0); > + if (!(reg & INTx_EN(i))) > + continue; > + > + virq = irq_find_mapping(pcie->legacy_irq_domain, 3 - i); Whitespace error (should be indented another tab, I think). > + generic_handle_irq(virq); > + j721e_pcie_intd_writel(pcie, STATUS_CLR_REG_SYS_0, INTx_EN(i)); > + j721e_pcie_intd_writel(pcie, EOI_REG, 3 - i); > + } > + > + chained_irq_exit(chip, desc); > +} _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel