]> git.baikalelectronics.ru Git - kernel.git/commit
fpga: dfl: pci: fix return value of cci_pci_sriov_configure
authorXu Yilun <yilun.xu@intel.com>
Tue, 25 Feb 2020 06:07:18 +0000 (14:07 +0800)
committerMoritz Fischer <mdf@kernel.org>
Tue, 31 Mar 2020 03:45:30 +0000 (20:45 -0700)
commitf47cb713ed6acdfebac88fb0a6ac9b68a6bf8b88
tree5ca821fd80a12a65de7b1b829d9f53749b8ed198
parent3a0daea514999c6b89eec74fdb953497c7a1df9d
fpga: dfl: pci: fix return value of cci_pci_sriov_configure

pci_driver.sriov_configure should return negative value on error and
number of enabled VFs on success. But now the driver returns 0 on
success. The sriov configure still works but will cause a warning
message:

  XX VFs requested; only 0 enabled

This patch changes the return value accordingly.

Cc: stable@vger.kernel.org
Signed-off-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Wu Hao <hao.wu@intel.com>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
drivers/fpga/dfl-pci.c