Commit 64989e73 authored by Bjørn Erik Nilsen's avatar Bjørn Erik Nilsen Committed by Bjorn Helgaas

PCI: designware: Remove redundant call to pci_write_config_word()

write_msi_msg() does exactly the same so there is no need to explicitly
call pci_write_config_word() and do the same twice.
Tested-by: default avatarMohit Kumar <mohit.kumar@st.com>
Signed-off-by: default avatarBjørn Erik Nilsen <ben@datarespons.no>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarMarek Vasut <marex@denx.de>
Acked-by: default avatarJingoo Han <jg1.han@samsung.com>
parent be3f48cb
...@@ -345,10 +345,10 @@ static int dw_msi_setup_irq(struct msi_chip *chip, struct pci_dev *pdev, ...@@ -345,10 +345,10 @@ static int dw_msi_setup_irq(struct msi_chip *chip, struct pci_dev *pdev,
if (irq < 0) if (irq < 0)
return irq; return irq;
msg_ctr &= ~PCI_MSI_FLAGS_QSIZE; /*
msg_ctr |= msgvec << 4; * write_msi_msg() will update PCI_MSI_FLAGS so there is
pci_write_config_word(pdev, desc->msi_attrib.pos + PCI_MSI_FLAGS, * no need to explicitly call pci_write_config_word().
msg_ctr); */
desc->msi_attrib.multiple = msgvec; desc->msi_attrib.multiple = msgvec;
msg.address_lo = virt_to_phys((void *)pp->msi_data); msg.address_lo = virt_to_phys((void *)pp->msi_data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment