AW: [PATCH] fpga: altera_cvp: restrict registration to CvP enabled devices

2018-10-25 Thread Andreas Puhm
Hi Moritz, Matthew, >> Hi Anatolij, Andreas, >> >> On Tue, Oct 23, 2018 at 06:46:47PM +, Andreas Puhm wrote: >>> Hi Anatolij, >>> >>>> The CvP docs says that on some FPGAs (e.g. Arria 10) the assertion of CVP >>>> status can

AW: [PATCH] fpga: altera_cvp: restrict registration to CvP enabled devices

2018-10-23 Thread Andreas Puhm
Hi Anatolij, > Von: Anatolij Gustschin [mailto:ag...@denx.de] > Gesendet: Dienstag, 23. Oktober 2018 18:27 > An: Andreas Puhm > Cc: Moritz Fischer ; Alan Tull ; > linux-f...@vger.kernel.org; linux-kernel@vger.kernel.org > Betreff: Re: [PATCH] fpga: altera_cvp: restrict r

[PATCH] fpga: altera-cvp: Fix registration for CvP incapable devices

2018-10-23 Thread Andreas Puhm
>From bfc602900b016f65bc2f183aa93702101a1fdc17 Mon Sep 17 00:00:00 2001 From: Andreas Puhm Date: Tue, 23 Oct 2018 10:24:10 +0200 Subject: [PATCH] fpga: altera-cvp: Fix registration for CvP incapable devices The probe function needs to verify the CvP enable bit in order to properly determine

[PATCH] fpga: altera_cvp: restrict registration to CvP enabled devices

2018-10-22 Thread Andreas Puhm
return -ENODEV; + } + conf = devm_kzalloc(&pdev->dev, sizeof(*conf), GFP_KERNEL); if (!conf) return -ENOMEM; -- With best regards, Andreas Puhm

[Bug] altera_cvp registers a PCI device (Altera/Intel FPGA) without verifying that it supports CVP

2018-10-19 Thread Andreas Puhm
ter device only, if it supports CvP operation This patch is based on: git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tag/?h=v4.18 Signed-off-by: Andreas Puhm --- drivers/fpga/altera-cvp.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/fpga/altera-cvp.c b/dr