2005-10-22 00:32:59

by Chen, Justin

[permalink] [raw]
Subject: [PATCH] new hp diva console port

This patch adds the new ID 0x132a and configure the new PCI Diva console
port. This device support only 1 single console UART. Please apply.
Thanks,

Justin Chen

--- 8250_pci.c.orig 2005-10-18 15:56:50.148489501 -0700
+++ 8250_pci.c 2005-10-18 15:55:25.624076474 -0700
@@ -178,6 +178,7 @@ static int __devinit pci_hp_diva_init(st
rc = 4;
break;
case PCI_DEVICE_ID_HP_DIVA_POWERBAR:
+ case PCI_DEVICE_ID_HP_DIVA_HURRICANE:
rc = 1;
break;
}
--- pci_ids.h.orig 2005-10-18 16:02:56.864305321 -0700
+++ pci_ids.h 2005-10-18 16:03:54.002976496 -0700
@@ -710,6 +710,7 @@
#define PCI_DEVICE_ID_HP_DIVA_EVEREST 0x1282
#define PCI_DEVICE_ID_HP_DIVA_AUX 0x1290
#define PCI_DEVICE_ID_HP_DIVA_RMP3 0x1301
+#define PCI_DEVICE_ID_HP_DIVA_HURRICANE 0x132a
#define PCI_DEVICE_ID_HP_CISSA 0x3220
#define PCI_DEVICE_ID_HP_CISSB 0x3230
#define PCI_DEVICE_ID_HP_ZX2_IOC 0x4031


2005-10-24 18:32:45

by Bjorn Helgaas

[permalink] [raw]
Subject: Re: [PATCH] new hp diva console port

On Friday 21 October 2005 6:30 pm, Chen, Justin wrote:
> This patch adds the new ID 0x132a and configure the new PCI Diva console
> port. This device support only 1 single console UART. Please apply.

It'll be easier to apply this if you follow the guidelines in
Documentation/SubmittingPatches. For example, the patch should
apply with "patch -p1", add "Signed-off-by:", etc.

> --- 8250_pci.c.orig 2005-10-18 15:56:50.148489501 -0700
> +++ 8250_pci.c 2005-10-18 15:55:25.624076474 -0700
> @@ -178,6 +178,7 @@ static int __devinit pci_hp_diva_init(st
> rc = 4;
> break;
> case PCI_DEVICE_ID_HP_DIVA_POWERBAR:
> + case PCI_DEVICE_ID_HP_DIVA_HURRICANE:
> rc = 1;
> break;
> }
> --- pci_ids.h.orig 2005-10-18 16:02:56.864305321 -0700
> +++ pci_ids.h 2005-10-18 16:03:54.002976496 -0700
> @@ -710,6 +710,7 @@
> #define PCI_DEVICE_ID_HP_DIVA_EVEREST 0x1282
> #define PCI_DEVICE_ID_HP_DIVA_AUX 0x1290
> #define PCI_DEVICE_ID_HP_DIVA_RMP3 0x1301
> +#define PCI_DEVICE_ID_HP_DIVA_HURRICANE 0x132a
> #define PCI_DEVICE_ID_HP_CISSA 0x3220
> #define PCI_DEVICE_ID_HP_CISSB 0x3230
> #define PCI_DEVICE_ID_HP_ZX2_IOC 0x4031
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

2005-10-24 21:39:10

by Chen, Justin

[permalink] [raw]
Subject: RE: [PATCH] new hp diva console port

On Monday, October 24, 2005 11:33 AM, Helgaas, Bjorn wrote:
>It'll be easier to apply this if you follow the guidelines in
>Documentation/SubmittingPatches. For example, the patch
>should apply with "patch -p1", add "Signed-off-by:", etc.

Okay, here is the adjusted format and the signature -

This patch adds the new ID 0x132a and configure the new PCI Diva console
port. This device support only 1 single console UART. Please apply.
Thanks,

Signed-off-by: Justin Chen <[email protected]>

