Skip to contentSkip to conversation

MCB Update for v4.17

PATCH Superseded Johannes Thumshirn 4 participants 6 messages Feb 28, 2018

Subsystems (5)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover MCB Update for v4.17

Hi Greg or Bjorn,

here's a small mcb update for the 4.17 window. The first patch makes the PCI Vendor ID of Altera generally available in pci_ids.h and removes it from the two private implementations before I would have to add a 3rd one.

The 2nd patch adds the Altera's PCI vendor ID to the mcb pci driver which enables at least one carrier board. This was reported and tested by Ben Turner.

Bjorn asked me to Cc linux-pci@ in his response, so I'm not sure if he want's to merge these two patches. I'm fine either way.

Thanks,
Johannes

Changes to v1:
* Removed redundant pci_ids.h include

Johannes Thumshirn (2):
PCI: add vendor id for Altera
mcb: add Altera PCI ID to mcb-pci

 drivers/char/xillybus/xillybus_pcie.c | 1 -
 drivers/fpga/altera-cvp.c             | 2 --
 drivers/mcb/mcb-pci.c                 | 1 +
 include/linux/pci_ids.h               | 2 ++
 4 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.13.6
#1 lore raw

PATCH v2 1/2 PCI: add vendor id for Altera

Add the Altera PCI Vendor id to pci_ids.h and remove the private definitions from xillybus_pcie.c and altera-cvp.c.

Cc Bjorn Helgaas <[email protected]>
Cc Eli Billauer <[email protected]>
Cc Anatolij Gustschin <[email protected]>

---
Changes to v1:
- Remove redundant pci_ids.h include (Andy)

---
 drivers/char/xillybus/xillybus_pcie.c | 1 -
 drivers/fpga/altera-cvp.c             | 2 --
 include/linux/pci_ids.h               | 2 ++
 3 files changed, 2 insertions(+), 3 deletions(-)
drivers/char/xillybus/xillybus_pcie.c +0 -1
index dff2d1538164..05e5324f60bd 100644
@@ -24,7 +24,6 @@ MODULE_LICENSE("GPL v2");
 
 #define PCI_DEVICE_ID_XILLYBUS		0xebeb
 
-#define PCI_VENDOR_ID_ALTERA		0x1172
 #define PCI_VENDOR_ID_ACTEL		0x11aa
 #define PCI_VENDOR_ID_LATTICE		0x1204
 
drivers/fpga/altera-cvp.c +0 -2
index 00e73d28077c..77b04e4b3254 100644
@@ -384,8 +384,6 @@ static int altera_cvp_probe(struct pci_dev *pdev,
 			    const struct pci_device_id *dev_id);
 static void altera_cvp_remove(struct pci_dev *pdev);
 
