Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1208570imm; Wed, 11 Jul 2018 20:11:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeqOWXK/+4Lu/B8/zVDJRWcA+Mvftbp6fN0TeqlyotS54MJg9HUIaqcIb36AfCZY3bG33qE X-Received: by 2002:a65:510c:: with SMTP id f12-v6mr454401pgq.288.1531365096104; Wed, 11 Jul 2018 20:11:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531365096; cv=none; d=google.com; s=arc-20160816; b=Repe4D/t0KeINAH47Il6LJ2z5NVLWqOtKxKjjZSbR+UNIVnPU0CWZvHjx1eGqKfmnS 4ofv0fAtica7fq4VaCvVwVm5aekJrqm+pvhU9zEcHL03GgX1Zc6aJV+QvBEAuZPukyiA 1SEuzDgKvlLZuUnhOCNQyBSxeIIBVBv98VNknRh9xJLa0Qlw3m4K3RTzarCtbNKKfS7z T2vySJlIQbAGElCtfWXOaoNBtdEXtci0CmHpzkGY+FTttKf4OGu+doN4KMxJNCE/MpdD LHFQOYRoCIrRLlLxUstf7tfLoKUT2Q5xsUOhS9W7Y7faDk42dYw83VQ7neDr/fz5VWpp MeCw== 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=nNwLLXouCQqRDSxmN1kdJ1vceBdIffPALUZBAlOeCpQ=; b=IxxkIkA7JWy+tXFs/S5qHxKqh31H2nqvjxdf/o1K4LzwHcUcR9l/T+CMqgIVL0Irzm SgMWHButqxw/ptzVNWV0RqHXiuI/f44RmVOHABmQ+EeyR4DTb2gHXth6Id2NfSDnDXXg FvEVdiD7tpJhotZJV9hUcMwsxA6sVOJs+mWrc2I/DGULie9lFegIEKkOxyzEUnKR5l6F s0bxJmrMAh3l+UpW/htQG3NdXditjKoGs0h3X4CEfMYYXeXA0WwD/G5nNt1A6gKTbg+C 11n9tEWO4J53gF/exPQfsTn2IjnRVfS+b1F3pg8LTKT+XOoEjBHaDLqArLn5GAKdRAKT s4bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=hr6n0PQj; 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 w13-v6si15912197ply.454.2018.07.11.20.11.21; Wed, 11 Jul 2018 20:11:36 -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=hr6n0PQj; 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 S2391133AbeGLCG0 (ORCPT + 99 others); Wed, 11 Jul 2018 22:06:26 -0400 Received: from mail-co1nam03on0081.outbound.protection.outlook.com ([104.47.40.81]:61826 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1733093AbeGLCGZ (ORCPT ); Wed, 11 Jul 2018 22:06:25 -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=nNwLLXouCQqRDSxmN1kdJ1vceBdIffPALUZBAlOeCpQ=; b=hr6n0PQjum5RezH7ynrqCjSQqgHfLuiVRf6hLJ32Pru7ZEii7c3x84l+JrSYxvxkfUxfeRjE81BHJhPNKXQY9FvcfUmeRlemfMwL1UfvW+3Ml11pvU6+my/xKFnbQ1kXy6V9rSY7dcQwRIlV9KTircx8HHt8qvgnCOBDwESz76o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; Received: from xhacker.debian (124.74.246.114) by MWHPR03MB2640.namprd03.prod.outlook.com (2603:10b6:300:46::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.18; Thu, 12 Jul 2018 01:59:06 +0000 Date: Thu, 12 Jul 2018 09:57:00 +0800 From: Jisheng Zhang To: Andy Shevchenko , Greg Kroah-Hartman , Jiri Slaby Cc: linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 1/3] serial: 8250: introduce get_divisor() and set_divisor() hook Message-ID: <20180712095700.462072fe@xhacker.debian> In-Reply-To: <20180712095504.4d9583ce@xhacker.debian> References: <20180712095504.4d9583ce@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: PR0P264CA0007.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100::19) To MWHPR03MB2640.namprd03.prod.outlook.com (2603:10b6:300:46::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 046df047-a1b8-4d4f-ab89-08d5e79b0ee3 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:MWHPR03MB2640; X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2640;3:wsv1lsS+e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VgHS1p2iG+Gu1rARPRT5bYlnnsmMN4SGClkADebATdMQtbr7BqFT7jE/VMYmYJqfBEez5vYU8Tj41S6QkLDTX4tZAuBCLsVuoX/4XabDCzugaciSg9mcOuM+91kT3yFPb6/erptu8QoB7Z73HghsxDdy48ttDVd1k6LsqrVqEnsfrim2uyPjgbhYZwAxJ59C7KcNBmeD9010ngfBgsKwhCKDovzDRWCcLDJwADS7svLnlODJ6pQHTLU+DIBo923OemZzkkoBA4YQDkfPTtQLogegPwCOJik8g5C2nbEdqrPgxSE64udW0ijQYtTROWz8eh43C;4:B5KNAXeMzlFhyMaf8DpJ2LmQpXlMBsASWFAMhOxIr3VVPcsHq2axooCx2U7JOf01aFKuahlFlHKAQ7bLq5Kil9CNt8R3Ybw3vnVAiT+/N72U7XABpj/IaYrWcsvDLP4XHnHudYHgSyEDSD1rZFGRCPM6qLJThoC5eIDYBRy0TIPZulMrP5FSykegRc7U807VozS1QApctgoiAlkrtEbSCMYMraAKkQ+ZzZuuD5r99Zt8eh+wdY+GT3WyqXJD1y+B+YSxN35ZnpRWYwlkhMp+8hEMIxA2eXOkjTK8faxd82AjmTbL5JTDANcJuyZA5pXZ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016);SRVR:MWHPR03MB2640;BCL:0;PCL:0;RULEID:;SRVR:MWHPR03MB2640; X-Forefront-PRVS: 0731AA2DE6 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(366004)(39850400004)(396003)(136003)(346002)(376002)(199004)(189003)(386003)(6506007)(7736002)(26005)(305945005)(2906002)(186003)(76176011)(52116002)(1076002)(7696005)(476003)(50226002)(6116002)(3846002)(81166006)(81156014)(23726003)(956004)(8936002)(8676002)(478600001)(55016002)(9686003)(6666003)(97736004)(68736007)(230700001)(16526019)(33896004)(575784001)(72206003)(86362001)(25786009)(4326008)(486006)(316002)(66066001)(50466002)(47776003)(446003)(11346002)(53936002)(105586002)(106356001)(110136005)(5660300001)(39210200001);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR03MB2640;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;MWHPR03MB2640;23:oZ+FudfltuLJU45sdOT4bRzV/AUej4MrRCZBJ9kFp?= =?us-ascii?Q?0Db0Y3jRqowt36wPvL2P1gCK1kI8AX7ygPsHYimPKGdY/h3M9zq7YqTURLFo?= =?us-ascii?Q?xIw9xGfEs3cZ5GaJOn54Rhl0Mr7YSUPTW7yWsOUxAAFh+5j0qfU2d0LzEUNr?= =?us-ascii?Q?guuuGGVlDAlqNR0Ppqy3bUUYFXBAv/S5m1oLEjIW2nlQrkPvijTLfmIX0rph?= =?us-ascii?Q?VQTRP8yv0SoHOAE7O2CU4r+JTd2o7TnhI+qn/ewB4o9R6OI0H1prx2sOkf5r?= =?us-ascii?Q?RXMqWA9NEqaeTMNMy6KBup6gThMfkWyV5fPM/mTK/vvDs5hOqro937nqMs14?= =?us-ascii?Q?O2eDSCqoVM8LitAy1cVXEh9M/qmYJ4BDOFOV6SX2rAB4UCEtF0YOZqudfp0V?= =?us-ascii?Q?asmj7r4MCwRyefmk7BLZkIFAoFpKSIMt/pLTaJphSd1VoO7zDnWO0fcIJ2It?= =?us-ascii?Q?e59FeyQ8B/ea4z3jvlkd3PguepAMGXSVSz5jI4N3F1Gr3IBylMa9e1rQAFAQ?= =?us-ascii?Q?18tOcoplN3LZQOoRtM8uoQJls3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PVWV9pYvQei1mXKe6iK2mv5rzW4PAjwrPVc33ktgz4J1on3vlLyoHtflFco418NCTGiQwQMg50T5CXOrF10KD0ZiUWXp9+EHOwsAi3PA7aTAZ+pZK76fA1dQXA3+ywrbIfpmoEYNCDKHaDHFEGRDXz6p9CTWuyR/kVQBGS5yjZVMCCXU6flIfYbeC4Ve1Rqo1ijsNY0B0kyCx1J4HHTXJvMATDZV6wapAFiuhzYApc3f3Es5YqcZPc X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2018 01:59:06.9077 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 046df047-a1b8-4d4f-ab89-08d5e79b0ee3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2640 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 Reviewed-by: Andy Shevchenko --- 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