Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp748794pxj; Thu, 10 Jun 2021 11:43:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgExKQcA1+Nt7bq6pS8XmRWnKQFKsw2NaCxzSc4MamX+R4QRJdYCyur2QN16nw3LD5U3Tk X-Received: by 2002:a17:906:a281:: with SMTP id i1mr39452ejz.307.1623350586729; Thu, 10 Jun 2021 11:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623350586; cv=none; d=google.com; s=arc-20160816; b=LrWUHEBvFA5TAJWnmYX8RW1xsBpEcX4O2oRH1UTudMzle3WyHx8Q9BiQOsRvrDKsfs VlhiT13W4jehPOWTNvXGzvZOcO0W6fpKQ8+aGI8dkhplstRBY+z9EuByCSL28jSQjLoT eQf4ibr3amkve4W4h7gsg187YJEuxRFYSngW6y2MFh2R27wzt1bvoUIJrfPRPUH7maEq W5Gj+10N6IKsSSUkT8JRBmYZfxQpGk6E+m03cGcXgEpwLFbcvNzmO4LzYI5qdR+yW94Q YnwObD1pg2ZjoMHUlTOIHJNSU/2H7oNiIXgZiSusyoxZY/i03qZT8DRdtq/lFP5eJlWA VlrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=T0+Fn0SlqvI3mGrtLA4NGe36AGvrQKHIb8QHKcXV4wU=; b=YQdpVH5h4STr3UeqWgyJsPpYDUd+2F/x+LWApdhLKq7F+ENIsd/1BtO/MvwYdzclj+ ifjhbu6MRSrFTh4bWvkqKKCSFSagYVCqKOwOuzGR9k0qTLriuf73Buo9rHkgmnRU1Lo9 r8EOTcIN+Rdm70+H/mjtX+kcyJN+sBLfcp6rtqHrwNt5mzUCQ6VpNBVMZLO6RQh+v/Di Nkf6AEOHRBx7dnEcTNYsveFOg+DbW54snJt4U11qri70Z9h2Cyf2PhmS00Cfm5m63/29 PBQrZoXX6dyIfvKqmJzp6+afOiB+Vnj7UrZXxCDhNsgwr0CttrZIJjU2jXdvxYl/+UNt PH6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bh4si3438597ejb.358.2021.06.10.11.42.42; Thu, 10 Jun 2021 11:43:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231262AbhFJSk7 (ORCPT + 99 others); Thu, 10 Jun 2021 14:40:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231261AbhFJSk5 (ORCPT ); Thu, 10 Jun 2021 14:40:57 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5E25CC061574; Thu, 10 Jun 2021 11:39:00 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id B7BA89200B4; Thu, 10 Jun 2021 20:38:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id B385E92009E; Thu, 10 Jun 2021 20:38:59 +0200 (CEST) Date: Thu, 10 Jun 2021 20:38:59 +0200 (CEST) From: "Maciej W. Rozycki" To: Greg Kroah-Hartman , Jiri Slaby cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] serial: 8250: Dissociate 4MHz Titan ports from Oxford ports In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Oxford Semiconductor PCIe (Tornado) serial port devices have their baud base set incorrectly, however their `pciserial_board' entries have been reused for Titan serial port devices. Define own entries for the latter devices then, carrying over the settings, so that Oxford entries can be fixed. Signed-off-by: Maciej W. Rozycki --- drivers/tty/serial/8250/8250_pci.c | 44 +++++++++++++++++++++++++++++++------ 1 file changed, 38 insertions(+), 6 deletions(-) linux-serial-8250-titan-driver-data.diff Index: linux-malta-cbus-uart/drivers/tty/serial/8250/8250_pci.c =================================================================== --- linux-malta-cbus-uart.orig/drivers/tty/serial/8250/8250_pci.c +++ linux-malta-cbus-uart/drivers/tty/serial/8250/8250_pci.c @@ -2972,6 +2972,10 @@ enum pci_board_num_t { pbn_sunix_pci_4s, pbn_sunix_pci_8s, pbn_sunix_pci_16s, + pbn_titan_1_4000000, + pbn_titan_2_4000000, + pbn_titan_4_4000000, + pbn_titan_8_4000000, pbn_moxa8250_2p, pbn_moxa8250_4p, pbn_moxa8250_8p, @@ -3759,6 +3763,34 @@ static struct pciserial_board pci_boards .base_baud = 921600, .uart_offset = 0x8, }, + [pbn_titan_1_4000000] = { + .flags = FL_BASE0, + .num_ports = 1, + .base_baud = 4000000, + .uart_offset = 0x200, + .first_offset = 0x1000, + }, + [pbn_titan_2_4000000] = { + .flags = FL_BASE0, + .num_ports = 2, + .base_baud = 4000000, + .uart_offset = 0x200, + .first_offset = 0x1000, + }, + [pbn_titan_4_4000000] = { + .flags = FL_BASE0, + .num_ports = 4, + .base_baud = 4000000, + .uart_offset = 0x200, + .first_offset = 0x1000, + }, + [pbn_titan_8_4000000] = { + .flags = FL_BASE0, + .num_ports = 8, + .base_baud = 4000000, + .uart_offset = 0x200, + .first_offset = 0x1000, + }, [pbn_moxa8250_2p] = { .flags = FL_BASE1, .num_ports = 2, @@ -4703,22 +4735,22 @@ static const struct pci_device_id serial pbn_b0_4_921600 }, { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_100E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, - pbn_oxsemi_1_4000000 }, + pbn_titan_1_4000000 }, { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_200E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, - pbn_oxsemi_2_4000000 }, + pbn_titan_2_4000000 }, { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_400E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, - pbn_oxsemi_4_4000000 }, + pbn_titan_4_4000000 }, { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_800E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, - pbn_oxsemi_8_4000000 }, + pbn_titan_8_4000000 }, { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_200EI, PCI_ANY_ID, PCI_ANY_ID, 0, 0, - pbn_oxsemi_2_4000000 }, + pbn_titan_2_4000000 }, { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_200EISI, PCI_ANY_ID, PCI_ANY_ID, 0, 0, - pbn_oxsemi_2_4000000 }, + pbn_titan_2_4000000 }, { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_200V3, PCI_ANY_ID, PCI_ANY_ID, 0, 0, pbn_b0_bt_2_921600 },