Re: [PATCH] serial/8250: Add support for later SUNIX (TIMEDIA) boards.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 23, 2013 at 08:59:32PM +1100, Stephen Chivers wrote:
> Add support for later SUNIX (TIMEDIA) Universal PCI Single and Multi-Port
> Communications Boards.
> 
> These boards have PCI Vendor ID 1fd4 with device ID 1999 but otherwise
> appear to be the same as the TIMEDIA boards already supported by 8250_pci.c
> 
> Tested with the two port serial board part number SER5037A.
> 
> Signed-off-by: Stephen Chivers <schivers@xxxxxxx>
> ---
>  drivers/tty/serial/8250/8250_pci.c |   18 ++++++++++++++++++
>  include/linux/pci_ids.h            |    3 +++
>  2 files changed, 21 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c
> index 3b0cc3a..47b3dac 100644
> --- a/drivers/tty/serial/8250/8250_pci.c
> +++ b/drivers/tty/serial/8250/8250_pci.c
> @@ -1912,6 +1912,17 @@ static struct pci_serial_quirk pci_serial_quirks[] __refdata = {
>  		.setup		= pci_siig_setup,
>  	},
>  	/*
> +	 * SUNIX
> +	 */
> +	{
> +		.vendor		= PCI_VENDOR_ID_SUNIX,
> +		.device		= PCI_DEVICE_ID_SUNIX_1999,
> +		.subvendor	= PCI_VENDOR_ID_SUNIX,
> +		.subdevice	= PCI_ANY_ID,
> +		.init		= pci_timedia_init,
> +		.setup		= pci_timedia_setup,
> +	},
> +	/*
>  	 * Titan cards
>  	 */
>  	{
> @@ -4180,6 +4191,13 @@ static struct pci_device_id serial_pci_tbl[] = {
>  		pbn_b0_bt_1_921600 },
>  
>  	/*
> +	 * SUNIX
> +	 */
> +	{	PCI_VENDOR_ID_SUNIX, PCI_DEVICE_ID_SUNIX_1999,
> +		PCI_VENDOR_ID_SUNIX, PCI_ANY_ID, 0, 0,
> +		pbn_b0_bt_1_921600 },
> +
> +	/*
>  	 * AFAVLAB serial card, from Harald Welte <laforge@xxxxxxxxxxxx>
>  	 */
>  	{	PCI_VENDOR_ID_AFAVLAB, PCI_DEVICE_ID_AFAVLAB_P028,
> diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
> index 19e8d7a..473b0eb 100644
> --- a/include/linux/pci_ids.h
> +++ b/include/linux/pci_ids.h
> @@ -2466,6 +2466,9 @@
>  #define PCI_DEVICE_ID_TEHUTI_3010	0x3010
>  #define PCI_DEVICE_ID_TEHUTI_3014	0x3014
>  
> +#define PCI_VENDOR_ID_SUNIX		0x1fd4
> +#define PCI_DEVICE_ID_SUNIX_1999	0x1999

Please read the top of this file about how you shouldn't be adding new
devices to it that are only referenced in one kernel file.

Please fix this up and resend.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux