Skip to content

Commit 8745aaa

Browse files
ruanjinjie-engkwilczynski
authored andcommitted
PCI: altera: Replace TLP_REQ_ID() with macro PCI_DEVID()
The TLP_REQ_ID's function is same as current PCI_DEVID() macro, replace it. No functional changes intended. Link: https://lore.kernel.org/linux-pci/20240828104202.3683491-1-ruanjinjie@huawei.com Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
1 parent 8400291 commit 8745aaa

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/pci/controller/pcie-altera.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,11 @@
5555
#define TLP_READ_TAG 0x1d
5656
#define TLP_WRITE_TAG 0x10
5757
#define RP_DEVFN 0
58-
#define TLP_REQ_ID(bus, devfn) (((bus) << 8) | (devfn))
5958
#define TLP_CFG_DW0(pcie, cfg) \
6059
(((cfg) << 24) | \
6160
TLP_PAYLOAD_SIZE)
6261
#define TLP_CFG_DW1(pcie, tag, be) \
63-
(((TLP_REQ_ID(pcie->root_bus_nr, RP_DEVFN)) << 16) | (tag << 8) | (be))
62+
(((PCI_DEVID(pcie->root_bus_nr, RP_DEVFN)) << 16) | (tag << 8) | (be))
6463
#define TLP_CFG_DW2(bus, devfn, offset) \
6564
(((bus) << 24) | ((devfn) << 16) | (offset))
6665
#define TLP_COMP_STATUS(s) (((s) >> 13) & 7)

0 commit comments

Comments
 (0)