Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1652643pxy; Thu, 6 May 2021 12:23:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8DkddzyiTK6GZDo8A+mCc0e71rx7Q7tuHcPrxc4oQQ1BmtjKdS9BV01Jd5yGpECnHpiTQ X-Received: by 2002:a17:90a:c903:: with SMTP id v3mr19459458pjt.13.1620329001841; Thu, 06 May 2021 12:23:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620329001; cv=none; d=google.com; s=arc-20160816; b=Y+1WCo3ro/wABbXOCf5ySZ12/ebGSvIIAaBdF2KXIZ2l2Gjc0YcoS3pHdhptKowhLN Vu69GdPWeA7ghjcQc7o4ZlytAvEf9dT2G/eIO5DYU/vGZeVdGh3fyuBYm4TCMwVP9RfW TF07T7Fklzuqh4DHZkogOQ/BuXPwU6Pb1aUTEZ3aEQoLnn2JDx4gqL4wGqvWeR/qCDnp dIZY6jW4FjzUgIGG9hnQNvs5D/fHze5c4YcgBrBb1wU6X0lJYRuoPLVCqe9+AaKcw9Lx PsL6PQmU6ZdibLa1jN852O2mcyTyqQ82Y623RvyNZhTnzMxSwD+PzR8quLUAAqXUPgJe 3cqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=u2GlacQLlZDdLwGJ7V5cF4MYqzhtpb3drIPH2wzcxXA=; b=FnijVsGeeF3MOH8HeMk3r9ABQg18k5nO1ye1cGJmjQyV1Capax6N2q/FKCbUfQiXjZ 5NBasnfZG3Y9ZGzMBpsgI4Fr3vCM6Pguis4Chtn6DSGlgdLaN5dC6rM6hKAOe1sB5VQe ksjQr3Rgv9GTNCn7lWK3tHqyhMhvaHIP9ZIC7NhGDFlGOqIhutJopAQGro7ocSKqGTfT zHXCgMo/H7fjNPv0UC9RJxHyvjzZ7AEBbIJQ5lJvyRVPydDRYnIFoqX+2Rkr09eeXM/i NBXpYYDd88J1MBtQPLLD6yjSVsi7Gb/W2qwqcVd1fBesVCv0ZKQfuRpKu8AoRi64p3MK plOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oxvXQjeG; 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 q131si4250523pfc.154.2021.05.06.12.23.09; Thu, 06 May 2021 12:23:21 -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=oxvXQjeG; 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 S236095AbhEFPh6 (ORCPT + 99 others); Thu, 6 May 2021 11:37:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:46514 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235733AbhEFPd4 (ORCPT ); Thu, 6 May 2021 11:33:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6239A616EB; Thu, 6 May 2021 15:32:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620315175; bh=OfK0Hzd2grREpBUN2tgkKBXXxq0n8pt4CmtN6wgcHqk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oxvXQjeGDG52+9/+e+/YCQVhh/+CyB4udA90afhFAk4JgSh0rlqlReB/76rR29MGv vBDOcLPuyYji99nUxMGs8MAQUs/CfjqBrFQOGlyZhzlOYCbPzRbIry4N7MjK2vm/EA JDVDfKK2dnc+LAB+qDx1EgUc5Nu5xKxITmadGS5S3KfVwke50Ng+RcNJ76OIlu8ng+ bsDkyoCFMHt7GefKFLcuvZFd2rL7DeKWVGppdOPLgzBioxhdc3kvTAHwnh/ixTsL+q mlNpCgHwVaJ/7x95QkS4aPN7lMjXKeOqXlDAdoi1F2WtQB8TMYpLxd4lC2R4msPxx8 cfmoxHdbeaqRA== Received: by pali.im (Postfix) id 1AC5E89A; Thu, 6 May 2021 17:32:55 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Lorenzo Pieralisi , Thomas Petazzoni , Rob Herring , Bjorn Helgaas Cc: Russell King , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Remi Pommarel , Xogium , Tomasz Maciej Nowak , Marc Zyngier , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 37/42] PCI: aardvark: Replace custom PCIE_CORE_INT_* macros by linux PCI_INTERRUPT_* values Date: Thu, 6 May 2021 17:31:48 +0200 Message-Id: <20210506153153.30454-38-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210506153153.30454-1-pali@kernel.org> References: <20210506153153.30454-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Header file linux/pci.h defines enum pci_interrupt_pin with corresponding interrupt PCI_INTERRUPT_* values. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- drivers/pci/controller/pci-aardvark.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/pci/controller/pci-aardvark.c b/drivers/pci/controller/pci-aardvark.c index d99462d99ed8..2258b9ae1084 100644 --- a/drivers/pci/controller/pci-aardvark.c +++ b/drivers/pci/controller/pci-aardvark.c @@ -34,10 +34,7 @@ #define PCIE_CORE_DEV_REV_REG 0x8 #define PCIE_CORE_PCIEXP_CAP 0xc0 #define PCIE_CORE_PCIERR_CAP 0x100 -#define PCIE_CORE_INT_A_ASSERT_ENABLE 1 -#define PCIE_CORE_INT_B_ASSERT_ENABLE 2 -#define PCIE_CORE_INT_C_ASSERT_ENABLE 3 -#define PCIE_CORE_INT_D_ASSERT_ENABLE 4 + /* PIO registers base address and register offsets */ #define PIO_BASE_ADDR 0x4000 #define PIO_CTRL (PIO_BASE_ADDR + 0x0) @@ -706,7 +703,7 @@ static int advk_sw_pci_bridge_init(struct advk_pcie *pcie) bridge->conf.pref_mem_limit = cpu_to_le16(PCI_PREF_RANGE_TYPE_64); /* Support interrupt A for MSI feature */ - bridge->conf.intpin = PCIE_CORE_INT_A_ASSERT_ENABLE; + bridge->conf.intpin = PCI_INTERRUPT_INTA; bridge->has_pcie = true; bridge->data = pcie; -- 2.20.1