Re: [PATCH 2/2] fpga: altera-cvp: Propagate PCI config access errors

Xu Yilun <[email protected]> Thu, 23 Jul 2026 11:42:58 +0800
Newsgroups org.kernel.vger.linux-fpga,org.kernel.vger.linux-kernel
Message-ID <amGNwqOFs3oLXhWt@yilunxu-OptiPlex-7050>
On Wed, Jul 01, 2026 at 09:26:33AM +0000, Daisuke Matsuda wrote:
> From: Daisuke Matsuda <[email protected]>
> 
> The CvP control path accesses the VSEC registers through PCI config space,
> but several reads and writes ignore the return value. If a config read
> fails, the driver can make decisions from an undefined register value and
> continue programming with bogus status or control bits.

Searching from the kernel, most pci_read/write_config_dword() don't
check return values. Could you help me understand why they don't but
this driver has the specific need?

Thanks,
Yilun