Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp771335pxf; Thu, 25 Mar 2021 13:43:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdcr6vbVtEVRLfrZjtI+O34ZXbjvKHLnNrpv5t8x/4Qft3AlwTx33OnOcb0xUKmav7KEQN X-Received: by 2002:a17:906:151a:: with SMTP id b26mr11668576ejd.492.1616704984167; Thu, 25 Mar 2021 13:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616704984; cv=none; d=google.com; s=arc-20160816; b=JWvA+oTEexatItjfma6pXB87ED+lbS7S983cU3k8zclejJnImST1vh7gQ3GEy89YXp sUjgajc/hP+BGLabS+Ob7tRByjmAwyRsoyoiZ3iO8fuqkf5PmQ9HKYYWsZ7+a1E0eIiF 2DjDZcFelT7wfA0AuxvhtqABDGCwLcfP/SJn3z9O92cihjjqntp7miW5xYlZRNXUMQlk nbgoYEKsN2IgfgVZgBiInwldC5ISCtK2828qUjZS4S/R24546DdokV8B0px5Zml3nbvM dRaAoiE3T29VwpqibJIYAHyyZ8b0MlcfnhjXu4vdDBx2m77laTxStQ3C7Tms2EjDwV1N rToQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=cyp+UQDZ686Hz8jfpbLz+JXk3UGNYK1YZNrIyzaZ/wc=; b=QWzEeH6Q9Dj/HucitEdsnM0fAdjIhC00a4RpV/oiCmHArLpypWi+L9co8t8qpwX4dW tR/LEAZ9cUlIv9a9cOctqvuZ5GmIPyCfQdgMXwv+RldoLHpwcs3iiN4Js0qXjJdL1/xt /Mm8DBliISQw7+d+D3+lVmMmarECiJHXLCPIM3vTbZDkFc55kYrlUBZtCIe176qUKtCW lgSfoQNFiqiJo14SQDsr/Q0wgD+X0zeDL8I2Q6/ykjahslo0tTeAtpv+RQ1OShpwQ0aL VijvR+M0w4ddlcLGLjNaRoF3nQFXOw8eJp+5GDEYfF9ojoX/Z1eWWAOgf2HxSRwWU4C5 5gIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YkYohe33; 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 q18si4973709ejr.593.2021.03.25.13.42.41; Thu, 25 Mar 2021 13:43:04 -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=YkYohe33; 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 S230335AbhCYUlj (ORCPT + 99 others); Thu, 25 Mar 2021 16:41:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:47778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230288AbhCYUlM (ORCPT ); Thu, 25 Mar 2021 16:41:12 -0400 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210325090936.9306-3-kishon@ti.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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); > +}