|
@@ -58,11 +58,6 @@
|
|
|
|
|
|
#define to_keystone_pcie(x) container_of(x, struct keystone_pcie, pp)
|
|
#define to_keystone_pcie(x) container_of(x, struct keystone_pcie, pp)
|
|
|
|
|
|
-static inline struct pcie_port *sys_to_pcie(struct pci_sys_data *sys)
|
|
|
|
-{
|
|
|
|
- return sys->private_data;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
static inline void update_reg_offset_bit_pos(u32 offset, u32 *reg_offset,
|
|
static inline void update_reg_offset_bit_pos(u32 offset, u32 *reg_offset,
|
|
u32 *bit_pos)
|
|
u32 *bit_pos)
|
|
{
|
|
{
|
|
@@ -108,7 +103,7 @@ static void ks_dw_pcie_msi_irq_ack(struct irq_data *d)
|
|
struct pcie_port *pp;
|
|
struct pcie_port *pp;
|
|
|
|
|
|
msi = irq_data_get_msi_desc(d);
|
|
msi = irq_data_get_msi_desc(d);
|
|
- pp = sys_to_pcie(msi_desc_to_pci_sysdata(msi));
|
|
|
|
|
|
+ pp = (struct pcie_port *) msi_desc_to_pci_sysdata(msi);
|
|
ks_pcie = to_keystone_pcie(pp);
|
|
ks_pcie = to_keystone_pcie(pp);
|
|
offset = d->irq - irq_linear_revmap(pp->irq_domain, 0);
|
|
offset = d->irq - irq_linear_revmap(pp->irq_domain, 0);
|
|
update_reg_offset_bit_pos(offset, ®_offset, &bit_pos);
|
|
update_reg_offset_bit_pos(offset, ®_offset, &bit_pos);
|
|
@@ -146,7 +141,7 @@ static void ks_dw_pcie_msi_irq_mask(struct irq_data *d)
|
|
u32 offset;
|
|
u32 offset;
|
|
|
|
|
|
msi = irq_data_get_msi_desc(d);
|
|
msi = irq_data_get_msi_desc(d);
|
|
- pp = sys_to_pcie(msi_desc_to_pci_sysdata(msi));
|
|
|
|
|
|
+ pp = (struct pcie_port *) msi_desc_to_pci_sysdata(msi);
|
|
ks_pcie = to_keystone_pcie(pp);
|
|
ks_pcie = to_keystone_pcie(pp);
|
|
offset = d->irq - irq_linear_revmap(pp->irq_domain, 0);
|
|
offset = d->irq - irq_linear_revmap(pp->irq_domain, 0);
|
|
|
|
|
|
@@ -167,7 +162,7 @@ static void ks_dw_pcie_msi_irq_unmask(struct irq_data *d)
|
|
u32 offset;
|
|
u32 offset;
|
|
|
|
|
|
msi = irq_data_get_msi_desc(d);
|
|
msi = irq_data_get_msi_desc(d);
|
|
- pp = sys_to_pcie(msi_desc_to_pci_sysdata(msi));
|
|
|
|
|
|
+ pp = (struct pcie_port *) msi_desc_to_pci_sysdata(msi);
|
|
ks_pcie = to_keystone_pcie(pp);
|
|
ks_pcie = to_keystone_pcie(pp);
|
|
offset = d->irq - irq_linear_revmap(pp->irq_domain, 0);
|
|
offset = d->irq - irq_linear_revmap(pp->irq_domain, 0);
|
|
|
|
|