PCI: mvebu: Do not modify PCI IO type bits in conf_write
authorPali Rohár <pali@kernel.org>
Thu, 25 Nov 2021 12:45:57 +0000 (13:45 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 4 Jan 2022 14:58:48 +0000 (14:58 +0000)
commit2cf150216e5b5619d7c25180ccf2cc8ac7bebc13
tree2605b59cf3e4b8015ecaca1736e0159f7e6f9b1f
parente42b85583719adb87ab88dc7bcd41b38011f7d11
PCI: mvebu: Do not modify PCI IO type bits in conf_write

PCI IO type bits are already initialized in mvebu_pci_bridge_emul_init()
function and only when IO support is enabled. These type bits are read-only
and pci-bridge-emul.c code already does not allow to modify them from upper
layers.

When IO support is disabled then all IO registers should be read-only and
return zeros. Therefore do not modify PCI IO type bits in
mvebu_pci_bridge_emul_base_conf_write() callback.

Link: https://lore.kernel.org/r/20211125124605.25915-8-pali@kernel.org
Fixes: 1f08673eef12 ("PCI: mvebu: Convert to PCI emulated bridge config space")
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pci-mvebu.c