[PATCH net-next v1 5/7] ptp: ocp: Reuse META's PCI vendor ID

Andy Shevchenko posted 7 patches 2 months, 4 weeks ago
There is a newer version of this series
[PATCH net-next v1 5/7] ptp: ocp: Reuse META's PCI vendor ID
Posted by Andy Shevchenko 2 months, 4 weeks ago
The META's PCI vendor ID is listed already in the pci_ids.h.
Reuse it here.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/ptp/ptp_ocp.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c
index 67a4c60cbbcd..4c4b4a40e9d4 100644
--- a/drivers/ptp/ptp_ocp.c
+++ b/drivers/ptp/ptp_ocp.c
@@ -25,8 +25,7 @@
 #include <linux/crc16.h>
 #include <linux/dpll.h>
 
-#define PCI_VENDOR_ID_FACEBOOK			0x1d9b
-#define PCI_DEVICE_ID_FACEBOOK_TIMECARD		0x0400
+#define PCI_DEVICE_ID_META_TIMECARD		0x0400
 
 #define PCI_VENDOR_ID_CELESTICA			0x18d4
 #define PCI_DEVICE_ID_CELESTICA_TIMECARD	0x1008
@@ -1030,7 +1029,7 @@ static struct ocp_resource ocp_adva_resource[] = {
 };
 
 static const struct pci_device_id ptp_ocp_pcidev_id[] = {
-	{ PCI_DEVICE_DATA(FACEBOOK, TIMECARD, &ocp_fb_resource) },
+	{ PCI_DEVICE_DATA(META, TIMECARD, &ocp_fb_resource) },
 	{ PCI_DEVICE_DATA(CELESTICA, TIMECARD, &ocp_fb_resource) },
 	{ PCI_DEVICE_DATA(OROLIA, ARTCARD, &ocp_art_resource) },
 	{ PCI_DEVICE_DATA(ADVA, TIMECARD, &ocp_adva_resource) },
-- 
2.50.1
Re: [PATCH net-next v1 5/7] ptp: ocp: Reuse META's PCI vendor ID
Posted by Vadim Fedorenko 2 months, 3 weeks ago
On 11/11/2025 16:52, Andy Shevchenko wrote:
> The META's PCI vendor ID is listed already in the pci_ids.h.
> Reuse it here.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>   drivers/ptp/ptp_ocp.c | 5 ++---
>   1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c
> index 67a4c60cbbcd..4c4b4a40e9d4 100644
> --- a/drivers/ptp/ptp_ocp.c
> +++ b/drivers/ptp/ptp_ocp.c
> @@ -25,8 +25,7 @@
>   #include <linux/crc16.h>
>   #include <linux/dpll.h>
>   
> -#define PCI_VENDOR_ID_FACEBOOK			0x1d9b
> -#define PCI_DEVICE_ID_FACEBOOK_TIMECARD		0x0400
> +#define PCI_DEVICE_ID_META_TIMECARD		0x0400
>   
>   #define PCI_VENDOR_ID_CELESTICA			0x18d4
>   #define PCI_DEVICE_ID_CELESTICA_TIMECARD	0x1008
> @@ -1030,7 +1029,7 @@ static struct ocp_resource ocp_adva_resource[] = {
>   };
>   
>   static const struct pci_device_id ptp_ocp_pcidev_id[] = {
> -	{ PCI_DEVICE_DATA(FACEBOOK, TIMECARD, &ocp_fb_resource) },
> +	{ PCI_DEVICE_DATA(META, TIMECARD, &ocp_fb_resource) },
>   	{ PCI_DEVICE_DATA(CELESTICA, TIMECARD, &ocp_fb_resource) },
>   	{ PCI_DEVICE_DATA(OROLIA, ARTCARD, &ocp_art_resource) },
>   	{ PCI_DEVICE_DATA(ADVA, TIMECARD, &ocp_adva_resource) },

Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>