Re: [patch 02/37] device: Add device::msi_data pointer and struct msi_device_data

2021-11-28 Thread Thomas Gleixner
On Sat, Nov 27 2021 at 20:14, Jason Gunthorpe wrote: > On Sat, Nov 27, 2021 at 02:20:09AM +0100, Thomas Gleixner wrote: > >> +/** >> + * msi_setup_device_data - Setup MSI device data >> + * @dev:Device for which MSI device data should be set up >> + * >> + * Return: 0 on success, appropriate

Re: [patch 02/37] device: Add device::msi_data pointer and struct msi_device_data

2021-11-27 Thread Jason Gunthorpe via iommu
On Sat, Nov 27, 2021 at 02:20:09AM +0100, Thomas Gleixner wrote: > +/** > + * msi_setup_device_data - Setup MSI device data > + * @dev: Device for which MSI device data should be set up > + * > + * Return: 0 on success, appropriate error code otherwise > + * > + * This can be called more than

Re: [patch 02/37] device: Add device::msi_data pointer and struct msi_device_data

2021-11-27 Thread Greg Kroah-Hartman
On Sat, Nov 27, 2021 at 02:20:09AM +0100, Thomas Gleixner wrote: > Create struct msi_device_data and add a pointer of that type to struct > dev_msi_info, which is part of struct device. Provide an allocator function > which can be invoked from the MSI interrupt allocation code pathes. > >