linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] MCB Update for v4.17
@ 2018-03-12  9:41 Johannes Thumshirn
  2018-03-12  9:41 ` [PATCH v3 1/2] PCI: Add Altera vendor ID Johannes Thumshirn
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Johannes Thumshirn @ 2018-03-12  9:41 UTC (permalink / raw)
  To: Greg KH, Bjorn Helgaas
  Cc: Linux Kernel Mailinglist, Michael Moese, Andy Shevchenko,
	linux-pci, 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.

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 v2:
* Collected ACKs
* Reworded Subject of 1/2 according to Bjorn

Changes to v1:
* Removed redundant pci_ids.h include


Johannes Thumshirn (2):
  PCI: Add Altera vendor ID
  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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v3 1/2] PCI: Add Altera vendor ID
  2018-03-12  9:41 [PATCH v3 0/2] MCB Update for v4.17 Johannes Thumshirn
@ 2018-03-12  9:41 ` Johannes Thumshirn
  2018-03-12  9:41 ` [PATCH v3 2/2] mcb: add Altera PCI ID to mcb-pci Johannes Thumshirn
  2018-03-19 19:23 ` [PATCH v3 0/2] MCB Update for v4.17 Bjorn Helgaas
  2 siblings, 0 replies; 4+ messages in thread
From: Johannes Thumshirn @ 2018-03-12  9:41 UTC (permalink / raw)
  To: Greg KH, Bjorn Helgaas
  Cc: Linux Kernel Mailinglist, Michael Moese, Andy Shevchenko,
	linux-pci, Johannes Thumshirn, Bjorn Helgaas, Eli Billauer,
	Anatolij Gustschin

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

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Eli Billauer <eli.billauer@gmail.com>
Cc: Anatolij Gustschin <agust@denx.de>
Acked-by: Eli Billauer <eli.billauer@gmail.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>

---
Changes to v1:
- Collected ACKs
- Reworded Subject according to Bjorn

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(-)

diff --git a/drivers/char/xillybus/xillybus_pcie.c b/drivers/char/xillybus/xillybus_pcie.c
index dff2d1538164..05e5324f60bd 100644
--- a/drivers/char/xillybus/xillybus_pcie.c
+++ b/drivers/char/xillybus/xillybus_pcie.c
@@ -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
 
diff --git a/drivers/fpga/altera-cvp.c b/drivers/fpga/altera-cvp.c
index 00e73d28077c..77b04e4b3254 100644
--- a/drivers/fpga/altera-cvp.c
+++ b/drivers/fpga/altera-cvp.c
@@ -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) },
 	{ }
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index a6b30667a331..6a96a70fb462 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -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
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v3 2/2] mcb: add Altera PCI ID to mcb-pci
  2018-03-12  9:41 [PATCH v3 0/2] MCB Update for v4.17 Johannes Thumshirn
  2018-03-12  9:41 ` [PATCH v3 1/2] PCI: Add Altera vendor ID Johannes Thumshirn
@ 2018-03-12  9:41 ` Johannes Thumshirn
  2018-03-19 19:23 ` [PATCH v3 0/2] MCB Update for v4.17 Bjorn Helgaas
  2 siblings, 0 replies; 4+ messages in thread
From: Johannes Thumshirn @ 2018-03-12  9:41 UTC (permalink / raw)
  To: Greg KH, Bjorn Helgaas
  Cc: Linux Kernel Mailinglist, Michael Moese, Andy Shevchenko,
	linux-pci, Johannes Thumshirn, Andreas Geißler

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.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reported-by: Ben Turner <ben.turner@21net.com>
Tested-by: Ben Turner <ben.turner@21net.com>
Cc: Andreas Geißler <andreas.geissler@men.de>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>

---
Changes to v2:
- Add Andy's review

Changes to v1:
- Removed redundant include of pci_ids.h
---
 drivers/mcb/mcb-pci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mcb/mcb-pci.c b/drivers/mcb/mcb-pci.c
index af4d2f26f1c6..c2d69e33bf2b 100644
--- a/drivers/mcb/mcb-pci.c
+++ b/drivers/mcb/mcb-pci.c
@@ -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);
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v3 0/2] MCB Update for v4.17
  2018-03-12  9:41 [PATCH v3 0/2] MCB Update for v4.17 Johannes Thumshirn
  2018-03-12  9:41 ` [PATCH v3 1/2] PCI: Add Altera vendor ID Johannes Thumshirn
  2018-03-12  9:41 ` [PATCH v3 2/2] mcb: add Altera PCI ID to mcb-pci Johannes Thumshirn
@ 2018-03-19 19:23 ` Bjorn Helgaas
  2 siblings, 0 replies; 4+ messages in thread
From: Bjorn Helgaas @ 2018-03-19 19:23 UTC (permalink / raw)
  To: Johannes Thumshirn
  Cc: Greg KH, Linux Kernel Mailinglist, Michael Moese,
	Andy Shevchenko, linux-pci

On Mon, Mar 12, 2018 at 10:41:17AM +0100, Johannes Thumshirn wrote:
> 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.

I applied these to pci/misc for v4.17.  I don't really care which tree
they go through, but it looks like there's no other obvious single
place since they touch more than one driver.

> Changes to v2:
> * Collected ACKs
> * Reworded Subject of 1/2 according to Bjorn
> 
> Changes to v1:
> * Removed redundant pci_ids.h include
> 
> 
> Johannes Thumshirn (2):
>   PCI: Add Altera vendor ID
>   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
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-19 19:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-12  9:41 [PATCH v3 0/2] MCB Update for v4.17 Johannes Thumshirn
2018-03-12  9:41 ` [PATCH v3 1/2] PCI: Add Altera vendor ID Johannes Thumshirn
2018-03-12  9:41 ` [PATCH v3 2/2] mcb: add Altera PCI ID to mcb-pci Johannes Thumshirn
2018-03-19 19:23 ` [PATCH v3 0/2] MCB Update for v4.17 Bjorn Helgaas

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).