Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

hisi_acc_vfio_pci: Remove useless function parameter

Remove unused function parameters for vf_qm_fun_reset() and
ensure the device is enabled before the reset operation
is performed.

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Link: https://lore.kernel.org/r/20220926093332.28824-4-liulongfang@huawei.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>

authored by

Longfang Liu and committed by
Alex Williamson
af72f53c 008e5e99

+5 -3
+5 -3
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c
··· 337 337 return 0; 338 338 } 339 339 340 - static void vf_qm_fun_reset(struct hisi_acc_vf_core_device *hisi_acc_vdev, 341 - struct hisi_qm *qm) 340 + static void vf_qm_fun_reset(struct hisi_qm *qm) 342 341 { 343 342 int i; 344 343 ··· 661 662 if (hisi_acc_vdev->vf_qm_state != QM_READY) 662 663 return; 663 664 664 - vf_qm_fun_reset(hisi_acc_vdev, vf_qm); 665 + /* Make sure the device is enabled */ 666 + qm_dev_cmd_init(vf_qm); 667 + 668 + vf_qm_fun_reset(vf_qm); 665 669 } 666 670 667 671 static int hisi_acc_vf_load_state(struct hisi_acc_vf_core_device *hisi_acc_vdev)