Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3785552imm; Mon, 2 Jul 2018 05:39:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJDGU+HiIhuZ9+OCyXYFc0YVsJpJoXnxaLkPmfkZu82fJB6GTWt4onWJvPEt/4lSF3C5QON X-Received: by 2002:a63:6004:: with SMTP id u4-v6mr21507208pgb.441.1530535174348; Mon, 02 Jul 2018 05:39:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530535174; cv=none; d=google.com; s=arc-20160816; b=eJgChzdlIjG4nTVsETAjDgryVcowWEwU6AoVcMs2829+ZjyFFv6nyPom25KR0ILnYb wkpBlMz8SaIw5kwdnb5dv0LxeBhje+wg+elhCogN5m5jeAZnClp+JWwBDcPTQVxl1BZf i1gtFfi45cv759MfFUm63PongjBqok6SoY6s5ZmvZ71AOYPRd8Iizqj8acNTl7iNuCWi mflpxQIQVjd37E4CiDatO4igUXJwSTyudaFw6heR2toyYx9i2yKP/Ew+cz1GA+nrd5Vb MyBos+rliT0le/lijhy6irj0DPNRRefZvxScAaP+QX1vZEXMSFkfzlZ6O9mo9j9VRi4I qNCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=rngJp1oXFgnZZNlslrdnLKM4i596mXMqmE9FiiOKkR4=; b=QvHuuybpT2AQmqmhPeJ2628FX77MQ55Ucg/7BthjbzbiB5UGFn7z+w42sVO/B/RPof n7rkelexAgBZp5T7947qMjiofYZQXEFM/A+QCU9v1G/sfrlw8+nRUZsIHVDU97zcllik AXtFyIUaJApm4k9QfnIuKweXmBLFzobvLKE1+czZ7bZapFSebeAShdckUCyxOdmERliQ vD6bgWK3B3ylup9b+vALsXWPJXAmrK4S/XoHjwIwOAU5UjaRkW06LsXDjqiOo5X2V175 90zuiDBfSBf1tJvYU52+vio5xU3x/tuPu3kJmPXzFnVdjQjO87ddgJNstkpBT7cZL02y cGYQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c16-v6si12532967pgw.460.2018.07.02.05.39.19; Mon, 02 Jul 2018 05:39:34 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965359AbeGBKSt (ORCPT + 99 others); Mon, 2 Jul 2018 06:18:49 -0400 Received: from mga03.intel.com ([134.134.136.65]:52421 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753807AbeGBKSq (ORCPT ); Mon, 2 Jul 2018 06:18:46 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jul 2018 03:18:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,298,1526367600"; d="scan'208";a="242298111" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by fmsmga006.fm.intel.com with ESMTP; 02 Jul 2018 03:18:43 -0700 Message-ID: Subject: Re: [PATCH 0/2] serial: 8250_dw: add fractional divisor support From: Andy Shevchenko To: Jisheng Zhang , Greg Kroah-Hartman , Jiri Slaby Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Mon, 02 Jul 2018 13:18:42 +0300 In-Reply-To: <20180702180428.331b36c5@xhacker.debian> References: <20180702180428.331b36c5@xhacker.debian> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-07-02 at 18:04 +0800, Jisheng Zhang wrote: > For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a > valid divisor latch fraction register. The fractional divisor width is > 4bits ~ 6bits. > There are several serial IPs that have fractional divider built-in. None is using any specific hooks. Why do you need in your case, esp. taking into consideration that we have a custom ->set_termios() callback? > 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(+) > -- Andy Shevchenko Intel Finland Oy