public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 8250_pci: Add IBM Saturn serial card
@ 2009-10-13 23:40 Benjamin Herrenschmidt
  2009-10-14  2:41 ` Andrew Morton
  2009-10-14 11:48 ` Alan Cox
  0 siblings, 2 replies; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2009-10-13 23:40 UTC (permalink / raw)
  To: Andrew Morton
  Cc: linux-kernel@vger.kernel.org, Russell King, Alan Cox,
	Michael Reed

The IBM Saturn serial card has only one port. Without that fixup,
the kernel thinks it has two, which confuses userland setup and
admin tools as well.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---

Andrew & Others on CC... not sure who takes care of patches to
that driver nowadays. Should I send directly to Linus ?

diff --git a/drivers/serial/8250_pci.c b/drivers/serial/8250_pci.c
index e7108e7..7b5ff09 100644
--- a/drivers/serial/8250_pci.c
+++ b/drivers/serial/8250_pci.c
@@ -1561,6 +1561,7 @@ enum pci_board_num_t {
 	pbn_exar_XR17C152,
 	pbn_exar_XR17C154,
 	pbn_exar_XR17C158,
+	pbn_exar_ibm_saturn,
 	pbn_pasemi_1682M,
 	pbn_ni8430_2,
 	pbn_ni8430_4,
@@ -2146,6 +2147,13 @@ static struct pciserial_board pci_boards[] __devinitdata = {
 		.base_baud	= 921600,
 		.uart_offset	= 0x200,
 	},
+	[pbn_exar_ibm_saturn] = {
+		.flags		= FL_BASE0,
+		.num_ports	= 1,
+		.base_baud	= 921600,
+		.uart_offset	= 0x200,
+	},
+
 	/*
 	 * PA Semi PWRficient PA6T-1682M on-chip UART
 	 */
@@ -2649,6 +2657,9 @@ static struct pci_device_id serial_pci_tbl[] = {
 		PCI_SUBVENDOR_ID_CONNECT_TECH,
 		PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_8_485, 0, 0,
 		pbn_b0_8_1843200_200 },
+	{	PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C152,
+		PCI_VENDOR_ID_IBM, PCI_SUBDEVICE_ID_IBM_SATURN_SERIAL_ONE_PORT,
+		0, 0, pbn_exar_ibm_saturn },
 
 	{	PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_U530,
 		PCI_ANY_ID, PCI_ANY_ID, 0, 0,
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index 0d96be9..06a7b94 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -481,6 +481,8 @@
 #define PCI_DEVICE_ID_IBM_ICOM_V2_ONE_PORT_RVX_ONE_PORT_MDM	0x0251
 #define PCI_DEVICE_ID_IBM_ICOM_V2_ONE_PORT_RVX_ONE_PORT_MDM_PCIE 0x0361
 #define PCI_DEVICE_ID_IBM_ICOM_FOUR_PORT_MODEL	0x252
+#define PCI_SUBVENDOR_ID_IBM		0x1014
+#define PCI_SUBDEVICE_ID_IBM_SATURN_SERIAL_ONE_PORT	0x03d4
 
 #define PCI_VENDOR_ID_UNISYS		0x1018
 #define PCI_DEVICE_ID_UNISYS_DMA_DIRECTOR 0x001C







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

* Re: [PATCH] 8250_pci: Add IBM Saturn serial card
  2009-10-13 23:40 [PATCH] 8250_pci: Add IBM Saturn serial card Benjamin Herrenschmidt
@ 2009-10-14  2:41 ` Andrew Morton
  2009-10-14  3:26   ` Benjamin Herrenschmidt
  2009-10-14 11:48 ` Alan Cox
  1 sibling, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2009-10-14  2:41 UTC (permalink / raw)
  To: Benjamin Herrenschmidt
  Cc: linux-kernel@vger.kernel.org, Russell King, Alan Cox,
	Michael Reed, stable

On Wed, 14 Oct 2009 10:40:53 +1100 Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:

> The IBM Saturn serial card has only one port. Without that fixup,
> the kernel thinks it has two, which confuses userland setup and
> admin tools as well.
> 

That sounds seriousish.  I assume it's a long-standing problem, but we
only just noticed it?

I'll cc -stable because it's so simple ;)

> 
> Andrew & Others on CC... not sure who takes care of patches to
> that driver nowadays. Should I send directly to Linus ?

I'll grab them if I see them, especially simple ones.  Sometimes Alan
grabs them too.

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

* Re: [PATCH] 8250_pci: Add IBM Saturn serial card
  2009-10-14  2:41 ` Andrew Morton
@ 2009-10-14  3:26   ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2009-10-14  3:26 UTC (permalink / raw)
  To: Andrew Morton
  Cc: linux-kernel@vger.kernel.org, Russell King, Alan Cox,
	Michael Reed, stable

On Tue, 2009-10-13 at 19:41 -0700, Andrew Morton wrote:
> On Wed, 14 Oct 2009 10:40:53 +1100 Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> 
> > The IBM Saturn serial card has only one port. Without that fixup,
> > the kernel thinks it has two, which confuses userland setup and
> > admin tools as well.
> > 
> 
> That sounds seriousish.  I assume it's a long-standing problem, but we
> only just noticed it?

No it's a brand new piece of HW we haven't released yet :-)

> I'll cc -stable because it's so simple ;)

