PCI: pci-bridge-emul: Make expansion ROM Base Address register read-only
authorPali Rohár <pali@kernel.org>
Wed, 24 Nov 2021 15:59:39 +0000 (16:59 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 6 Dec 2021 12:18:21 +0000 (12:18 +0000)
commit1c1a3b4d3e86b997a313ffb297c1129540882859
treede2b7b4d65fabb25eab0dbff29902e7b3cacb41a
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf
PCI: pci-bridge-emul: Make expansion ROM Base Address register read-only

If expansion ROM is unsupported (which is the case of pci-bridge-emul.c
driver) then ROM Base Address register must be implemented as read-only
register that return 0 when read, same as for unused Base Address
registers.

Link: https://lore.kernel.org/r/20211124155944.1290-2-pali@kernel.org
Fixes: 23a5fba4d941 ("PCI: Introduce PCI bridge emulated config space common logic")
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: stable@vger.kernel.org
drivers/pci/pci-bridge-emul.c