search for: device_id_check_override

Displaying 2 results from an estimated 2 matches for "device_id_check_override".

2023 Mar 23
0
[PATCH v3 virtio 1/8] virtio: allow caller to override device id and DMA mask
...vice < 0x1040) { > - /* Transitional devices: use the PCI subsystem device id as > - * virtio device id, same as legacy driver always did. > - */ > - mdev->id.device = pci_dev->subsystem_device; > + if (mdev->device_id_check_override) { > + err = mdev->device_id_check_override(pci_dev); > + if (err) > + return err; > + mdev->id.device = pci_dev->device; While at this, would it be better to let the device_id_check_override to return the mdev-&g...
2023 Mar 17
0
[PATCH RFC v2 virtio 3/7] pds_vdpa: virtio bar setup for vdpa
...nd DMA mask. > > Adding them as extra arguments to the function call seems a bit messy, > maybe add them to the struct virtio_pci_modern_device and the caller can > set them as overrides if needed? > > struct virtio_pci_modern_device { > > ... > > int (*device_id_check_override(struct pci_dev *pdev)); > u64 dma_mask_override; > } Looks fine. Thanks