summaryrefslogtreecommitdiffstats
path: root/drivers/ddr/marvell/a38x/ddr3_debug.c
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-05-26 17:59:35 +0200
committerStefan Roese <sr@denx.de>2021-06-04 11:32:41 +0200
commit7b85aefd4ba502158aceae44c1d03eb853bf89be (patch)
tree6e7afaa518aac3c6c3b84931fa8789dac637e17b /drivers/ddr/marvell/a38x/ddr3_debug.c
parent127dbec39a5754346ca211460451b11412fe2cb3 (diff)
downloadu-boot-7b85aefd4ba502158aceae44c1d03eb853bf89be.tar.gz
u-boot-7b85aefd4ba502158aceae44c1d03eb853bf89be.tar.xz
u-boot-7b85aefd4ba502158aceae44c1d03eb853bf89be.zip
arm: a37xx: pci: Disable bus mastering when unloading driver
Disable Root Bridge I/O space, memory space and bus mastering in Aardvark's remove method, which is called before booting Linux kernel. This ensures that PCIe device which was initialized and used by U-Boot cannot do new DMA transfers until Linux initializes PCI subsystem and loads appropriate drivers for the device. During initialization of PCI subsystem Linux in fact disables this bus mastering on Root Bridge (and later enables it when driver is loaded and configured), but there is a possibility of a small window after U-Boot boots Linux when bus mastering is enabled, which is not correct. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/ddr/marvell/a38x/ddr3_debug.c')
0 files changed, 0 insertions, 0 deletions