Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3784741imm; Mon, 2 Jul 2018 05:38:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf8Q+oUZkfxRCfs4ywLlx4SASeerF14G6V/Ar5Yo5oQSOJXkjey4ehsRl63+OhHK+nfX8Ul X-Received: by 2002:a62:4b48:: with SMTP id y69-v6mr13983207pfa.93.1530535116944; Mon, 02 Jul 2018 05:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530535116; cv=none; d=google.com; s=arc-20160816; b=ugCXzuiwKrmTEYREHM3kmjYCd8pqFkO9SmJQPnzSfGZ+PQlVS0ZvdKr5LJ0Lm/smTg vDjil+VAsnTRddzFqEVrCVfdhas50V4HythFfFukQaEGANMw5BrSwByq/sT+Cz/8t1pF TbkxhTTdg9g3KfDOjzgZZU807PC+iHjGZOuT75On0IfNMVj8HbssDewYczL0NNO9sVJD Hgfiq90j0H12kblpfcTuZGgKuzaoMnqmd34RcjVlD0fLGhOWow5xGAEVx3MURJS7vGhX TWeN2wZts4oWxNqzPmf232Wxim9/x3pMTw6i8So/04x49SD4yjBkTzqOR3MtvPcrQ1As r5dg== 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 :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=imsZAKcGjmcZqIXEMTbbfASwZP94OUmXIMyozeZMJkE=; b=cfEi1pWshpG2FxtnVGph0e3kJe0jQG1rfVLoKxVjdpkEvw/OoHnzw4SMXw7ozhlYaM JCUqoKVnts/P8RVZz8vxU3JtJ5dKGhYjnvfkbMaX/wrBQzniV0iEvNthf1NfVzQMZXsG WO1HwBIUH+HxB6nLmUl8aExY7SPXvi5Fsv3Lh+gIoITWMLGWuVBsDk5/c/hw9gp5VqBc xvzZSXptvcbZQMV5o12ljTbS7eqJqy2JWT4FgFxbqXSDidUnpStBRu17CB+wVOkyPNq/ bQuPlNRgc76WWa9WjKbrV5N7Vpwfh+ALjgTxQC88o/owrbvnxV/r5nRiDiwuARVoyl8+ bitg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b=WYZbaPEr; 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 t4-v6si15411245plo.235.2018.07.02.05.38.22; Mon, 02 Jul 2018 05:38: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=WYZbaPEr; 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 S1754538AbeGBKGZ (ORCPT + 99 others); Mon, 2 Jul 2018 06:06:25 -0400 Received: from mail-by2nam03on0088.outbound.protection.outlook.com ([104.47.42.88]:29192 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753132AbeGBKGV (ORCPT ); Mon, 2 Jul 2018 06:06:21 -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=imsZAKcGjmcZqIXEMTbbfASwZP94OUmXIMyozeZMJkE=; b=WYZbaPErN/G1sUKwZs6ZtNNf4RmQkj5awELNBVqq4O/JjKf4/xiX5TD0oJmJLs/Dj27SKjOKUBOLNaz5LfNdpEJ21dCunFHwDugz66VVbJutYQFTpQDdIxSOyPsbgoWe1fDAF2BSw815R3q93Q6CWRcwMQr0N6kwDdJQeTFZX2w= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; Received: from xhacker.debian (124.74.246.114) by CY4PR03MB2632.namprd03.prod.outlook.com (2603:10b6:903:75::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.20; Mon, 2 Jul 2018 10:06:17 +0000 Date: Mon, 2 Jul 2018 18:04:28 +0800 From: Jisheng Zhang To: Greg Kroah-Hartman , Jiri Slaby , Andy Shevchenko Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/2] serial: 8250_dw: add fractional divisor support Message-ID: <20180702180428.331b36c5@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: TY1PR01CA0140.jpnprd01.prod.outlook.com (2603:1096:402:1::16) To CY4PR03MB2632.namprd03.prod.outlook.com (2603:10b6:903:75::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f2cd8af9-bc4a-432a-18fa-08d5e00374b2 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:CY4PR03MB2632; X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2632;3:ydYoJfUGz2ImyOc7NOlt3VKVz14tN9zZpbWQ7UEMupZPyJmFpVW7kEO0mAcY9bQAQFRLEFAPqk40lXLCZ+bzlVcl/NaEN09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gy3dsCdnbRYZDoNnHFBhMzkrggB16ySuO9k2ng1z86FksM1NQxYa6ZAZvFiTY2wWCfuJSwq9KHDMRO4mMgs3o73QuuhB9H0tr/771dM9nhbmOO1aiePrTUlqw2uQPFK7TR39lQUW7Cl/fluZJD5IdQDCofzGLxXK5ep3GU8clciI+biWDIylaGCPSiJVJJTade7ElNHkHFwWortcGkuRIBXSa9v6+rPLkKYAF0ohLnzFTwIjEFWeXu4rxaoS23Z8mkV;4:e3PzKflews1V01e8fFRmtYYvykps25DetQ3tL0bGlTWd5cCDU8XvlZMj7v5usUlQS9V7BWkzX50q9N1jbWqW/um6phtuQPBurO2M3IoOVGbcVz5GtXQKe5Hca+srVKk4xgX8FJWazzxv9onx7GYFaJyoMFbe1M2Vvmt1+h96OsXX0opaPDYBHN92NYIlS0xEVR4ZcCUp2RU+wpc3Y+nccFWKRQVxJhlC2w0A40GUN23MOeNwGqZoIQs1OCw5dOXDMFHeC1EwdV2+19sdBGtc5w== 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)(93006095)(93001095)(10201501046)(3231254)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016);SRVR:CY4PR03MB2632;BCL:0;PCL:0;RULEID:;SRVR:CY4PR03MB2632; X-Forefront-PRVS: 07215D0470 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(376002)(136003)(346002)(366004)(39850400004)(396003)(189003)(199004)(5660300001)(8676002)(486006)(956004)(81166006)(86362001)(55016002)(81156014)(476003)(7696005)(52116002)(66066001)(7736002)(50226002)(6666003)(305945005)(68736007)(9686003)(8936002)(47776003)(72206003)(53936002)(1076002)(478600001)(23726003)(2906002)(50466002)(106356001)(105586002)(25786009)(3846002)(230700001)(4326008)(6506007)(33896004)(186003)(16526019)(26005)(386003)(110136005)(316002)(97736004)(6116002)(39210200001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR03MB2632;H:xhacker.debian;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR03MB2632;23:UHrloDHwHtwG7uxeIoGtgbe7Scb8ynDEjjFeVfboS?= =?us-ascii?Q?Tto6Kv1l0arHvMPEg1Dgs63MtFeAnMUrgZpauOL/RLfnXyBTa8DK95SO80e4?= =?us-ascii?Q?dl8mUQabgXQydPRuUSn/W2baryPde5pgJoj903rv2UyeDnDKmRfN8h54Wd5r?= =?us-ascii?Q?7FudiRP/xka/oif9/1AavutMsWEzt/OwKz94/DAq+uYx4GmCaFlwgwb34X89?= =?us-ascii?Q?rwqfISZcKNAaXqBd+PlHiHDFqUNgkGuDZxaP2AiosZ8oCA0xDK4oLuHfyD+T?= =?us-ascii?Q?MSrqlFQTOE4vZ/AO4W68Yd12RZrFT8CofO/DBq1CCm6yZITJME0o30cRHSP4?= =?us-ascii?Q?rLwoYvIyrebj/+08wACzB0yS/C5J61aAmsYDLJ7fRp6H25BatFG0rJ7JzqlD?= =?us-ascii?Q?ZSfu0g9CD3VJN52NPVACjyxbuPbVtqBeRDpBaEd/VdaKzmj7eb+CVrPdYdLq?= =?us-ascii?Q?Revy62OAhEx1GHTmrB//8hnl2+CUDhIAnAJ2oAdXKL6zRcxMxNYQkoScUMPR?= =?us-ascii?Q?GDlnbsLO4WDMl4+BS45kmzEPCQxAY78kLP9EginoCgXAG+60VHwU3Mvca4Jk?= =?us-ascii?Q?01XOz+PPcQM3s8Z+apflfip3zx/boOSot57bT0gwNzxEYXbReRR+QR+/zFbE?= =?us-ascii?Q?G1zOZv2t2WBINb80rpH3PE+akiX9E19h8bL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e7J86p5zssxS2Lkm/NagJCFxKt7BSLnEs7vPTyb+BzqW0FLNnW3xoA7n0zcrcsu4ctjhE2A+NQuoVuWuaAJ/iunRlVzli87FhngGBDRU9i0/CbKS1DcdkIQ5KNPRYFbTf4GmP8h9boAtwinsfMO4PvXDiT9krRNc+M5TlGRmpmrEtw5FIpLs+17iuR69PytYwcJYfs24QZV5YqDZSaiIFe+HhdB2vuQ7z7cL00cAUMi8fbaUjOpr6C6S3zfb0eL+W1MRhdCVkF0wReoU6Ufig6I0w7YHqw597EUr3HXyGMnP9svQVrBRUpRqXn53ll34BUYrHbHVkt/MVFDzG/NlosMywZygj9X8q+eqg6kvqZUucZ7C+uLXtJ/qasjLIK1hpJKdwEB+0XlGClUdXNaecz+QJbQKRto+H4TnQ9F56BErE5xeujeRwum3IA==;5:tnRqj5/87Un8EYbJ8wImT7PUY1a4JaYuAV1dHmeCSp5iNNMU7B2bWrHa/3FzcM6rFFwavSfEEXKT47c7pOn2DDOu7Nahf7+aPr7k2rzvAHdXnHqXQ8EMQvCgZTO0gWNKeztNbYiaSPFKWGh7Z2aQVzZ/jfv8dUyE4Ua9/E43/kk=;24:k3UZsFN1+TaPdNxY4edJaEM7U+VmDkwRqbVNUM9wmd5+p30zO13WJViZTqhYWAsgf0eZ1oYwwZrsB/by5+3HzqQl6m6XFmivunxWsZszZZY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2632;7:8dkKwevaJ5Mmg9LEKnvauJ9l2t8MURSAfRWrOvh+S++y+eVqRYhrYxUXCt4kd22ogD/3bD4mhICsmyh8j5VMRarybkseKe1i3f7DD+w2s108613XGXX38bNgDAw/HFR9py8TMkyX6mY0zaCL7YltXrHvTN3A4+a8ikXD+wub7rNmOr3iAUFrGOsSRprzDvmx2uWFSVsZwgViTc09BX6Vf2W6bD1uQzE8b4Qd/24Cdefh5FwqeCHhNFOovdYC73W1 X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jul 2018 10:06:17.3881 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f2cd8af9-bc4a-432a-18fa-08d5e00374b2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR03MB2632 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a valid divisor latch fraction register. The fractional divisor width is 4bits ~ 6bits. patch1 introduces necessary hooks to 8250 core. patch2 implement the fractional divisor support for Synopsys DW 8250. Jisheng Zhang (2): serial: 8250: introduce get_divisor() and set_divisor() hook serial: 8250_dw: add fractional divisor support drivers/tty/serial/8250/8250_core.c | 4 +++ drivers/tty/serial/8250/8250_dw.c | 54 +++++++++++++++++++++++++++++ drivers/tty/serial/8250/8250_port.c | 8 +++++ include/linux/serial_8250.h | 7 ++++ 4 files changed, 73 insertions(+) -- 2.18.0