Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp570577imm; Wed, 4 Jul 2018 02:05:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe4Vjytrx1Pl8kHl59/BEs1wHphGRPEQTv9lS6UDdcQ1XZWXByZss0FqxP6oQ8Bos5yKyxw X-Received: by 2002:a63:5866:: with SMTP id i38-v6mr1146710pgm.63.1530695151954; Wed, 04 Jul 2018 02:05:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530695151; cv=none; d=google.com; s=arc-20160816; b=zZFQQwWSSmbpq+0wXKIq/PqdJ5np+DID8md+8Zyrke45tHtKNLeWdf26PHrcrZEtpq uwj6kp7PIGSQVBl3kXBiGcOTQvpTb+Zw9cnMlKH9tHSEE4jhUzIVJvbQeqWWYBvcu66S GTgNanRvZvTRdGiAeWijCrF3wdqpTk8a47GakUapXKNelDUL3wn5s2yuZAZQDJajfUPS sTe9SaCeK5FmVut8MhgD2bH/YLae+nhjbBB9oUbwDIdGwlMaGw6+s1+PCZZHNAz2kTgl TyQgfG26Nl5HETtsBWuP6daAS9vjZY6zagUxJFx4V//IQIX+QGMSePZZfpkAuaHUL+9K rs2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=mpN89ai6+Xibe7/1Nhfr8SnDaEN0seF0X5gaMAii7rs=; b=CbT2Fv6b7u8GXimuz+gwQ+b7Ndf4O9UnN0jOXibNWegX+QNx3kFqqwV2g14cxnTI+E 6y7aaIQt1bkZFR438ZW0NrAdKsy3RGv0DBjwMFUbGpj05+0G8EJxdw96rICXM6b5iJ32 JbaTeptojJHhAjU9NjttwKz8cjlc7jmM4O1HF/SD7HWkzoirjF83STjWGNGTHyalhuvX 72MWo4cCQYlJQXQuaopKYzcFtgvB8aZ7uZN75NPII/4YR4woxkntiFGyf2ui3Vo2uXLQ wt8RekeDwyW6BK91W9EIf4bYVDFq7icll3pUaWCryaZijglfWSR1qE/guTTRiaeT3gSM Ow/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=Q+u7ukta; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v127-v6si2859368pgv.212.2018.07.04.02.05.37; Wed, 04 Jul 2018 02:05:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=Q+u7ukta; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934443AbeGDJER (ORCPT + 99 others); Wed, 4 Jul 2018 05:04:17 -0400 Received: from mail-eopbgr710052.outbound.protection.outlook.com ([40.107.71.52]:56126 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932376AbeGDJEK (ORCPT ); Wed, 4 Jul 2018 05:04:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector1-synaptics-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mpN89ai6+Xibe7/1Nhfr8SnDaEN0seF0X5gaMAii7rs=; b=Q+u7uktarnJzDMQVeONE9Y2Uxw+ZkH83E5GfBH2tbfAyel8Mmr6FZWl8AdPxdd+jKll5gmACNfNq1FoaIq9rqrtLA0STB/q9QyjShkrEpokIzxSpibCxKMk1oj7zGb+ciF+n7X4xc+boJoHR4jjwzKhwtfodoxhl8vqxiRbu4bM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; Received: from xhacker.debian (124.74.246.114) by MWHPR03MB2639.namprd03.prod.outlook.com (2603:10b6:300:46::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.26; Wed, 4 Jul 2018 09:04:06 +0000 Date: Wed, 4 Jul 2018 17:02:17 +0800 From: Jisheng Zhang To: Andy Shevchenko , Greg Kroah-Hartman , Jiri Slaby Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 2/3] serial: 8250: introduce get_divisor() and set_divisor() hook Message-ID: <20180704170217.190711ef@xhacker.debian> In-Reply-To: <20180704165908.4bb8b090@xhacker.debian> References: <20180704165908.4bb8b090@xhacker.debian> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: [124.74.246.114] X-ClientProxiedBy: TYAPR04CA0022.apcprd04.prod.outlook.com (2603:1096:404:15::34) To MWHPR03MB2639.namprd03.prod.outlook.com (2603:10b6:300:46::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c79730b0-8d11-4470-1d72-08d5e18d19cb X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:MWHPR03MB2639; X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2639;3:jymd4sFQoHODL2TqpCLTHc3iz7nmOZR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IQ+AHaSHnxhkBybnHKWIdmqcgE3KsCQz4oBQyhMQCCIZOaI+bCQ5gegjL21AMrPL59aLL5Kd87DYm5PK770dDwGS7fKUMRLQxSs7hXUDpKNBZ0iMD4DITtfVlMmYnb60jbZY3zg/Eb6GrrM8vJaU4dAuiD0uBnNzrKoYP1qO5gb3tE2k+QpgYRFweM476q9SWrpm8T6IvpFn2+k/cPr58GbjjgAy1IcixDLWeT8+lL49XhPS0uMgTof9aJgHdcmoZOnrcyF5lUJpAr2wYgEiPOorIaQqFYFoWyFFHEkOxEP9amwGTEtF4HxzS6h;4:ZnBSiZx/TCv27sLV4y2OHwFMkDw44tOCUS3US8VyIcWESCV5O6F2Yp2lKhcj5o4kR52lDjGs6syfZwbaV6pUsSXbxNAUlWUC3+w190zH1Aj0Z6qU+tRP8J8HoEPcr77gHZidUeUREa72PyaYelagavj7epNYl0/chRKswczNKq8V3FNUwqZXApxVsyIeIndhNmJNr67AG93rVPE/egg5IjOICNsF9Q0UJhnHjqL4ktNKosOaP00MdelCmutCsgIpGLb5tNfGennuEveHbtniDQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(3002001)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:MWHPR03MB2639;BCL:0;PCL:0;RULEID:;SRVR:MWHPR03MB2639; X-Forefront-PRVS: 0723A02764 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(346002)(136003)(366004)(376002)(39850400004)(396003)(199004)(189003)(110136005)(52116002)(86362001)(305945005)(9686003)(3846002)(55016002)(6116002)(5660300001)(7696005)(76176011)(53936002)(50466002)(33896004)(476003)(1076002)(478600001)(7736002)(23726003)(11346002)(956004)(230700001)(486006)(446003)(8936002)(386003)(6506007)(25786009)(106356001)(16526019)(4326008)(186003)(575784001)(2906002)(66066001)(316002)(26005)(72206003)(6666003)(68736007)(50226002)(81156014)(97736004)(8676002)(47776003)(105586002)(81166006)(39210200001);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR03MB2639;H:xhacker.debian;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;MWHPR03MB2639;23:itr+Q7WHWhYrCJPGgOnpErraG0OoqBVxUlQJ/uLWi?= =?us-ascii?Q?ocPMWdE7LCNejewO/LHIOfUVa/7rBuCL+uGolDCxcVWUNBTlKL2GghIm8u7R?= =?us-ascii?Q?pU1rC0zZvyr6gR4XiTa2TU6LgAWtFrdwS/ELktuG8LJtp4taNV9dyl1/U14b?= =?us-ascii?Q?zQVOCbzVhqxdjgVSb6tXoJLhalaiKmkK9c95uNOZESU69t3lzJVr1bibHc+d?= =?us-ascii?Q?BM7k08SZwuSpiKAS3Ce85SaTIToHvnxYWTBopres3tVhRe41SWzY3cwirEhe?= =?us-ascii?Q?LEN78I88xOSlQbOawGJJB77W7orpcJY/RybSBg+JHh4goLtU0PA2avACF7Qo?= =?us-ascii?Q?Nsf9U6nF3v1VdgBK6WyM931ZaiIRe5M8NKEsat14RqB+CSOrjh8GFLS51j5B?= =?us-ascii?Q?mHDSyqN/Vt6c8neAZmPv8YbNW6YBTKyy/ei7jsQ0GVk4WEijfwGXqlGGpDv2?= =?us-ascii?Q?rLtt9GBwPhBfAF280hZ6vQV2O3o87QacKoN7ragSU43fq6ck9yn95iPPcaF8?= =?us-ascii?Q?eXX7kU7YiyFQ1pQ4400LiLznfwKItJoxQMsTArc3s8ZGVSHgQ5HODEG47KjX?= =?us-ascii?Q?nMNyWLN/morTSP1xAtZmkPdqremndI9BhU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k/Yd0MDRXANnOwM3DZUIOy4d8IPqAu+RlK+0OqCWPuFzDf3dNpnDPdQ9ZCyDAI0GZt+Vpm4etLE3csg9pbMekzo/KPUpzdxcpZZaDlMnPsDHkNsQ4= X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2639;6:QvHkgP8eJCDRaZzGRAb90ZaVvvzxM4BPfpsyiVGaRUeze4sIDGM32hRXbSDajRm31k9uH3K1LpNuIboMS5gKzH7ov4biTFDk08zVEFMBtNEsc5ffJcL1RFiJMpOQ/OAYD3m6pGRfUSy2uxUy7pyNabxfOExv1zz7fyOVAk28I7l8Ty7LBaY+VMo8O817B7miWydNX/FUWRzhASDFiMPsbFSxtRsUnWnls8YxMj19ezqS7DFVO0scxUv4IRIsFEhneVgiCAsGxUwvG6UX8+tQ5F0Bq6NjkJ7qPIk5ZDZjgy9sdayQdhejkpcWHE+iVUkfmhFNgnCycwJdoI8Z3nHDu83UoWXW95hgjgMTC1uspm5kMQ24zVN3x6Cjgn+1iP5/SQIy8Yi+WaiZENN2GsibRh3c/2irapuK/zKU7A8PNEEVyyMRfDbeBIgXfpocz/6yfUc8io1fOT4Qk+ozON+QDQ==;5:Gzmyaly6qZgC68XyBbtR93fx1xaX6uOt1lKyah4FjvvlrL/19RfNDrfo5JUzuMxZUs0D5N5wQANYt6S/YwyemAzWUNq8VAyx/ZlVZDc/thhrU1IEOl3t784TXAjBRACWSspXKX8i4ldjUqVF47Ak2efcVWifvE+06/umWsOM02U=;24:p2WRt2hxItZ6R/lqU4RByvjPNqpc0TRZ61V45EEmu2Egl1dZhI7w0032KpjgalW+R6U0/eHe7/IpS6wOhvbHOWrPIBVh5LMJWEh002TfRVU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2639;7:5nbmdBsnu+YQctd54Wc/2DEwFaM4lqW+2kqnUHKl/ZoUwyOCyeSAELMH02dMbqdrUO2eEW283UCZijBzlV7uJDDXL268tNaLsWiMw0AgXGHSvEgoyyxsuvCzsQYs1ZVE/0qjLZxpUvWL6XJl0X7DprKwTdEfWfaEX9UNViyDjkrZMtG6cFVycsoXDmtDZ/75ckE1/iDjHM0luvYLQFs4QBI/M53NGKXqtr36fCEc43O+1/j39M0mqe2Hq9JFWg3F X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2018 09:04:06.6179 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c79730b0-8d11-4470-1d72-08d5e18d19cb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2639 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add these two hooks so that they can be overridden with driver specific implementations. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_core.c | 4 ++++ drivers/tty/serial/8250/8250_port.c | 27 +++++++++++++++++++++++---- include/linux/serial_core.h | 7 +++++++ 3 files changed, 34 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c index 9342fc2ee7df..a0bb77290747 100644 --- a/drivers/tty/serial/8250/8250_core.c +++ b/drivers/tty/serial/8250/8250_core.c @@ -1023,6 +1023,10 @@ int serial8250_register_8250_port(struct uart_8250_port *up) uart->port.get_mctrl = up->port.get_mctrl; if (up->port.set_mctrl) uart->port.set_mctrl = up->port.set_mctrl; + if (up->port.get_divisor) + uart->port.get_divisor = up->port.get_divisor; + if (up->port.set_divisor) + uart->port.set_divisor = up->port.set_divisor; if (up->port.startup) uart->port.startup = up->port.startup; if (up->port.shutdown) diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c index 709fe6b4265c..ce0dc17f18ee 100644 --- a/drivers/tty/serial/8250/8250_port.c +++ b/drivers/tty/serial/8250/8250_port.c @@ -2498,9 +2498,9 @@ static unsigned int npcm_get_divisor(struct uart_8250_port *up, return DIV_ROUND_CLOSEST(port->uartclk, 16 * baud + 2) - 2; } -static unsigned int serial8250_get_divisor(struct uart_port *port, - unsigned int baud, - unsigned int *frac) +static unsigned int serial8250_do_get_divisor(struct uart_port *port, + unsigned int baud, + unsigned int *frac) { struct uart_8250_port *up = up_to_u8250p(port); unsigned int quot; @@ -2532,6 +2532,16 @@ static unsigned int serial8250_get_divisor(struct uart_port *port, return quot; } +static unsigned int serial8250_get_divisor(struct uart_port *port, + unsigned int baud, + unsigned int *frac) +{ + if (port->get_divisor) + return port->get_divisor(port, baud, frac); + + return serial8250_do_get_divisor(port, baud, frac); +} + static unsigned char serial8250_compute_lcr(struct uart_8250_port *up, tcflag_t c_cflag) { @@ -2570,7 +2580,7 @@ static unsigned char serial8250_compute_lcr(struct uart_8250_port *up, return cval; } -static void serial8250_set_divisor(struct uart_port *port, unsigned int baud, +static void serial8250_do_set_divisor(struct uart_port *port, unsigned int baud, unsigned int quot, unsigned int quot_frac) { struct uart_8250_port *up = up_to_u8250p(port); @@ -2603,6 +2613,15 @@ static void serial8250_set_divisor(struct uart_port *port, unsigned int baud, } } +static void serial8250_set_divisor(struct uart_port *port, unsigned int baud, + unsigned int quot, unsigned int quot_frac) +{ + if (port->set_divisor) + port->set_divisor(port, baud, quot, quot_frac); + else + serial8250_do_set_divisor(port, baud, quot, quot_frac); +} + static unsigned int serial8250_get_baud_rate(struct uart_port *port, struct ktermios *termios, struct ktermios *old) diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 06ea4eeb09ab..406edae44ca3 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h @@ -127,6 +127,13 @@ struct uart_port { struct ktermios *); unsigned int (*get_mctrl)(struct uart_port *); void (*set_mctrl)(struct uart_port *, unsigned int); + unsigned int (*get_divisor)(struct uart_port *, + unsigned int baud, + unsigned int *frac); + void (*set_divisor)(struct uart_port *, + unsigned int baud, + unsigned int quot, + unsigned int quot_frac); int (*startup)(struct uart_port *port); void (*shutdown)(struct uart_port *port); void (*throttle)(struct uart_port *port); -- 2.18.0