* [PATCH iwl-next v2 1/2] PCI: Add PCI_VDEVICE_SUB helper macro
@ 2024-10-21 14:46 Piotr Kwapulinski
2024-10-22 15:30 ` [Intel-wired-lan] " Bjorn Helgaas
0 siblings, 1 reply; 4+ messages in thread
From: Piotr Kwapulinski @ 2024-10-21 14:46 UTC (permalink / raw)
To: intel-wired-lan
Cc: netdev, bhelgaas, linux-pci, linux-kernel, Piotr Kwapulinski,
Przemek Kitszel
PCI_VDEVICE_SUB generates the pci_device_id struct layout for
the specific PCI device/subdevice. Private data may follow the
output.
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@intel.com>
---
include/linux/pci.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 573b4c4..7d1359e 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1050,6 +1050,20 @@ struct pci_driver {
.vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
.subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
+/**
+ * PCI_VDEVICE_SUB - describe a specific PCI device/subdevice in a short form
+ * @vend: the vendor name
+ * @dev: the 16 bit PCI Device ID
+ * @subvend: the 16 bit PCI Subvendor ID
+ * @subdev: the 16 bit PCI Subdevice ID
+ *
+ * Generate the pci_device_id struct layout for the specific PCI
+ * device/subdevice. Private data may follow the output.
+ */
+#define PCI_VDEVICE_SUB(vend, dev, subvend, subdev) \
+ .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
+ .subvendor = (subvend), .subdevice = (subdev), 0, 0
+
/**
* PCI_DEVICE_DATA - macro used to describe a specific PCI device in very short form
* @vend: the vendor name (without PCI_VENDOR_ID_ prefix)
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-next v2 1/2] PCI: Add PCI_VDEVICE_SUB helper macro
2024-10-21 14:46 [PATCH iwl-next v2 1/2] PCI: Add PCI_VDEVICE_SUB helper macro Piotr Kwapulinski
@ 2024-10-22 15:30 ` Bjorn Helgaas
2024-10-22 16:04 ` Simon Horman
0 siblings, 1 reply; 4+ messages in thread
From: Bjorn Helgaas @ 2024-10-22 15:30 UTC (permalink / raw)
To: Piotr Kwapulinski
Cc: intel-wired-lan, netdev, bhelgaas, linux-pci, linux-kernel,
Przemek Kitszel
On Mon, Oct 21, 2024 at 04:46:54PM +0200, Piotr Kwapulinski wrote:
> PCI_VDEVICE_SUB generates the pci_device_id struct layout for
> the specific PCI device/subdevice. Private data may follow the
> output.
>
> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
> Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@intel.com>
This looks OK to me but needs to be included in a series that uses it.
I looked this message up on lore but can't find the 2/2 patch that
presumably uses it.
If 2/2 uses this,
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
> ---
> include/linux/pci.h | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/include/linux/pci.h b/include/linux/pci.h
> index 573b4c4..7d1359e 100644
> --- a/include/linux/pci.h
> +++ b/include/linux/pci.h
> @@ -1050,6 +1050,20 @@ struct pci_driver {
> .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
> .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
>
> +/**
> + * PCI_VDEVICE_SUB - describe a specific PCI device/subdevice in a short form
> + * @vend: the vendor name
> + * @dev: the 16 bit PCI Device ID
> + * @subvend: the 16 bit PCI Subvendor ID
> + * @subdev: the 16 bit PCI Subdevice ID
> + *
> + * Generate the pci_device_id struct layout for the specific PCI
> + * device/subdevice. Private data may follow the output.
> + */
> +#define PCI_VDEVICE_SUB(vend, dev, subvend, subdev) \
> + .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
> + .subvendor = (subvend), .subdevice = (subdev), 0, 0
> +
> /**
> * PCI_DEVICE_DATA - macro used to describe a specific PCI device in very short form
> * @vend: the vendor name (without PCI_VENDOR_ID_ prefix)
> --
> 2.43.0
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl-next v2 1/2] PCI: Add PCI_VDEVICE_SUB helper macro
2024-10-22 15:30 ` [Intel-wired-lan] " Bjorn Helgaas
@ 2024-10-22 16:04 ` Simon Horman
2024-10-30 8:18 ` Romanowski, Rafal
0 siblings, 1 reply; 4+ messages in thread
From: Simon Horman @ 2024-10-22 16:04 UTC (permalink / raw)
To: Bjorn Helgaas
Cc: Piotr Kwapulinski, intel-wired-lan, netdev, bhelgaas, linux-pci,
linux-kernel, Przemek Kitszel
On Tue, Oct 22, 2024 at 10:30:11AM -0500, Bjorn Helgaas wrote:
> On Mon, Oct 21, 2024 at 04:46:54PM +0200, Piotr Kwapulinski wrote:
> > PCI_VDEVICE_SUB generates the pci_device_id struct layout for
> > the specific PCI device/subdevice. Private data may follow the
> > output.
> >
> > Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
> > Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@intel.com>
>
> This looks OK to me but needs to be included in a series that uses it.
> I looked this message up on lore but can't find the 2/2 patch that
> presumably uses it.
>
> If 2/2 uses this,
>
> Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Hi Bjorn,
The threading of this patch-set does seem somehow broken.
But, FWIIW, I believe that patch 2/2 is here:
- [PATCH iwl-next v2 2/2] ixgbevf: Add support for Intel(R) E610 device
https://lore.kernel.org/netdev/20241021144841.5476-1-piotr.kwapulinski@intel.com/
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [Intel-wired-lan] [PATCH iwl-next v2 1/2] PCI: Add PCI_VDEVICE_SUB helper macro
2024-10-22 16:04 ` Simon Horman
@ 2024-10-30 8:18 ` Romanowski, Rafal
0 siblings, 0 replies; 4+ messages in thread
From: Romanowski, Rafal @ 2024-10-30 8:18 UTC (permalink / raw)
To: Simon Horman, Bjorn Helgaas
Cc: Kwapulinski, Piotr, intel-wired-lan@lists.osuosl.org,
netdev@vger.kernel.org, bhelgaas@google.com,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
Kitszel, Przemyslaw
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of Simon
> Horman
> Sent: Tuesday, October 22, 2024 6:04 PM
> To: Bjorn Helgaas <helgaas@kernel.org>
> Cc: Kwapulinski, Piotr <piotr.kwapulinski@intel.com>; intel-wired-
> lan@lists.osuosl.org; netdev@vger.kernel.org; bhelgaas@google.com; linux-
> pci@vger.kernel.org; linux-kernel@vger.kernel.org; Kitszel, Przemyslaw
> <przemyslaw.kitszel@intel.com>
> Subject: Re: [Intel-wired-lan] [PATCH iwl-next v2 1/2] PCI: Add
> PCI_VDEVICE_SUB helper macro
>
> On Tue, Oct 22, 2024 at 10:30:11AM -0500, Bjorn Helgaas wrote:
> > On Mon, Oct 21, 2024 at 04:46:54PM +0200, Piotr Kwapulinski wrote:
> > > PCI_VDEVICE_SUB generates the pci_device_id struct layout for the
> > > specific PCI device/subdevice. Private data may follow the output.
> > >
> > > Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
> > > Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@intel.com>
> >
> > This looks OK to me but needs to be included in a series that uses it.
> > I looked this message up on lore but can't find the 2/2 patch that
> > presumably uses it.
> >
> > If 2/2 uses this,
> >
> > Acked-by: Bjorn Helgaas <bhelgaas@google.com>
>
> Hi Bjorn,
>
> The threading of this patch-set does seem somehow broken.
> But, FWIIW, I believe that patch 2/2 is here:
>
> - [PATCH iwl-next v2 2/2] ixgbevf: Add support for Intel(R) E610 device
> https://lore.kernel.org/netdev/20241021144841.5476-1-
> piotr.kwapulinski@intel.com/
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-10-30 8:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-21 14:46 [PATCH iwl-next v2 1/2] PCI: Add PCI_VDEVICE_SUB helper macro Piotr Kwapulinski
2024-10-22 15:30 ` [Intel-wired-lan] " Bjorn Helgaas
2024-10-22 16:04 ` Simon Horman
2024-10-30 8:18 ` Romanowski, Rafal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).