Messages in this thread | | | From | Frank Li <> | Subject | RE: [EXT] [PATCH v4 1/7] PCI: endpoint: Pass EPF device ID to the probe function | Date | Fri, 19 May 2023 18:11:15 +0000 |
| |
> > Currently, the EPF probe function doesn't get the device ID argument > needed > to correctly identify the device table ID of the EPF device. > > When multiple entries are added to the "struct pci_epf_device_id" table, > the probe function needs to identify the correct one. And the only way to > do so is by storing the correct device ID in "struct pci_epf" during > "pci_epf_match_id()" and passing that to probe(). > > Reviewed-by: Kishon Vijay Abraham I <kishon@kernel.org> > Signed-off-by: Manivannan Sadhasivam > <manivannan.sadhasivam@linaro.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
> --- > drivers/pci/endpoint/functions/pci-epf-ntb.c | 3 ++- > drivers/pci/endpoint/functions/pci-epf-test.c | 2 +- > drivers/pci/endpoint/functions/pci-epf-vntb.c | 2 +- > drivers/pci/endpoint/pci-epf-core.c | 8 +++++--- > include/linux/pci-epf.h | 4 +++- > 5 files changed, 12 insertions(+), 7 deletions(-) >
| |