linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] serial: exar: Add support for Sealevel 7xxxC serial cards
@ 2023-01-19 16:23 Matthew Howell
  2023-01-19 16:57 ` Greg KH
  2023-01-19 16:57 ` Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Matthew Howell @ 2023-01-19 16:23 UTC (permalink / raw)
  To: linux-serial
  Cc: gregkh, jeff.baldwin, ryan.wenglarz, matthew.howell,
	darren.beeson


Add support for Sealevel 7xxxC serial cards.

This patch:
* Adds IDs to recognize 7xxxC cards from Sealevel Systems.
* Updates exar_pci_probe() to set nr_ports to last two bytes of primary
dev ID for these cards.

Signed-off-by: Matthew Howell <matthew.howell@sealevel.com>

Moved "This patch..." above signed-off line.

Let me know if I need to make any more changes.

diff --git a/drivers/tty/serial/8250/8250_exar.c
b/drivers/tty/serial/8250/8250_exar.c
index 314a05e00..64770c62b 100644
--- a/drivers/tty/serial/8250/8250_exar.c
+++ b/drivers/tty/serial/8250/8250_exar.c
@@ -43,6 +43,12 @@
 #define PCI_DEVICE_ID_EXAR_XR17V4358		0x4358
 #define PCI_DEVICE_ID_EXAR_XR17V8358		0x8358

+#define PCI_DEVICE_ID_SEALEVEL_710xC		0x1001
+#define PCI_DEVICE_ID_SEALEVEL_720xC		0x1002
+#define PCI_DEVICE_ID_SEALEVEL_740xC		0x1004
+#define PCI_DEVICE_ID_SEALEVEL_780xC		0x1008
+#define PCI_DEVICE_ID_SEALEVEL_716xC		0x1010
+
 #define UART_EXAR_INT0		0x80
 #define UART_EXAR_8XMODE	0x88	/* 8X sampling rate select */
 #define UART_EXAR_SLEEP	0x8b	/* Sleep mode */
@@ -638,6 +644,8 @@ exar_pci_probe(struct pci_dev *pcidev, const struct
pci_device_id *ent)
 		nr_ports = BIT(((pcidev->device & 0x38) >> 3) - 1);
 	else if (board->num_ports)
 		nr_ports = board->num_ports;
+	else if (pcidev->vendor == PCI_VENDOR_ID_SEALEVEL)
+		nr_ports = pcidev->device & 0xff;
 	else
 		nr_ports = pcidev->device & 0x0f;

@@ -864,6 +872,12 @@ static const struct pci_device_id exar_pci_tbl[] = {
 	EXAR_DEVICE(COMMTECH, 4224PCI335, pbn_fastcom335_4),
 	EXAR_DEVICE(COMMTECH, 2324PCI335, pbn_fastcom335_4),
 	EXAR_DEVICE(COMMTECH, 2328PCI335, pbn_fastcom335_8),
+
+	EXAR_DEVICE(SEALEVEL, 710xC, pbn_exar_XR17V35x),
+	EXAR_DEVICE(SEALEVEL, 720xC, pbn_exar_XR17V35x),
+	EXAR_DEVICE(SEALEVEL, 740xC, pbn_exar_XR17V35x),
+	EXAR_DEVICE(SEALEVEL, 780xC, pbn_exar_XR17V35x),
+	EXAR_DEVICE(SEALEVEL, 716xC, pbn_exar_XR17V35x),
 	{ 0, }
 };
 MODULE_DEVICE_TABLE(pci, exar_pci_tbl);

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

* Re: [PATCH v2] serial: exar: Add support for Sealevel 7xxxC serial cards
  2023-01-19 16:23 [PATCH v2] serial: exar: Add support for Sealevel 7xxxC serial cards Matthew Howell
@ 2023-01-19 16:57 ` Greg KH
  2023-01-19 16:57 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2023-01-19 16:57 UTC (permalink / raw)
  To: Matthew Howell
  Cc: linux-serial, jeff.baldwin, ryan.wenglarz, matthew.howell,
	darren.beeson

On Thu, Jan 19, 2023 at 11:23:51AM -0500, Matthew Howell wrote:
> 
> Add support for Sealevel 7xxxC serial cards.
> 
> This patch:
> * Adds IDs to recognize 7xxxC cards from Sealevel Systems.
> * Updates exar_pci_probe() to set nr_ports to last two bytes of primary
> dev ID for these cards.
> 
> Signed-off-by: Matthew Howell <matthew.howell@sealevel.com>
> 
> Moved "This patch..." above signed-off line.
> 
> Let me know if I need to make any more changes.

These lines need to go below the --- line, as the documentation asks,
otherwise they will show up in the changelog.

Also you need to list what changed in v2, again the documentation has
examples.

v3 please?

thanks,

greg k-h

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

* Re: [PATCH v2] serial: exar: Add support for Sealevel 7xxxC serial cards
  2023-01-19 16:23 [PATCH v2] serial: exar: Add support for Sealevel 7xxxC serial cards Matthew Howell
  2023-01-19 16:57 ` Greg KH
@ 2023-01-19 16:57 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2023-01-19 16:57 UTC (permalink / raw)
  To: Matthew Howell
  Cc: linux-serial, jeff.baldwin, ryan.wenglarz, matthew.howell,
	darren.beeson

On Thu, Jan 19, 2023 at 11:23:51AM -0500, Matthew Howell wrote:
> 
> Add support for Sealevel 7xxxC serial cards.
> 
> This patch:
> * Adds IDs to recognize 7xxxC cards from Sealevel Systems.
> * Updates exar_pci_probe() to set nr_ports to last two bytes of primary
> dev ID for these cards.
> 
> Signed-off-by: Matthew Howell <matthew.howell@sealevel.com>

Also your From: line does not match up with this :(


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

end of thread, other threads:[~2023-01-19 16:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-19 16:23 [PATCH v2] serial: exar: Add support for Sealevel 7xxxC serial cards Matthew Howell
2023-01-19 16:57 ` Greg KH
2023-01-19 16:57 ` Greg KH

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