Bug 228781 - Rudimentary support in puc(4) for Exar XR17V352 serial chip
Summary: Rudimentary support in puc(4) for Exar XR17V352 serial chip
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Some People
Assignee: Conrad Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-06 11:30 UTC by peo
Modified: 2018-06-06 16:48 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description peo 2018-06-06 11:30:32 UTC
I had a VScom 200E dual port serial card that did not register with puc, but pciconfig identified the chip as an Exar XR17V352.

I don't think the patch addresses the advanced functions in the chip but I only needed 4800bps:

uart4: <Non-standard ns8250 class UART with FIFOs> at port 1 on puc0
uart5: <Non-standard ns8250 class UART with FIFOs> at port 2 on puc0

Here is the patch:

--- pucdata.c-orig      2018-06-05 09:55:49.988823000 +0200
+++ pucdata.c   2018-06-05 17:48:19.344182000 +0200
@@ -695,6 +695,13 @@
            .config_function = puc_config_exar_pcie
        },

+        {   0x13a8, 0x0352, 0xffff, 0,
+            "Exar XR17V3521",
+            125000000,
+            PUC_PORT_2S, 0x10, 0, -1,
+            .config_function = puc_config_exar_pcie
+        },
+
        /*
         * The Advantech PCI-1602 Rev. A use the first two ports of an
Oxford
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-06-06 16:48:14 UTC
A commit references this bug:

Author: cem
Date: Wed Jun  6 16:47:33 UTC 2018
New revision: 334722
URL: https://svnweb.freebsd.org/changeset/base/334722

Log:
  puc(4): Add provisional support for Exar XR17V352

  Reportedly, this is sufficient for 4800bps use, but maybe not any better.

  PR:		228781
  Submitted by:	peo AT nethead.se

Changes:
  head/sys/dev/puc/pucdata.c