summaryrefslogtreecommitdiff
path: root/common/iotrace.c
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2020-09-22 13:21:38 +0200
committerStefan Roese <sr@denx.de>2020-09-24 10:14:06 +0200
commit5f50b88ab60a9d2ef2a68a7fc889e78520691e40 (patch)
treef758747a6925be502650c1a310e54758bdccdc41 /common/iotrace.c
parente7e650e8bdb09ac46da017250394f8c589df10bb (diff)
arm64: a37xx: pci: Disable link training when unloading driver
As required by PCI Express spec a delay for at least 100ms after de-asserting PERST# signal is needed before link training is enabled. Linux kernels prior to 5.8 version do not automatically disable link training before de-asserting PERST# signal, therefore this requirement is not fulfilled. Above requirement is needed for proper detection of some Compex PCIe WiFi cards. Otherwise Linux kernel cannot detect it. To allow using those PCIe cards with older Linux kernel versions booted by U-Boot compiled with U-Boot a37xx pci driver, disable link training in U-Boot when unloading this pci driver. Thanks to DM_FLAG_OS_PREPARE flag, U-Boot automatically unload this driver when booting Linux kernel. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'common/iotrace.c')
0 files changed, 0 insertions, 0 deletions