Kunihiko Hayashi f58d5f53c8 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 <hayashi.kunihiko@socionext.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
2020-03-31 09:13:27 +01:00
..
2020-01-23 16:40:03 -06:00
2020-01-15 11:00:40 -06:00
2020-02-06 14:17:38 +00:00
2019-11-28 08:54:55 -06:00
2019-07-09 07:24:53 -05:00
2019-09-23 16:10:08 -05:00
2018-10-02 10:14:32 +02:00
2019-11-28 08:54:36 -06:00
2020-02-05 17:49:54 +00:00
2019-11-28 08:54:55 -06:00
2020-01-31 14:48:54 -08:00
2020-01-29 17:00:02 -06:00
2019-06-13 16:49:45 -05:00
2019-09-23 16:10:31 -05:00
2019-05-13 18:34:46 -05:00