Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1128402imm; Tue, 3 Jul 2018 06:06:04 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfCYGrDSx4Xwz9Enf34XDwUF0Phljp3pnlp3LjT3Twp/048cnlJiTKvUvFMZkp/AqgHTCYu X-Received: by 2002:a62:fcb:: with SMTP id 72-v6mr29567334pfp.231.1530623164889; Tue, 03 Jul 2018 06:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530623164; cv=none; d=google.com; s=arc-20160816; b=IKdYkFhOM0AUlh0F6w4aIpURBrdklKnTuPprT32Dn4PPjbDPGhjBuZ3QujrAaeJprp SmocFMxe4qCB1+pbJr27E4qszHgKHWLCaoxEwdDpTduVFf6B5BRLMayvZ//snNAFD34U EUM6Cg04JDOqfOmuCsmpmSr512W6TzWDoZKriGokxxIwd3/Jmoa2/ll8WfCcubztmhnZ 8wQ+kumajU3RcneTphTc2sB3n/94E/65yRo/oWc8RHlYasQMR1RuFXxaRYEj9fiRyy1r grcndEp05YNF6CPmRDTkh+i2ZV5SMeJfj0BKBTqrLmtqqmAx5mH40SOQhzXrply2PC3A Wa9w== 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=/joaAtTIDwFWGuzKUQXwFwUd848PD9zH/EyODo9fiXA=; b=qYk7hqASdSpl2JrBn81KRkW2cLJ/Ij9kZ+SOYxzE4bYpdKK6kgep/PMvCll0Koy7lf oqf9LkQTd/v2rUmyuVy7O/LRJ04dU474ertm+qevjqcZXECxxG55ZITgLwZ49uPx/jXW pn+V092oufrTSp6q6l7BqeOfNEm7gX3WzLgMtL6iPfW1n75GIVThRWLuBchPW36n99RW zuura5ZOhzwYtCqs1VVdaSTQvc5rTBMJkkhJQK1msrGxNiQV3Dsj/NmNE095G53ujXz6 Y1fdWo50vQ5cSXbxzJbNbYbs95D9v8sjaAsKPF7QQjVDHzWdG1cvvfF9LZg4ytjgNNDY YhAw== 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 m12-v6si1066072pll.461.2018.07.03.06.05.49; Tue, 03 Jul 2018 06:06:04 -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 S1753400AbeGCNDo (ORCPT + 99 others); Tue, 3 Jul 2018 09:03:44 -0400 Received: from mga05.intel.com ([192.55.52.43]:50184 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753272AbeGCNDn (ORCPT ); Tue, 3 Jul 2018 09:03:43 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jul 2018 06:03:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,303,1526367600"; d="scan'208";a="51685078" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by fmsmga007.fm.intel.com with ESMTP; 03 Jul 2018 06:03:41 -0700 Message-ID: Subject: Re: [PATCH 0/2] serial: 8250_dw: add fractional divisor support From: Andy Shevchenko To: Jisheng Zhang Cc: Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Tue, 03 Jul 2018 16:03:40 +0300 In-Reply-To: <20180703104816.031abbfc@xhacker.debian> References: <20180702180428.331b36c5@xhacker.debian> <59b14f97234271a7d859fa07f27bd66ec252ccc9.camel@linux.intel.com> <20180703102257.678db6a8@xhacker.debian> <20180703104816.031abbfc@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 Tue, 2018-07-03 at 10:48 +0800, Jisheng Zhang wrote: > On Tue, 3 Jul 2018 10:22:57 +0800 Jisheng Zhang wrote: > patching struct uart_port seems a bit overhead. After reading the code > again, I propose another solution, similar as what dl_write() is used > in > 8250 core: > > 1.introduce the hook to struct uart_8250_port as my previous patches > do, > > 2.rename current serial8250_set_divisor() as > default_serial_get_divisor() > then introduce a new serial8250_set_divisor() as: > static inline void serial8250_set_divisor(struct uart_8250_port > *up,....) > { > up->set_divisor(); > } > > and point up->set-divisor to default_serial_get_divisor > > what do you think about this solution? Disagree. See my previous answer for details. -- Andy Shevchenko Intel Finland Oy