stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Soeren Grunewald <soeren.grunewald@desy.de>
To: Jiri Slaby <jslaby@suse.cz>, stable@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3.12 25/72] serial: 8250_pci: Add support for 16 port Exar boards
Date: Mon, 23 Nov 2015 15:18:48 +0100	[thread overview]
Message-ID: <56532048.4090701@desy.de> (raw)
In-Reply-To: <3e8c9dd24acc11db838781ca05305ed02484f2c3.1448283890.git.jslaby@suse.cz>

Dear Jiri,

You should also add upstream commit 899f0c1c7dbcc487fdc8756a49ff70b1d5d75f89

Greg had a merge conflict in 4-1.y with another back-ported patch. But 
in 3.12 this shouldn't be the case.
-- 
Cheers,
Soeren


On 11/23/2015 02:08 PM, Jiri Slaby wrote:
> From: Soeren Grunewald <soeren.grunewald@desy.de>
>
> 3.12-stable review patch.  If anyone has any objections, please let me know.
>
> ===============
>
> commit 96a5d18bc1338786fecac73599f1681f59a59a8e upstream.
>
> The Exar XR17V358 chip usually provides only 8 ports. But two chips can be
> combined to act as a single 16 port chip. Therefor one chip is configured
> as master the second as slave by connecting the mode pin to VCC (master)
> or GND (slave).
>
> Then the master chip is reporting a different device-id depending on
> whether a slave is detected or not. The UARTs 8-15 are addressed from
> 0x2000-0x3fff. So the offset of 0x400 from UART to UART can be used to
> address all 16 ports as before.
>
> See: https://www.exar.com/common/content/document.ashx?id=1587 page 11
>
> Signed-off-by: Soeren Grunewald <soeren.grunewald@desy.de>
> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
> ---
>   drivers/tty/serial/8250/8250_pci.c | 25 +++++++++++++++++++++++--
>   1 file changed, 23 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c
> index eac50ec4c70d..bdbfb25ace6d 100644
> --- a/drivers/tty/serial/8250/8250_pci.c
> +++ b/drivers/tty/serial/8250/8250_pci.c
> @@ -1574,6 +1574,8 @@ pci_wch_ch353_setup(struct serial_private *priv,
>   #define PCI_DEVICE_ID_SUNIX_1999	0x1999
>
>
> +#define PCI_DEVICE_ID_EXAR_XR17V8358	0x8358
> +
>   /* Unknown vendors/cards - this should not be in linux/pci_ids.h */
>   #define PCI_SUBDEVICE_ID_UNKNOWN_0x1584	0x1584
>   #define PCI_SUBDEVICE_ID_UNKNOWN_0x1588	0x1588
> @@ -2029,6 +2031,13 @@ static struct pci_serial_quirk pci_serial_quirks[] __refdata = {
>   		.subdevice	= PCI_ANY_ID,
>   		.setup		= pci_xr17v35x_setup,
>   	},
> +	{
> +		.vendor = PCI_VENDOR_ID_EXAR,
> +		.device = PCI_DEVICE_ID_EXAR_XR17V8358,
> +		.subvendor	= PCI_ANY_ID,
> +		.subdevice	= PCI_ANY_ID,
> +		.setup		= pci_xr17v35x_setup,
> +	},
>   	/*
>   	 * Xircom cards
>   	 */
> @@ -2456,6 +2465,7 @@ enum pci_board_num_t {
>   	pbn_exar_XR17V352,
>   	pbn_exar_XR17V354,
>   	pbn_exar_XR17V358,
> +	pbn_exar_XR17V8358,
>   	pbn_exar_ibm_saturn,
>   	pbn_pasemi_1682M,
>   	pbn_ni8430_2,
> @@ -3121,6 +3131,14 @@ static struct pciserial_board pci_boards[] = {
>   		.reg_shift	= 0,
>   		.first_offset	= 0,
>   	},
> +	[pbn_exar_XR17V8358] = {
> +		.flags		= FL_BASE0,
> +		.num_ports	= 16,
> +		.base_baud	= 7812500,
> +		.uart_offset	= 0x400,
> +		.reg_shift	= 0,
> +		.first_offset	= 0,
> +	},
>   	[pbn_exar_ibm_saturn] = {
>   		.flags		= FL_BASE0,
>   		.num_ports	= 1,
> @@ -4454,7 +4472,7 @@ static struct pci_device_id serial_pci_tbl[] = {
>   		0,
>   		0, pbn_exar_XR17C158 },
>   	/*
> -	 * Exar Corp. XR17V35[248] Dual/Quad/Octal PCIe UARTs
> +	 * Exar Corp. XR17V[48]35[248] Dual/Quad/Octal/Hexa PCIe UARTs
>   	 */
>   	{	PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17V352,
>   		PCI_ANY_ID, PCI_ANY_ID,
> @@ -4468,7 +4486,10 @@ static struct pci_device_id serial_pci_tbl[] = {
>   		PCI_ANY_ID, PCI_ANY_ID,
>   		0,
>   		0, pbn_exar_XR17V358 },
> -
> +	{	PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17V8358,
> +		PCI_ANY_ID, PCI_ANY_ID,
> +		0,
> +		0, pbn_exar_XR17V8358 },
>   	/*
>   	 * Topic TP560 Data/Fax/Voice 56k modem (reported by Evan Clarke)
>   	 */
>

  reply	other threads:[~2015-11-23 14:18 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-23 13:07 [PATCH 3.12 00/72] 3.12.51-stable review Jiri Slaby
2015-11-23 13:07 ` [PATCH 3.12 01/72] dm btree remove: fix a bug when rebalancing nodes after removal Jiri Slaby
2015-11-23 13:07 ` [PATCH 3.12 02/72] iwlwifi: dvm: fix D3 firmware PN programming Jiri Slaby
2015-11-23 13:07 ` [PATCH 3.12 03/72] iwlwifi: fix firmware filename for 3160 Jiri Slaby
2015-11-23 13:07 ` [PATCH 3.12 04/72] iwlwifi: mvm: fix D3 firmware PN programming Jiri Slaby
2015-11-23 13:07 ` [PATCH 3.12 05/72] iommu/amd: Don't clear DTE flags when modifying it Jiri Slaby
2015-11-23 13:07 ` [PATCH 3.12 06/72] powerpc/rtas: Validate rtas.entry before calling enter_rtas() Jiri Slaby
2015-11-23 13:07 ` [PATCH 3.12 07/72] ASoC: wm8904: Correct number of EQ registers Jiri Slaby
2015-11-23 13:07 ` [PATCH 3.12 08/72] mm: make sendfile(2) killable Jiri Slaby
2015-11-23 13:07 ` [PATCH 3.12 09/72] sfc: Fix memcpy() with const destination compiler warning Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 10/72] power: bq24190_charger: suppress build warning Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 11/72] spi: fix pointer-integer size mismatch warning Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 12/72] drm/nouveau/gem: return only valid domain when there's only one Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 13/72] rbd: require stable pages if message data CRCs are enabled Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 14/72] Revert "ARM64: unwind: Fix PC calculation" Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 15/72] dm btree: fix leak of bufio-backed block in btree_split_beneath error path Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 16/72] xhci: handle no ping response error properly Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 17/72] xhci: Add spurious wakeup quirk for LynxPoint-LP controllers Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 18/72] xen-blkfront: check for null drvdata in blkback_changed (XenbusStateClosing) Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 19/72] module: Fix locking in symbol_put_addr() Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 20/72] crypto: api - Only abort operations on fatal signal Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 21/72] md/raid1: submit_bio_wait() returns 0 on success Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 22/72] md/raid10: " Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 23/72] mvsas: Fix NULL pointer dereference in mvs_slot_task_free Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 24/72] IB/cm: Fix rb-tree duplicate free and use-after-free Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 25/72] serial: 8250_pci: Add support for 16 port Exar boards Jiri Slaby
2015-11-23 14:18   ` Soeren Grunewald [this message]
2015-11-23 13:08 ` [PATCH 3.12 26/72] serial: 8250_pci: Add support for 12 " Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 27/72] mfd: wm5110: Add register patch for rev D chip Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 28/72] mfd: wm5110: Add register patch for rev E and above Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 29/72] mptfusion: prevent some memory corruption Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 30/72] audit: correctly record file names with different path name types Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 31/72] audit: create private file name copies when auditing inodes Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 32/72] libahci: Allow drivers to override start_engine Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 33/72] ahci: avoton port-disable reset-quirk Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 34/72] Fix regression in NFSRDMA server Jiri Slaby
2015-11-23 15:35   ` Tom Tucker
2015-11-23 13:08 ` [PATCH 3.12 35/72] irda: precedence bug in irlmp_seq_hb_idx() Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 36/72] macvtap: unbreak receiving of gro skb with frag list Jiri Slaby
2015-11-23 13:08 ` [PATCH 3.12 37/72] ppp: fix pppoe_dev deletion condition in pppoe_release() Jiri Slaby
2015-11-23 13:09 ` [PATCH 3.12 38/72] RDS-TCP: Recover correctly from pskb_pull()/pksb_trim() failure in rds_tcp_data_recv Jiri Slaby
2015-11-23 13:09 ` [PATCH 3.12 39/72] net/mlx4: Copy/set only sizeof struct mlx4_eqe bytes Jiri Slaby
2015-11-23 13:09 ` [PATCH 3.12 40/72] stmmac: Correctly report PTP capabilities Jiri Slaby
2015-11-23 13:09 ` [PATCH 3.12 41/72] ipmr: fix possible race resulting from improper usage of IP_INC_STATS_BH() in preemptible context Jiri Slaby
2015-11-23 13:09 ` [PATCH 3.12 42/72] qmi_wwan: fix entry for HP lt4112 LTE/HSPA+ Gobi 4G Module Jiri Slaby
2015-11-23 13:09 ` [PATCH 3.12 43/72] sit: fix sit0 percpu double allocations Jiri Slaby
2015-11-23 13:09 ` [PATCH 3.12 44/72] net: avoid NULL deref in inet_ctl_sock_destroy() Jiri Slaby
2015-11-23 13:09 ` [PATCH 3.12 45/72] net: fix a race in dst_release() Jiri Slaby
2015-11-23 13:09 ` [PATCH 3.12 46/72] virtio-net: drop NETIF_F_FRAGLIST Jiri Slaby
2015-11-23 13:09 ` [PATCH 3.12 47/72] RDS: verify the underlying transport exists before creating a connection Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 48/72] netfilter: xt_NFQUEUE: fix --queue-bypass regression Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 49/72] powerpc/pseries: Fix dedicated processor partition detection Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 50/72] bridge: superfluous skb->nfct check in br_nf_dev_queue_xmit Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 51/72] net:socket: set msg_namelen to 0 if msg_name is passed as NULL in msghdr struct from userland Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 52/72] ceph: make sure request isn't in any waiting list when kicking request Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 53/72] ceph: protect kick_requests() with mdsc->mutex Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 54/72] ceph: fix kick_requests() Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 55/72] net: sun4i-emac: fix memory leak on bad packet Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 56/72] macmace: add missing platform_set_drvdata() in mace_probe() Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 57/72] r8169: fix the incorrect tx descriptor version Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 58/72] r8169: disable L23 Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 59/72] serial: 8250_dw: Fix deadlock in LCR workaround Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 60/72] ARM: orion: Fix DSA platform device after mvmdio conversion Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 61/72] rbd: don't leak parent_spec in rbd_dev_probe_parent() Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 62/72] rbd: prevent kernel stack blow up on rbd map Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 63/72] KEYS: Fix race between key destruction and finding a keyring by name Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 64/72] KEYS: Fix crash when attempt to garbage collect an uninstantiated keyring Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 65/72] KVM: x86: Defining missing x86 vectors Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 66/72] KVM: x86: work around infinite loop in microcode when #AC is delivered Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 67/72] KVM: svm: unconditionally intercept #DB Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 68/72] KVM: x86: Fix far-jump to non-canonical check Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 69/72] KVM: x86: Use new is_noncanonical_address in _linearize Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 70/72] ipv6: addrconf: validate new MTU before applying it Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 71/72] x86/mm/hotplug: Pass sync_global_pgds() a correct argument in remove_pagetable() Jiri Slaby
2015-11-23 13:12 ` [PATCH 3.12 72/72] x86/mm/hotplug: Modify PGD entry when removing memory Jiri Slaby
2015-11-23 16:27 ` [PATCH 3.12 00/72] 3.12.51-stable review Guenter Roeck
2015-11-23 16:28   ` Guenter Roeck
2015-11-23 16:30 ` Shuah Khan
2015-11-24  3:42 ` Guenter Roeck
2015-11-30  9:06   ` Jiri Slaby

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56532048.4090701@desy.de \
    --to=soeren.grunewald@desy.de \
    --cc=jslaby@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).