PCI: dwc: Enable write permission for Class Code, Interrupt Pin updates
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Mon, 28 Aug 2017 10:53:00 +0000 (18:53 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 29 Aug 2017 21:22:40 +0000 (16:22 -0500)
commitd91dfe5054d4f2c424bd70ca34fc3328ee179f20
tree4cd5e3918654ffd39d6bedc5068091a1ebc8bec4
parente44abfed6fcb750d24f4438dc9d5a02eebb5fcac
PCI: dwc: Enable write permission for Class Code, Interrupt Pin updates

dw_pcie_setup_rc() contains fixes to update the Class Code and Interrupt
Pin registers, but the fixes don't actually work because these registers
are read-only.

Enable write permission before updating the Class Code and Interrupt
Pin.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Joao Pinto <jpinto@synopsys.com>
Acked-by: Roy Zang <tie-fei.zang@freescale.com>
drivers/pci/dwc/pcie-designware-host.c