------------------------------------------------------------------------
-------------------------------------------------------
diff -uprN -X dontdiff linux-vanilla/drivers/serial/8250_pci.c
ia-26126/drivers/serial/8250_pci.c
--- linux-vanilla/drivers/serial/8250_pci.c 2005-10-24
12:32:01.817851490 -0700
+++ ia-26126/drivers/serial/8250_pci.c 2005-10-24 12:24:13.628404100
-0700
@@ -177,6 +177,7 @@ static int __devinit pci_hp_diva_init(st
rc = 4;
break;
case PCI_DEVICE_ID_HP_DIVA_POWERBAR:
+ case PCI_DEVICE_ID_HP_DIVA_HURRICANE:
rc = 1;
break;
}
diff -uprN -X dontdiff linux-vanilla/include/linux/pci_ids.h
ia-26126/include/linux/pci_ids.h
--- linux-vanilla/include/linux/pci_ids.h 2005-10-24
12:31:49.661601638 -0700
+++ ia-26126/include/linux/pci_ids.h 2005-10-24 12:23:31.366685868
-0700
@@ -711,6 +711,7 @@
#define PCI_DEVICE_ID_HP_DIVA_EVEREST 0x1282
#define PCI_DEVICE_ID_HP_DIVA_AUX 0x1290
#define PCI_DEVICE_ID_HP_DIVA_RMP3 0x1301
+#define PCI_DEVICE_ID_HP_DIVA_HURRICANE 0x132a
#define PCI_DEVICE_ID_HP_CISSA 0x3220
#define PCI_DEVICE_ID_HP_CISSB 0x3230
#define PCI_DEVICE_ID_HP_ZX2_IOC 0x4031
------------------------------------------------------------------------
--------------------------------------------------------------

2005-10-24 22:35:24

by Russell King

[permalink] [raw]
Subject: Re: [PATCH] new hp diva console port

On Mon, Oct 24, 2005 at 02:38:02PM -0700, Chen, Justin wrote:
> On Monday, October 24, 2005 11:33 AM, Helgaas, Bjorn wrote:
> >It'll be easier to apply this if you follow the guidelines in
> >Documentation/SubmittingPatches. For example, the patch
> >should apply with "patch -p1", add "Signed-off-by:", etc.
>
> Okay, here is the adjusted format and the signature -
>
> This patch adds the new ID 0x132a and configure the new PCI Diva console
> port. This device support only 1 single console UART. Please apply.
> Thanks,
>
> Signed-off-by: Justin Chen <[email protected]>

I've actually already committed this, via Andrew Morton. Note,
however, that your mailer has wrapped the patch, so maybe it's
better for you to attach patches (as text/plain) to your emails?

> ------------------------------------------------------------------------
> -------------------------------------------------------
> diff -uprN -X dontdiff linux-vanilla/drivers/serial/8250_pci.c
> ia-26126/drivers/serial/8250_pci.c
> --- linux-vanilla/drivers/serial/8250_pci.c 2005-10-24
> 12:32:01.817851490 -0700
> +++ ia-26126/drivers/serial/8250_pci.c 2005-10-24 12:24:13.628404100
> -0700
> @@ -177,6 +177,7 @@ static int __devinit pci_hp_diva_init(st
> rc = 4;
> break;
> case PCI_DEVICE_ID_HP_DIVA_POWERBAR:
> + case PCI_DEVICE_ID_HP_DIVA_HURRICANE:
> rc = 1;
> break;
> }
> diff -uprN -X dontdiff linux-vanilla/include/linux/pci_ids.h
> ia-26126/include/linux/pci_ids.h
> --- linux-vanilla/include/linux/pci_ids.h 2005-10-24
> 12:31:49.661601638 -0700
> +++ ia-26126/include/linux/pci_ids.h 2005-10-24 12:23:31.366685868
> -0700
> @@ -711,6 +711,7 @@
> #define PCI_DEVICE_ID_HP_DIVA_EVEREST 0x1282
> #define PCI_DEVICE_ID_HP_DIVA_AUX 0x1290
> #define PCI_DEVICE_ID_HP_DIVA_RMP3 0x1301
> +#define PCI_DEVICE_ID_HP_DIVA_HURRICANE 0x132a
> #define PCI_DEVICE_ID_HP_CISSA 0x3220
> #define PCI_DEVICE_ID_HP_CISSB 0x3230
> #define PCI_DEVICE_ID_HP_ZX2_IOC 0x4031
> ------------------------------------------------------------------------
> --------------------------------------------------------------

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 Serial core