Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1348156lqa; Mon, 29 Apr 2024 06:16:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCeCvtPmJdC6AHvjcMvR8LcAyizfuwtjKbkkieixQhvc3pvf8sipmAnhInT2pTzJomHE/0EgYNccZY1x/rLbe2I+aIDndzJB/W2tZIFA== X-Google-Smtp-Source: AGHT+IHrmRFmzygfGBZ4NDt2QnB8J+qNjtpMHKHiWu+7TagocQ1Fqya3p8nPhiytr81YpWxzVOds X-Received: by 2002:a05:6512:2342:b0:51d:8756:33f3 with SMTP id p2-20020a056512234200b0051d875633f3mr3113497lfu.32.1714396613889; Mon, 29 Apr 2024 06:16:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714396613; cv=pass; d=google.com; s=arc-20160816; b=nTNKFTkZMJYxJExuSzp8BqrVo5XssKWjpvpfew2vwFUSeHKYSlQfqMhvi6NWgVNof1 X+jr7KZwyy/Eu3vt9RDyacKQN2QAovO4AyOeDDDbqA5FHjExKAH6yzJEJ3iNCbP5ewsn rd0NdPZKAF2x1n+KrTGEoKM9itvBU3qsYn2gIs/csvgp0o+mJ0T0QA/1S0VabXfaG6kN VyTiyS7RoAN1V9HqGikDWiyOLR1vM5gbeqV7LympgP+ZIh+Ah5PlhQPFOFgy2VkeXHb2 0ptvQfma1w+4esCFUAMLZwqKko1YbAY8Lb3cSRe9I/du3rwkVEcfjuOI5MP2DnRksTdb 39+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=wlztJcKqhvsSXYU8o4cOLG00Kh+5FZspe6k4y7qbYi8=; fh=EeK44p6sN/vZ4CcEfLIxrufQWBKmf0QirEulg1xfRsw=; b=KntpyosOPg/zhbOMh7H1mEoutM9Kk9yzdVlwUlWfbPfLmQIIwZJdwyDmalIlJKh4VM nEW56e2WWG/d5ZNpTntIsLKCr0PWtk7Bwskvzh+vKA4mhWJa7TpsRjEdaFgtN1WO80Lu 0Cu69hJw1r97kW0RmH4i8LGT2SvHoWu0BjaLTa1/BRHBWnl6fscbLXnfcXN4EiQYG0eF D1gdjoRW6hQamlcbbiGVBSLd+XknVKkQkcH3jJePlQwLx08f6aKfhi8sm/T84vhP3ZE0 sRoBs1+kbawohh1UBpm4Z5ZKR2WpkaH9PKwJtdPQHGgbUpnsHUYhTBIxhvmxLSt8RgWu t/aQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DV7rtGNg; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-162085-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o2-20020aa7c502000000b0056e23c8b45esi13900516edq.59.2024.04.29.06.16.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 06:16:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162085-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DV7rtGNg; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-162085-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8A6901F23059 for ; Mon, 29 Apr 2024 10:47:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F88D39AF1; Mon, 29 Apr 2024 10:46:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DV7rtGNg" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40C1D3B7A0; Mon, 29 Apr 2024 10:46:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714387617; cv=none; b=o7VyS3YQAU7tE/WksLzJazlcvSgXPes3nH37ZRS9g+5pJXSsJnXZouyqpwhTE3kiDuYzxGL1ZebQEQEEqXyPTfBsYK7PSTlehHGzM+7cdLmps6ko0E2zr5+I09Dgp54PqPhfC1puPnOnKv3u+Y0EVuL7omvL6nMggSTxGBQD/Tw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714387617; c=relaxed/simple; bh=R2riUg/Wc1wqrQ5JnljoOoCmOH+vsHTb6i6sFG4RQIs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=nloWPX3plTXJATyRayba5DRMdvW/urzQH5AwA49n3EQoMmiSSyQwekffZM1LcJTEOS69q9kgXQlVWn65nWOfFwa8pzRBZn+DFy7d+km3mCnFiZcbmIpfL7nT3VFc7z/f1RYZxQCEldYg9DZwqpUw40fSIDX3X0r4N0y6XKShn9U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=DV7rtGNg; arc=none smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714387616; x=1745923616; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=R2riUg/Wc1wqrQ5JnljoOoCmOH+vsHTb6i6sFG4RQIs=; b=DV7rtGNgmisbdzuxAC2wVNJ+aWVXPizoyDTbCjETCLyjYT4k6oLE/Ks4 v27inOtscSRiCoIw0xA3GCARhvy8pw3xzeiV8H3h7/YqytnxlXICfx7hC ZOLOBmhwOZhtJKOceKEdZV3MpIXKs4cSFI5Jsero6jh08FtSqQIqp7pOV NpO6eyVKBwqcBJ4oevVzVJVVWsk889D7KU4dbShaIKBeljCb320Jiq4JU ZGIjPbHAfreZBVTpjOoBjeaYqc5+uIyMQ0jkj4lZixFwU6n9AUnENeJVg 4/pScTEX2Mbk6hhQt5Elif+3aBX5Tf/FsuQ2MHwltYlRhbJCYPEpP07US A==; X-CSE-ConnectionGUID: gLCXlhBgQcasfVScuPfcXw== X-CSE-MsgGUID: b1+wGhy8SFCWRmkuzJ4iCA== X-IronPort-AV: E=McAfee;i="6600,9927,11057"; a="27558815" X-IronPort-AV: E=Sophos;i="6.07,239,1708416000"; d="scan'208";a="27558815" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2024 03:46:55 -0700 X-CSE-ConnectionGUID: 8awMQp1vRrWFMQAWhN3V4A== X-CSE-MsgGUID: nM3+DbKYRoC6OTW0EV+TyA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,239,1708416000"; d="scan'208";a="30896676" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.245.247.45]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2024 03:46:50 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: linux-pci@vger.kernel.org, Bjorn Helgaas , Lorenzo Pieralisi , Rob Herring , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 01/10] ARM: orion5x: Rename PCI_CONF_{REG,FUNC}() out of the way Date: Mon, 29 Apr 2024 13:46:24 +0300 Message-Id: <20240429104633.11060-2-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240429104633.11060-1-ilpo.jarvinen@linux.intel.com> References: <20240429104633.11060-1-ilpo.jarvinen@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit orion5x defines PCI_CONF_REG() and PCI_CONF_FUNC() that are problematic because PCI core is going to introduce defines with the same names. Add ORION5X prefix to those defines to avoid name conflicts. Note: as this is part of series that replaces the code in question anyway, only bare minimum renaming is done and other similarly named macros are not touched. Signed-off-by: Ilpo Järvinen --- arch/arm/mach-orion5x/pci.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-orion5x/pci.c b/arch/arm/mach-orion5x/pci.c index 3313bc5a63ea..77ddab90f448 100644 --- a/arch/arm/mach-orion5x/pci.c +++ b/arch/arm/mach-orion5x/pci.c @@ -219,8 +219,8 @@ static int __init pcie_setup(struct pci_sys_data *sys) /* * PCI_CONF_ADDR bits */ -#define PCI_CONF_REG(reg) ((reg) & 0xfc) -#define PCI_CONF_FUNC(func) (((func) & 0x3) << 8) +#define ORION5X_PCI_CONF_REG(reg) ((reg) & 0xfc) +#define ORION5X_PCI_CONF_FUNC(func) (((func) & 0x3) << 8) #define PCI_CONF_DEV(dev) (((dev) & 0x1f) << 11) #define PCI_CONF_BUS(bus) (((bus) & 0xff) << 16) #define PCI_CONF_ADDR_EN (1 << 31) @@ -277,8 +277,8 @@ static int orion5x_pci_hw_rd_conf(int bus, int dev, u32 func, spin_lock_irqsave(&orion5x_pci_lock, flags); writel(PCI_CONF_BUS(bus) | - PCI_CONF_DEV(dev) | PCI_CONF_REG(where) | - PCI_CONF_FUNC(func) | PCI_CONF_ADDR_EN, PCI_CONF_ADDR); + PCI_CONF_DEV(dev) | ORION5X_PCI_CONF_REG(where) | + ORION5X_PCI_CONF_FUNC(func) | PCI_CONF_ADDR_EN, PCI_CONF_ADDR); *val = readl(PCI_CONF_DATA); @@ -301,8 +301,8 @@ static int orion5x_pci_hw_wr_conf(int bus, int dev, u32 func, spin_lock_irqsave(&orion5x_pci_lock, flags); writel(PCI_CONF_BUS(bus) | - PCI_CONF_DEV(dev) | PCI_CONF_REG(where) | - PCI_CONF_FUNC(func) | PCI_CONF_ADDR_EN, PCI_CONF_ADDR); + PCI_CONF_DEV(dev) | ORION5X_PCI_CONF_REG(where) | + ORION5X_PCI_CONF_FUNC(func) | PCI_CONF_ADDR_EN, PCI_CONF_ADDR); if (size == 4) { __raw_writel(val, PCI_CONF_DATA); -- 2.39.2