From: "Krzysztof Wilczyński" <kw@linux.com>
To: "Pali Rohár" <pali@kernel.org>
Cc: Toan Le <toan@os.amperecomputing.com>,
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
Rob Herring <robh@kernel.org>,
Bjorn Helgaas <bhelgaas@google.com>,
linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PCI: xgene: Use PCI_VENDOR_ID_AMCC macro
Date: Tue, 28 Sep 2021 00:01:09 +0200 [thread overview]
Message-ID: <YVI/JUBsn5wDFaPo@rocinante> (raw)
In-Reply-To: <20210927134356.11799-1-pali@kernel.org>
Hi Pali,
> Header file linux/pci_ids.h defines AMCC vendor id (0x10e8) macro named
> PCI_VENDOR_ID_AMCC. So use this macro instead of driver custom macro.
[...]
> -#define XGENE_PCIE_VENDORID 0x10E8
Another possible way of doing this might have been to alias the macro:
#define XGENE_PCIE_VENDORID PCI_VENDOR_ID_AMCC
Not sure if this would be more or less confusing - I certainly had to go
and look up what "AMCC" was. Only to found out they got sold few years
ago, and such...
Nothing to change here, though.
> #define XGENE_PCIE_DEVICEID 0xE004
> #define SZ_1T (SZ_1G*1024ULL)
> #define PIPE_PHY_RATE_RD(src) ((0xc000 & (u32)(src)) >> 0xe)
> @@ -560,7 +559,7 @@ static int xgene_pcie_setup(struct xgene_pcie_port *port)
> xgene_pcie_clear_config(port);
>
> /* setup the vendor and device IDs correctly */
> - val = (XGENE_PCIE_DEVICEID << 16) | XGENE_PCIE_VENDORID;
> + val = (XGENE_PCIE_DEVICEID << 16) | PCI_VENDOR_ID_AMCC;
> xgene_pcie_writel(port, BRIDGE_CFG_0, val);
Thank you!
Reviewed-by: Krzysztof Wilczyński <kw@linux.com>
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-09-27 22:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-27 13:43 [PATCH] PCI: xgene: Use PCI_VENDOR_ID_AMCC macro Pali Rohár
2021-09-27 22:01 ` Krzysztof Wilczyński [this message]
2021-09-30 9:45 ` Lorenzo Pieralisi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YVI/JUBsn5wDFaPo@rocinante \
--to=kw@linux.com \
--cc=bhelgaas@google.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=pali@kernel.org \
--cc=robh@kernel.org \
--cc=toan@os.amperecomputing.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).