Re: [PATCH v2] PCI: endpoint: Set endpoint controller pointer to null

2019-06-11 Thread Lorenzo Pieralisi
On Thu, May 23, 2019 at 02:45:44PM -0700, Alan Mikhak wrote: > Set endpoint controller pointer to null in pci_epc_remove_epf() > to avoid -EBUSY on subsequent call to pci_epc_add_epf(). > > Requires checking for null endpoint function pointer. > > Signed-off-by: Alan Mikhak > --- > drivers/pci/

Re: [PATCH v2] PCI: endpoint: Set endpoint controller pointer to null

2019-05-24 Thread Kishon Vijay Abraham I
On 24/05/19 5:27 AM, Alan Mikhak wrote: > +Bjorn Helgaas > > On Thu, May 23, 2019 at 2:46 PM Alan Mikhak wrote: >> >> Set endpoint controller pointer to null in pci_epc_remove_epf() >> to avoid -EBUSY on subsequent call to pci_epc_add_epf(). >> >> Requires checking for null endpoint function p

Re: [PATCH v2] PCI: endpoint: Set endpoint controller pointer to null

2019-05-23 Thread Alan Mikhak
+Bjorn Helgaas On Thu, May 23, 2019 at 2:46 PM Alan Mikhak wrote: > > Set endpoint controller pointer to null in pci_epc_remove_epf() > to avoid -EBUSY on subsequent call to pci_epc_add_epf(). > > Requires checking for null endpoint function pointer. > > Signed-off-by: Alan Mikhak > --- > drive

[PATCH v2] PCI: endpoint: Set endpoint controller pointer to null

2019-05-23 Thread Alan Mikhak
Set endpoint controller pointer to null in pci_epc_remove_epf() to avoid -EBUSY on subsequent call to pci_epc_add_epf(). Requires checking for null endpoint function pointer. Signed-off-by: Alan Mikhak --- drivers/pci/endpoint/pci-epc-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(