mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-16 23:36:09 -05:00
Merge irq/cleanup fragments into irq/msi
Pick up the PCI changes to avoid conflicts.
This commit is contained in:
@@ -227,7 +227,7 @@ static const struct irq_domain_ops dw_pcie_msi_domain_ops = {
|
||||
int dw_pcie_allocate_domains(struct dw_pcie_rp *pp)
|
||||
{
|
||||
struct dw_pcie *pci = to_dw_pcie_from_pp(pp);
|
||||
struct fwnode_handle *fwnode = of_node_to_fwnode(pci->dev->of_node);
|
||||
struct fwnode_handle *fwnode = of_fwnode_handle(pci->dev->of_node);
|
||||
|
||||
pp->irq_domain = irq_domain_create_linear(fwnode, pp->num_vectors,
|
||||
&dw_pcie_msi_domain_ops, pp);
|
||||
|
||||
@@ -435,7 +435,7 @@ static const struct irq_domain_ops msi_domain_ops = {
|
||||
static int mobiveil_allocate_msi_domains(struct mobiveil_pcie *pcie)
|
||||
{
|
||||
struct device *dev = &pcie->pdev->dev;
|
||||
struct fwnode_handle *fwnode = of_node_to_fwnode(dev->of_node);
|
||||
struct fwnode_handle *fwnode = of_fwnode_handle(dev->of_node);
|
||||
struct mobiveil_msi *msi = &pcie->rp.msi;
|
||||
|
||||
mutex_init(&msi->lock);
|
||||
|
||||
@@ -247,7 +247,7 @@ static int xgene_allocate_domains(struct xgene_msi *msi)
|
||||
if (!msi->inner_domain)
|
||||
return -ENOMEM;
|
||||
|
||||
msi->msi_domain = pci_msi_create_irq_domain(of_node_to_fwnode(msi->node),
|
||||
msi->msi_domain = pci_msi_create_irq_domain(of_fwnode_handle(msi->node),
|
||||
&xgene_msi_domain_info,
|
||||
msi->inner_domain);
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@ static const struct irq_domain_ops msi_domain_ops = {
|
||||
|
||||
static int altera_allocate_domains(struct altera_msi *msi)
|
||||
{
|
||||
struct fwnode_handle *fwnode = of_node_to_fwnode(msi->pdev->dev.of_node);
|
||||
struct fwnode_handle *fwnode = of_fwnode_handle(msi->pdev->dev.of_node);
|
||||
|
||||
msi->inner_domain = irq_domain_add_linear(NULL, msi->num_of_vectors,
|
||||
&msi_domain_ops, msi);
|
||||
|
||||
@@ -581,7 +581,7 @@ static const struct irq_domain_ops msi_domain_ops = {
|
||||
|
||||
static int brcm_allocate_domains(struct brcm_msi *msi)
|
||||
{
|
||||
struct fwnode_handle *fwnode = of_node_to_fwnode(msi->np);
|
||||
struct fwnode_handle *fwnode = of_fwnode_handle(msi->np);
|
||||
struct device *dev = msi->dev;
|
||||
|
||||
msi->inner_domain = irq_domain_add_linear(NULL, msi->nr, &msi_domain_ops, msi);
|
||||
|
||||
@@ -451,7 +451,7 @@ static int iproc_msi_alloc_domains(struct device_node *node,
|
||||
if (!msi->inner_domain)
|
||||
return -ENOMEM;
|
||||
|
||||
msi->msi_domain = pci_msi_create_irq_domain(of_node_to_fwnode(node),
|
||||
msi->msi_domain = pci_msi_create_irq_domain(of_fwnode_handle(node),
|
||||
&iproc_msi_domain_info,
|
||||
msi->inner_domain);
|
||||
if (!msi->msi_domain) {
|
||||
|
||||
@@ -485,7 +485,7 @@ static struct msi_domain_info mtk_msi_domain_info = {
|
||||
|
||||
static int mtk_pcie_allocate_msi_domains(struct mtk_pcie_port *port)
|
||||
{
|
||||
struct fwnode_handle *fwnode = of_node_to_fwnode(port->pcie->dev->of_node);
|
||||
struct fwnode_handle *fwnode = of_fwnode_handle(port->pcie->dev->of_node);
|
||||
|
||||
mutex_init(&port->lock);
|
||||
|
||||
|
||||
@@ -470,7 +470,7 @@ static int xilinx_pl_dma_pcie_init_msi_irq_domain(struct pl_dma_pcie *port)
|
||||
struct device *dev = port->dev;
|
||||
struct xilinx_msi *msi = &port->msi;
|
||||
int size = BITS_TO_LONGS(XILINX_NUM_MSI_IRQS) * sizeof(long);
|
||||
struct fwnode_handle *fwnode = of_node_to_fwnode(port->dev->of_node);
|
||||
struct fwnode_handle *fwnode = of_fwnode_handle(port->dev->of_node);
|
||||
|
||||
msi->dev_domain = irq_domain_add_linear(NULL, XILINX_NUM_MSI_IRQS,
|
||||
&dev_msi_domain_ops, port);
|
||||
|
||||
@@ -495,7 +495,7 @@ static int nwl_pcie_init_msi_irq_domain(struct nwl_pcie *pcie)
|
||||
{
|
||||
#ifdef CONFIG_PCI_MSI
|
||||
struct device *dev = pcie->dev;
|
||||
struct fwnode_handle *fwnode = of_node_to_fwnode(dev->of_node);
|
||||
struct fwnode_handle *fwnode = of_fwnode_handle(dev->of_node);
|
||||
struct nwl_msi *msi = &pcie->msi;
|
||||
|
||||
msi->dev_domain = irq_domain_add_linear(NULL, INT_PCI_MSI_NR,
|
||||
|
||||
@@ -150,7 +150,7 @@ static struct msi_domain_info plda_msi_domain_info = {
|
||||
static int plda_allocate_msi_domains(struct plda_pcie_rp *port)
|
||||
{
|
||||
struct device *dev = port->dev;
|
||||
struct fwnode_handle *fwnode = of_node_to_fwnode(dev->of_node);
|
||||
struct fwnode_handle *fwnode = of_fwnode_handle(dev->of_node);
|
||||
struct plda_msi *msi = &port->msi;
|
||||
|
||||
mutex_init(&port->msi.lock);
|
||||
|
||||
Reference in New Issue
Block a user