PCI: aardvark: Assert PERST# when unbinding driver
authorPali Rohár <pali@kernel.org>
Wed, 4 May 2022 16:57:34 +0000 (18:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 May 2022 10:30:28 +0000 (12:30 +0200)
commit246a36b6637740f1be9c3cdd91f022b24b7402e7
tree6117aa474672a35b2249de86c554bb475a5ac0c7
parentaf27f54e62243a6609c8e21c98b4e7eed4cde992
PCI: aardvark: Assert PERST# when unbinding driver

commit 1f54391be8ce0c981d312cb93acdc5608def576a upstream.

Put the PCIe card into reset by asserting PERST# signal when unbinding
driver. It doesn't make sense to leave the card working if it can't
communicate with the host. This should also save some power.

Link: https://lore.kernel.org/r/20211130172913.9727-10-kabel@kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/controller/pci-aardvark.c