diff options
| author | Kunihiko Hayashi <[email protected]> | 2020-02-26 05:52:23 +0000 |
|---|---|---|
| committer | Lorenzo Pieralisi <[email protected]> | 2020-03-31 08:13:27 +0000 |
| commit | f58d5f53c89479c12ad719c1960176442add5aaa (patch) | |
| tree | 476a5298a4b21cc79b0b0966a280ac44ef532a30 /drivers/pci/controller/dwc | |
| parent | PCI: tegra: Add support for PCIe endpoint mode in Tegra194 (diff) | |
| download | kernel-f58d5f53c89479c12ad719c1960176442add5aaa.tar.gz kernel-f58d5f53c89479c12ad719c1960176442add5aaa.zip | |
PCI: endpoint: Fix clearing start entry in configfs
After an endpoint is started through configfs, if 0 is written to the
configfs entry 'start', the controller stops but the epc_group->start
value remains 1.
A subsequent unlinking of the function from the controller would trigger
a spurious WARN_ON_ONCE() in pci_epc_epf_unlink() despite right
behavior.
Fix it by setting epc_group->start = 0 when a controller is stopped
using configfs.
Fixes: d74679911610 ("PCI: endpoint: Introduce configfs entry for configuring EP functions")
Signed-off-by: Kunihiko Hayashi <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Acked-by: Kishon Vijay Abraham I <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions
