Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp738139ybh; Wed, 18 Mar 2020 08:14:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vupG9zDznSo3XLXs2gn4F+TWSMFR4vXi67C+0w1dAo5BwMvEY2DENIUT2oEc03UGjzZt3h8 X-Received: by 2002:a05:6830:1051:: with SMTP id b17mr1979461otp.157.1584544496175; Wed, 18 Mar 2020 08:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584544496; cv=none; d=google.com; s=arc-20160816; b=B+fOQpU13xzURs164lNQq85RImCiaaqLDYm6VbjbaSLBjY0TWMQfnA1B7SUEpxhuIH IsXp4phV2LHMMFu/9kBiaPR7Nud4nvzA6ThfR9Umt/edXYk3HJRwHivoxMtc8BAlvFAm 6GoGOFSBMRsdyXG4201kCh9M2/3oAIXETsC6hYno5VDlYcTVoaP8t/+cSbiA0EF7XHBk jJyLYUnCEPbSDb5kPsYDm5K+7Hwo4O48th9cDTFlW9KBvM1x0uHcIIbKuPpVvy9M6L3H /Q71rRbEGIcTd0ZOFjEMNT682MMxLLmGD7Nv0/lf5TXBIeAnXOjXw2+jnXgc2GUVQ0F5 W13A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=UzbaVN1fBtn9vfy4m2/TUiaFihZN2Bh6H7SiNlhyLnM=; b=NtA2JxQubj5cyc4Sav4PIczxnZTWxhz+loIqdRYsR9oQfYkleGlfhJOj2sjsvJZhkC YyYRDsWY8zK/YOzDfdSfBQA7WupDPJ2rkWJOWBO4WW/7HZsnkKFdsWzg5QnCuOOmL6Tz dI+l4mBWiNGe+9CQupelC7UhRhtHuAxLybPXB02Z89FewbMe6X74XD7J8Ns8dX7ULJ2m UPs5KuAFfhcwecsFz31MGqbCRf6dt4DoXzA9G+lg8i9oJ1uBZnvxeucUwFkBb82TNVpV CgJ7gsnEjvnYq+ZEGEQSawY2JLb1vPTI6xt7m/ephusYWiWzByToKDhdNDpFEZKUFI7T tbgg== 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 a5si3742553otr.237.2020.03.18.08.14.44; Wed, 18 Mar 2020 08:14:56 -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 S1727108AbgCRPNR (ORCPT + 99 others); Wed, 18 Mar 2020 11:13:17 -0400 Received: from mga05.intel.com ([192.55.52.43]:56651 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726944AbgCRPNR (ORCPT ); Wed, 18 Mar 2020 11:13:17 -0400 IronPort-SDR: YmYvzNJetGMZhWNmm7T/2w0/bu+mbDbrbNhTWN7NZ3XKwByGFYH4FoD/qRGR3xT6ua9bArw+Gf xmGr53kb14tA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2020 08:13:17 -0700 IronPort-SDR: D6qbEs7Ps051WGzAh2dQ0zkqnuN+npZTjR03l8F7UH62ICbTyVhD8OfClhlEgbrIueHMHl56IX yBiOYwet+35A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,568,1574150400"; d="scan'208";a="248203064" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga006.jf.intel.com with ESMTP; 18 Mar 2020 08:13:15 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jEaNh-00AnL5-Jl; Wed, 18 Mar 2020 17:13:17 +0200 Date: Wed, 18 Mar 2020 17:13:17 +0200 From: Andy Shevchenko To: Heiko Stuebner Cc: gregkh@linuxfoundation.org, jslaby@suse.com, matwey.kornilov@gmail.com, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/7] serial: 8250: Add rs485 emulation to 8250_dw Message-ID: <20200318151317.GN1922688@smile.fi.intel.com> References: <20200318142640.982763-1-heiko@sntech.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200318142640.982763-1-heiko@sntech.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 18, 2020 at 03:26:33PM +0100, Heiko Stuebner wrote: > This series tries to revive the work of Giulio Benetti from 2018 [0] > which seemed to have stalled at that time. > > The board I needed that on also had the additional caveat that it > uses non-standard pins for DE/RE so needed gpio mctrl layer as well > and even more special needed to control the RE pin manually not as > part of it being connected to the DE signal as seems to be the standard. > > So I've marked the patch doing this as DTR pin as RFC but that patch > isn't needed for the other core functionality, so could also be left out. I'm wondering if this series is based on tty-next? Can you use --base in next version to clarify this? > > Changes from the 2018 submission include: > - add timeout when waiting for fifos to clear using a new helper > - move on-boot enablement of the rs485 mode to after registering > the port. This saves having to copy the em485 struct as done > originally, which also ran into spinlock-debug warnings when testing > and also makes it actually possible to use the mctrl gpio layer > for non-standard gpios. > > [0] Link: https://lore.kernel.org/linux-serial/20180601124021.102970-1-giulio.benetti@micronovasrl.com/ > > Giulio Benetti (4): > serial: 8250: Make em485_rts_after_send() set mctrl according to rts > state. > serial: 8250: Handle case port doesn't have TEMT interrupt using > em485. > serial: 8250_dw: add em485 support > serial: 8250_dw: allow enable rs485 at boot time > > Heiko Stuebner (3): > serial: 8250: add serial_in_poll_timeout helper > serial: 8250: Start rs485 after registering port if rs485 is enabled > in probe > serial: 8250: handle DTR in rs485 emulation > > drivers/tty/serial/8250/8250.h | 36 ++++++++++++++++++++- > drivers/tty/serial/8250/8250_core.c | 9 ++++++ > drivers/tty/serial/8250/8250_dw.c | 35 +++++++++++++++++++- > drivers/tty/serial/8250/8250_of.c | 2 +- > drivers/tty/serial/8250/8250_omap.c | 2 +- > drivers/tty/serial/8250/8250_port.c | 50 +++++++++++++++++++++++------ > include/linux/serial_8250.h | 1 + > 7 files changed, 121 insertions(+), 14 deletions(-) > > -- > 2.24.1 > -- With Best Regards, Andy Shevchenko