Skip to content

Commit 4441df6

Browse files
committed
Merge branch 'pci/controller/cadence'
- Use PCIe Message routing types from the PCI core rather than defining private ones (Hans Zhang) * pci/controller/cadence: PCI: cadence: Replace private message routing enums with PCI core definitions
2 parents dc6061e + f28413f commit 4441df6

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

drivers/pci/controller/cadence/pcie-cadence-ep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ static void cdns_pcie_ep_assert_intx(struct cdns_pcie_ep *ep, u8 fn, u8 intx,
353353
}
354354
spin_unlock_irqrestore(&ep->lock, flags);
355355

356-
offset = CDNS_PCIE_NORMAL_MSG_ROUTING(MSG_ROUTING_LOCAL) |
356+
offset = CDNS_PCIE_NORMAL_MSG_ROUTING(PCIE_MSG_TYPE_R_LOCAL) |
357357
CDNS_PCIE_NORMAL_MSG_CODE(msg_code);
358358
writel(0, ep->irq_cpu_addr + offset);
359359
}

drivers/pci/controller/cadence/pcie-cadence.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -250,26 +250,6 @@ struct cdns_pcie_rp_ib_bar {
250250

251251
struct cdns_pcie;
252252

253-
enum cdns_pcie_msg_routing {
254-
/* Route to Root Complex */
255-
MSG_ROUTING_TO_RC,
256-
257-
/* Use Address Routing */
258-
MSG_ROUTING_BY_ADDR,
259-
260-
/* Use ID Routing */
261-
MSG_ROUTING_BY_ID,
262-
263-
/* Route as Broadcast Message from Root Complex */
264-
MSG_ROUTING_BCAST,
265-
266-
/* Local message; terminate at receiver (INTx messages) */
267-
MSG_ROUTING_LOCAL,
268-
269-
/* Gather & route to Root Complex (PME_TO_Ack message) */
270-
MSG_ROUTING_GATHER,
271-
};
272-
273253
struct cdns_pcie_ops {
274254
int (*start_link)(struct cdns_pcie *pcie);
275255
void (*stop_link)(struct cdns_pcie *pcie);

0 commit comments

Comments
 (0)