-#define PCI_VENDOR_ID_ALTERA	0x1172
-
 static struct pci_device_id altera_cvp_id_tbl[] = {
 	{ PCI_VDEVICE(ALTERA, PCI_ANY_ID) },
 	{ }
include/linux/pci_ids.h +2 -0
index a6b30667a331..6a96a70fb462 100644
@@ -1561,6 +1561,8 @@
 #define PCI_DEVICE_ID_SERVERWORKS_CSB6LPC 0x0227
 #define PCI_DEVICE_ID_SERVERWORKS_HT1100LD 0x0408
 
+#define PCI_VENDOR_ID_ALTERA		0x1172
+
 #define PCI_VENDOR_ID_SBE		0x1176
 #define PCI_DEVICE_ID_SBE_WANXL100	0x0301
 #define PCI_DEVICE_ID_SBE_WANXL200	0x0302
Signature · 1 line
2.13.6
maintainer Acked-by on v2 1/2
#2 lore raw

Re: [PATCH v2 1/2] PCI: add vendor id for Altera

Thanks.

Quoted 56 lines · Johannes Thumshirn

Add the Altera PCI Vendor id to pci_ids.h and remove the private definitions from xillybus_pcie.c and altera-cvp.c.

Cc Bjorn Helgaas<[email protected]>
Cc Eli Billauer<[email protected]>
Cc Anatolij Gustschin<[email protected]>

---
Changes to v1:
- Remove redundant pci_ids.h include (Andy)

---
  drivers/char/xillybus/xillybus_pcie.c | 1 -
  drivers/fpga/altera-cvp.c             | 2 --
  include/linux/pci_ids.h               | 2 ++
  3 files changed, 2 insertions(+), 3 deletions(-)
drivers/char/xillybus/xillybus_pcie.c +0 -1
index dff2d1538164..05e5324f60bd 100644
@@ -24,7 +24,6 @@ MODULE_LICENSE("GPL v2");
 
  #define PCI_DEVICE_ID_XILLYBUS		0xebeb
 
-#define PCI_VENDOR_ID_ALTERA		0x1172
  #define PCI_VENDOR_ID_ACTEL		0x11aa
  #define PCI_VENDOR_ID_LATTICE		0x1204
 
drivers/fpga/altera-cvp.c +0 -2
index 00e73d28077c..77b04e4b3254 100644
@@ -384,8 +384,6 @@ static int altera_cvp_probe(struct pci_dev *pdev,
  			    const struct pci_device_id *dev_id);
  static void altera_cvp_remove(struct pci_dev *pdev);
 
-#define PCI_VENDOR_ID_ALTERA	0x1172
-
  static struct pci_device_id altera_cvp_id_tbl[] = {
  	{ PCI_VDEVICE(ALTERA, PCI_ANY_ID) },
  	{ }
include/linux/pci_ids.h +2 -0
index a6b30667a331..6a96a70fb462 100644
@@ -1561,6 +1561,8 @@
  #define PCI_DEVICE_ID_SERVERWORKS_CSB6LPC 0x0227
  #define PCI_DEVICE_ID_SERVERWORKS_HT1100LD 0x0408
 
+#define PCI_VENDOR_ID_ALTERA		0x1172
+
  #define PCI_VENDOR_ID_SBE		0x1176
  #define PCI_DEVICE_ID_SBE_WANXL100	0x0301
  #define PCI_DEVICE_ID_SBE_WANXL200	0x0302
Acked-by on v2 1/2
#3 lore raw

Re: [PATCH v2 1/2] PCI: add vendor id for Altera

In reply to Johannes Thumshirn

s/PCI: add vendor id for Altera/PCI: Add Altera vendor ID/

Quoted 7 lines · Johannes Thumshirn

Add the Altera PCI Vendor id to pci_ids.h and remove the private definitions from xillybus_pcie.c and altera-cvp.c.

Cc Bjorn Helgaas <[email protected]>
Cc Eli Billauer <[email protected]>
Cc Anatolij Gustschin <[email protected]>

Feel free to merge this along with the other. If you'd like me to take them, just let me know.

Quoted 50 lines

---
Changes to v1:
- Remove redundant pci_ids.h include (Andy)

---
 drivers/char/xillybus/xillybus_pcie.c | 1 -
 drivers/fpga/altera-cvp.c             | 2 --
 include/linux/pci_ids.h               | 2 ++
 3 files changed, 2 insertions(+), 3 deletions(-)
drivers/char/xillybus/xillybus_pcie.c +0 -1
index dff2d1538164..05e5324f60bd 100644
@@ -24,7 +24,6 @@ MODULE_LICENSE("GPL v2");
 
 #define PCI_DEVICE_ID_XILLYBUS		0xebeb
 
-#define PCI_VENDOR_ID_ALTERA		0x1172
 #define PCI_VENDOR_ID_ACTEL		0x11aa
 #define PCI_VENDOR_ID_LATTICE		0x1204
 
drivers/fpga/altera-cvp.c +0 -2
index 00e73d28077c..77b04e4b3254 100644
@@ -384,8 +384,6 @@ static int altera_cvp_probe(struct pci_dev *pdev,
 			    const struct pci_device_id *dev_id);
 static void altera_cvp_remove(struct pci_dev *pdev);
 
-#define PCI_VENDOR_ID_ALTERA	0x1172
-
 static struct pci_device_id altera_cvp_id_tbl[] = {
 	{ PCI_VDEVICE(ALTERA, PCI_ANY_ID) },
 	{ }
include/linux/pci_ids.h +2 -0
index a6b30667a331..6a96a70fb462 100644
@@ -1561,6 +1561,8 @@
 #define PCI_DEVICE_ID_SERVERWORKS_CSB6LPC 0x0227
 #define PCI_DEVICE_ID_SERVERWORKS_HT1100LD 0x0408
 
+#define PCI_VENDOR_ID_ALTERA		0x1172
+
 #define PCI_VENDOR_ID_SBE		0x1176
 #define PCI_DEVICE_ID_SBE_WANXL100	0x0301
 #define PCI_DEVICE_ID_SBE_WANXL200	0x0302
Signature · 1 line
2.13.6
#4 lore raw

PATCH v2 2/2 mcb: add Altera PCI ID to mcb-pci

In reply to Johannes Thumshirn

Some older PCI attached MEN FPGAs use an Altera PCI Vendor ID instead of the MEN one. Add it to the PCI ID table so the driver automatically attaches to it.

---
Changes to v1:
- Removed redundant include of pci_ids.h

---
 drivers/mcb/mcb-pci.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mcb/mcb-pci.c +1 -0
index af4d2f26f1c6..c2d69e33bf2b 100644
@@ -117,6 +117,7 @@ static void mcb_pci_remove(struct pci_dev *pdev)
 
 static const struct pci_device_id mcb_pci_tbl[] = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_MEN, PCI_DEVICE_ID_MEN_CHAMELEON) },
+	{ PCI_DEVICE(PCI_VENDOR_ID_ALTERA, PCI_DEVICE_ID_MEN_CHAMELEON) },
 	{ 0 },
 };
 MODULE_DEVICE_TABLE(pci, mcb_pci_tbl);
Signature · 1 line
2.13.6
Reviewed-by on the v2 series
#5 lore raw
In reply to Johannes Thumshirn
Quoted 7 lines · Johannes Thumshirn

Hi Greg or Bjorn,

here's a small mcb update for the 4.17 window. The first patch makes the PCI Vendor ID of Altera generally available in pci_ids.h and removes it from the two private implementations before I would have to add a 3rd one.

Quoted 7 lines

The 2nd patch adds the Altera's PCI vendor ID to the mcb pci driver which enables at least one carrier board. This was reported and tested by Ben Turner.

Bjorn asked me to Cc linux-pci@ in his response, so I'm not sure if he want's to merge these two patches. I'm fine either way.

FWIW,

Quoted 19 lines

Thanks,
Johannes

Changes to v1:
* Removed redundant pci_ids.h include

Johannes Thumshirn (2):
PCI: add vendor id for Altera
mcb: add Altera PCI ID to mcb-pci

 drivers/char/xillybus/xillybus_pcie.c | 1 -
 drivers/fpga/altera-cvp.c             | 2 --
 drivers/mcb/mcb-pci.c                 | 1 +
 include/linux/pci_ids.h               | 2 ++
 4 files changed, 3 insertions(+), 3 deletions(-)

--
2.13.6

Signature · 2 lines
With Best Regards,
Andy Shevchenko