Heh, thanks. We need it into distro indeed.

> > Andrew & Others on CC... not sure who takes care of patches to
> > that driver nowadays. Should I send directly to Linus ?
> 
> I'll grab them if I see them, especially simple ones.  Sometimes Alan
> grabs them too.

Thanks.

Cheers,
Ben.



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

* Re: [PATCH] 8250_pci: Add IBM Saturn serial card
  2009-10-13 23:40 [PATCH] 8250_pci: Add IBM Saturn serial card Benjamin Herrenschmidt
  2009-10-14  2:41 ` Andrew Morton
@ 2009-10-14 11:48 ` Alan Cox
  2009-10-14 21:01   ` Benjamin Herrenschmidt
  1 sibling, 1 reply; 5+ messages in thread
From: Alan Cox @ 2009-10-14 11:48 UTC (permalink / raw)
  To: Benjamin Herrenschmidt
  Cc: Andrew Morton, linux-kernel@vger.kernel.org, Russell King,
	Michael Reed

On Wed, 14 Oct 2009 10:40:53 +1100
Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:

> The IBM Saturn serial card has only one port. Without that fixup,
> the kernel thinks it has two, which confuses userland setup and
> admin tools as well.
> 
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Looks good to me but can you drop a space between the last DEVICE_ID and
the VENDOR_ID bit in the header to follow the style ?

> ---

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

* Re: [PATCH] 8250_pci: Add IBM Saturn serial card
  2009-10-14 11:48 ` Alan Cox
@ 2009-10-14 21:01   ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2009-10-14 21:01 UTC (permalink / raw)
  To: Alan Cox
  Cc: Andrew Morton, linux-kernel@vger.kernel.org, Russell King,
	Michael Reed

On Wed, 2009-10-14 at 12:48 +0100, Alan Cox wrote:
> On Wed, 14 Oct 2009 10:40:53 +1100
> Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> 
> > The IBM Saturn serial card has only one port. Without that fixup,
> > the kernel thinks it has two, which confuses userland setup and
> > admin tools as well.
> > 
> > Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> 
> Looks good to me but can you drop a space between the last DEVICE_ID and
> the VENDOR_ID bit in the header to follow the style ?

Ok. It was between the last IBM device ID and the IBM subvendor, I
wasn't sure if that warranted a blank line :-)

I'll send a new patch from work.

Cheers,
Ben.




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

end of thread, other threads:[~2009-10-14 21:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-13 23:40 [PATCH] 8250_pci: Add IBM Saturn serial card Benjamin Herrenschmidt
2009-10-14  2:41 ` Andrew Morton
2009-10-14  3:26   ` Benjamin Herrenschmidt
2009-10-14 11:48 ` Alan Cox
2009-10-14 21:01   ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox