[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180227133726.frfk2lymnyvrs4th@linux.suse.de>
Date: Tue, 27 Feb 2018 14:37:26 +0100
From: Michael Moese <mmoese@...e.de>
To: Johannes Thumshirn <jthumshirn@...e.de>
Cc: Linux Kernel Mailinglist <linux-kernel@...r.kernel.org>,
Michael Moese <mmoese@...e.de>,
Andreas Geißler <andreas.geissler@....de>,
Greg KH <gregkh@...uxfoundation.org>
Subject: Re: [PATCH 2/2] mcb: add Altera PCI ID to mcb-pci
Looks good.
Reviewed-by: Michael Moese <mmoese@...e.de>
On Tue, Feb 27, 2018 at 02:30:18PM +0100, Johannes Thumshirn wrote:
> 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@...e.de>
> Reported-by: Ben Turner <ben.turner@...et.com>
> Tested-by: Ben Turner <ben.turner@...et.com>
> Cc: Andreas Geißler <andreas.geissler@....de>
> Cc: Michael Moese <mmoese@...e.de>
> ---
> drivers/mcb/mcb-pci.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/mcb/mcb-pci.c b/drivers/mcb/mcb-pci.c
> index af4d2f26f1c6..286b32ca526f 100644
> --- a/drivers/mcb/mcb-pci.c
> +++ b/drivers/mcb/mcb-pci.c
> @@ -11,6 +11,7 @@
>
> #include <linux/module.h>
> #include <linux/pci.h>
> +#include <linux/pci_ids.h>
> #include <linux/mcb.h>
>
> #include "mcb-internal.h"
> @@ -117,6 +118,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
>
--
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
Powered by blists - more mailing lists