[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z8LKlNv9BiH6feaV@yilunxu-OptiPlex-7050>
Date: Sat, 1 Mar 2025 16:51:32 +0800
From: Xu Yilun <yilun.xu@...ux.intel.com>
To: Kuhanh Murugasen Krishnan <kuhanh.murugasen.krishnan@...el.com>
Cc: Moritz Fischer <mdf@...nel.org>, Wu Hao <hao.wu@...el.com>,
Xu Yilun <yilun.xu@...el.com>, Tom Rix <trix@...hat.com>,
linux-fpga@...r.kernel.org, linux-kernel@...r.kernel.org,
kuhanh.murugasen.krishnan@...era.com,
Ang Tien Sung <tien.sung.ang@...el.com>
Subject: Re: [PATCH] fpga: altera-cvp: PCIex8x8 ports
On Thu, Feb 13, 2025 at 06:35:53AM +0800, Kuhanh Murugasen Krishnan wrote:
First of all, please rewrite your shortlog. It doesn't indicate what
you've done.
> Enabling the possibility of supporting multiple
> PCIe devices from Intel Altera FPGA but with different
> device ids. The current driver registers itself
> to all device IDs which causes an incorrect driver
> association.
Please first state what you've done and what's the problem.
>
> Signed-off-by: Ang Tien Sung <tien.sung.ang@...el.com>
> Signed-off-by: Kuhanh Murugasen Krishnan <kuhanh.murugasen.krishnan@...el.com>
> ---
> drivers/fpga/altera-cvp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/fpga/altera-cvp.c b/drivers/fpga/altera-cvp.c
> index 5af0bd33890c..97e9d4d981ad 100644
> --- a/drivers/fpga/altera-cvp.c
> +++ b/drivers/fpga/altera-cvp.c
> @@ -560,7 +560,7 @@ static int altera_cvp_probe(struct pci_dev *pdev,
> static void altera_cvp_remove(struct pci_dev *pdev);
>
> static struct pci_device_id altera_cvp_id_tbl[] = {
> - { PCI_VDEVICE(ALTERA, PCI_ANY_ID) },
> + { PCI_VDEVICE(ALTERA, 0x00) },
Does dev_id == 0x00 covers all supported devices? It's a little wield to
me, do you have some DOC?
Thanks,
Yilun
> { }
> };
> MODULE_DEVICE_TABLE(pci, altera_cvp_id_tbl);
> --
> 2.25.1
>
>
Powered by blists - more mailing lists