]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm64: a37xx: pci: Assert PERST# signal when unloading driver
authorPali Rohár <pali@kernel.org>
Wed, 19 Aug 2020 13:57:07 +0000 (15:57 +0200)
committerStefan Roese <sr@denx.de>
Mon, 31 Aug 2020 12:45:53 +0000 (14:45 +0200)
commit828d32621686aec593076d16445d39b9b8d49c05
tree8268dbb7582a30ca52526cb87c13be6379d91846
parent563b85bd88772c8949d10f7fa8e39a20280b1aac
arm64: a37xx: pci: Assert PERST# signal when unloading driver

This change ensures that PCIe card is put into reset state when U-Boot
stops using it.

DM_FLAG_OS_PREPARE ensures that U-Boot executes driver's remove callback
prior booting Linux kernel.

Linux kernel pci-aardvark driver needs to reset PCIe card via PERST# signal
prior initializing it. If it does not issue reset then some PCIe cards
(specially Compex WiFi cards) are not detected at all.

Putting PCIe card into reset state prior booting Linux kernel would ensure
that card would be properly reset at time when Linux kernel starts
initializing pci-aardvark driver.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Konstantin Porotchkin <kostap@marvell.com>
Tested-by: Andre Heider <a.heider@gmail.com>
drivers/pci/pci-aardvark.c