Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3854296pxv; Mon, 19 Jul 2021 10:18:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6NqWtlKWd11rpSTGd0Qibk7r7GjgbCF12dLuJ4vLHBsZKrcmtC/gImTpjfthh8uB6XTKX X-Received: by 2002:a05:6638:4115:: with SMTP id ay21mr20997315jab.13.1626715132638; Mon, 19 Jul 2021 10:18:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626715132; cv=none; d=google.com; s=arc-20160816; b=iDaD7RHHdiHNg3oFBgBtdU5me0JSjk4+YxLB5sxsdHQ3b5jo5dGoU/kqnG2xqhhETL 0jJiqsm/01sua4LPn3Szf612E+k9LVYWdItwC1derwQGBvXadiDQo2RmOoEudM6CmVJG B0SA+6GXvvbDcMsQ2O3FOAGDyv+e/oh+p67LPlQzQelcpeUxvE2r3j3gxH+5t8OW4h55 3TuwwHRSFJVlzxHrawuNW95r8gpq8MnLwQgCZZto4SXwJDOC7yL5vQ/eUpmRvH+DyPZl ++1kUm50PBKa3u779d5ASJpgMHVxi/SNS31N0J+KScnFnfVjswB0d+Zcv4TVFerMPTDQ W9lw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3PCbcEPBppq/JTRmgrzi8tX4xXsDaKyeipJY8BnnIvw=; b=iWKlZ/32zO/wV346yGsH3KEs++nLfX9Htl7DyOwEWEGtWuZ0BrWVwpH7TwAiiAxTmJ o4x8KISNRgcbdCdQ069uMzv9CSpBa9RSb1qZwS/34NAgbPSfqTHsiBWREMtZH8/X9z16 cfX8s1JQAdSMKmj0u3ykGoQYfjjc+/9ULVqS9Qk9YKuJ57o0Zyt4/7Ne1iV3y6dydBim VR91bUbcRO5je5cVqgVlDa+WjcrGcc3poNdzARaRjk5AbuYkqmsEkiPbD2DelgRm4cbS NOHCPfJQV0FCv6mqG8OqR9p1md+YuvIUcC9eQsKVU4I2m8oovuzTBE/EoU+ftcXbCyaC g/vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RfFjs0xB; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f4si20465650ilu.143.2021.07.19.10.18.40; Mon, 19 Jul 2021 10:18:52 -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=@linuxfoundation.org header.s=korg header.b=RfFjs0xB; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241486AbhGSQdx (ORCPT + 99 others); Mon, 19 Jul 2021 12:33:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:58058 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347221AbhGSPRs (ORCPT ); Mon, 19 Jul 2021 11:17:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A71D9611C1; Mon, 19 Jul 2021 15:57:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626710269; bh=qjAee10GKoNtEd3QJvJ5ofikK7mIpHulu3nelTdmX4M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RfFjs0xBwWSURZLuPTCQGxzUHhOSTbVMIdn6yc2hVXoSC3z4PVFLT/ZibqYetChUW 9QEd7a+H7+X+PIHsik6/l0lKJs/MJ0LARuIGIAmimQECr8qDae2BGor1g0ECcgtasg dlCNLW6f4l5UHezbkgMQ9gbjYxuExpbLpNcMKe7g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linus Walleij , kernel test robot , Randy Dunlap , Lorenzo Pieralisi , Jiaxun Yang , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Thomas Bogendoerfer , linux-mips@vger.kernel.org, Sasha Levin Subject: [PATCH 5.10 114/243] PCI: ftpci100: Rename macro name collision Date: Mon, 19 Jul 2021 16:52:23 +0200 Message-Id: <20210719144944.588695089@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144940.904087935@linuxfoundation.org> References: <20210719144940.904087935@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Randy Dunlap [ Upstream commit 5be967d5016ac5ffb9c4d0df51b48441ee4d5ed1 ] PCI_IOSIZE is defined in mach-loongson64/spaces.h, so change the name of the PCI_* macros in pci-ftpci100.c to use FTPCI_* so that they are more localized and won't conflict with other drivers or arches. ../drivers/pci/controller/pci-ftpci100.c:37: warning: "PCI_IOSIZE" redefined 37 | #define PCI_IOSIZE 0x00 | In file included from ../arch/mips/include/asm/addrspace.h:13, ... from ../drivers/pci/controller/pci-ftpci100.c:15: arch/mips/include/asm/mach-loongson64/spaces.h:11: note: this is the location of the previous definition 11 | #define PCI_IOSIZE SZ_16M Suggested-by: Linus Walleij Link: https://lore.kernel.org/r/20210517234117.3660-1-rdunlap@infradead.org Reported-by: kernel test robot Signed-off-by: Randy Dunlap Signed-off-by: Lorenzo Pieralisi Reviewed-by: Linus Walleij Cc: Jiaxun Yang Cc: Linus Walleij Cc: Krzysztof WilczyƄski Cc: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org Signed-off-by: Sasha Levin --- drivers/pci/controller/pci-ftpci100.c | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/pci/controller/pci-ftpci100.c b/drivers/pci/controller/pci-ftpci100.c index da3cd216da00..aefef1986201 100644 --- a/drivers/pci/controller/pci-ftpci100.c +++ b/drivers/pci/controller/pci-ftpci100.c @@ -34,12 +34,12 @@ * Special configuration registers directly in the first few words * in I/O space. */ -#define PCI_IOSIZE 0x00 -#define PCI_PROT 0x04 /* AHB protection */ -#define PCI_CTRL 0x08 /* PCI control signal */ -#define PCI_SOFTRST 0x10 /* Soft reset counter and response error enable */ -#define PCI_CONFIG 0x28 /* PCI configuration command register */ -#define PCI_DATA 0x2C +#define FTPCI_IOSIZE 0x00 +#define FTPCI_PROT 0x04 /* AHB protection */ +#define FTPCI_CTRL 0x08 /* PCI control signal */ +#define FTPCI_SOFTRST 0x10 /* Soft reset counter and response error enable */ +#define FTPCI_CONFIG 0x28 /* PCI configuration command register */ +#define FTPCI_DATA 0x2C #define FARADAY_PCI_STATUS_CMD 0x04 /* Status and command */ #define FARADAY_PCI_PMC 0x40 /* Power management control */ @@ -195,9 +195,9 @@ static int faraday_raw_pci_read_config(struct faraday_pci *p, int bus_number, PCI_CONF_FUNCTION(PCI_FUNC(fn)) | PCI_CONF_WHERE(config) | PCI_CONF_ENABLE, - p->base + PCI_CONFIG); + p->base + FTPCI_CONFIG); - *value = readl(p->base + PCI_DATA); + *value = readl(p->base + FTPCI_DATA); if (size == 1) *value = (*value >> (8 * (config & 3))) & 0xFF; @@ -230,17 +230,17 @@ static int faraday_raw_pci_write_config(struct faraday_pci *p, int bus_number, PCI_CONF_FUNCTION(PCI_FUNC(fn)) | PCI_CONF_WHERE(config) | PCI_CONF_ENABLE, - p->base + PCI_CONFIG); + p->base + FTPCI_CONFIG); switch (size) { case 4: - writel(value, p->base + PCI_DATA); + writel(value, p->base + FTPCI_DATA); break; case 2: - writew(value, p->base + PCI_DATA + (config & 3)); + writew(value, p->base + FTPCI_DATA + (config & 3)); break; case 1: - writeb(value, p->base + PCI_DATA + (config & 3)); + writeb(value, p->base + FTPCI_DATA + (config & 3)); break; default: ret = PCIBIOS_BAD_REGISTER_NUMBER; @@ -469,7 +469,7 @@ static int faraday_pci_probe(struct platform_device *pdev) if (!faraday_res_to_memcfg(io->start - win->offset, resource_size(io), &val)) { /* setup I/O space size */ - writel(val, p->base + PCI_IOSIZE); + writel(val, p->base + FTPCI_IOSIZE); } else { dev_err(dev, "illegal IO mem size\n"); return -EINVAL; @@ -477,11 +477,11 @@ static int faraday_pci_probe(struct platform_device *pdev) } /* Setup hostbridge */ - val = readl(p->base + PCI_CTRL); + val = readl(p->base + FTPCI_CTRL); val |= PCI_COMMAND_IO; val |= PCI_COMMAND_MEMORY; val |= PCI_COMMAND_MASTER; - writel(val, p->base + PCI_CTRL); + writel(val, p->base + FTPCI_CTRL); /* Mask and clear all interrupts */ faraday_raw_pci_write_config(p, 0, 0, FARADAY_PCI_CTRL2 + 2, 2, 0xF000); if (variant->cascaded_irq) { -- 2.30.2