Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp738900ybh; Wed, 18 Mar 2020 08:15:45 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs0a2CqYLvVFJf/k0o6xG18mt6gl4/ord1oi2c7+N+hAqJYHcE9ATg5Ci/OHv8McNlwSIIZ X-Received: by 2002:aca:f582:: with SMTP id t124mr3582175oih.17.1584544545598; Wed, 18 Mar 2020 08:15:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584544545; cv=none; d=google.com; s=arc-20160816; b=EePLDGVGKYWcLvlAnlmIv+YcpYAnO+famWuS/X9b8p3feb2hcZIEJo+6EZJ/tbvlkc /lCGdmlav5iUKpWNThiwyRhwWSzvUIvUWWtDK+pq4dGHAJj620/y5NIbjRPLt9EJabKL nso/Bs4XQjkJshWiwj0XFyjaK7+0MqTyRsHxfOiEHISRk69Um1EK8heS56IWBtxI3akI yMSfVl8pWdwKMdydhPyvmbLxJdIQN4jbK3UlDnmm+ljqhtlXe7cj9+lidREqHySSahQH dvVDYenKmFlSxdCEZp0Ww/5QzQUfDlVoAr3gfd4utm2bajcv1kfSJt2x88clC5RURyUq 6ieg== 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=rCk36EKv5XnvS96+0sMFNrphSzsRhbTYSLuSCe2dRAw=; b=m92GqXpRBqud/dGG3952TzyFSVVZZvdWhjETSaQ7GWQVBNLoBgyUk6g3irAvwk4qmg 4dW1D3RZwfbgdQ0Loe17wJku+Wxmlx1NzBWB+InlsRwN1s330Ky+/TQI6KeNMg0bjkjn jlv1rv94kem/w5pcdKrs4DjwAj/MDyMbnnx3W1isxNchFxw1+nDL4KjVu6/kDLiEjB5O eVDlXkpyEraRR55Tw9NUQK0v0Wc+koZZVlQyZK1fQBNv3iDcSxn8lMP2OBH7Gnz+O2nL R6usSlHaqvTXZhgC6G+Tk7BnOWU5QzdRlPOyKVC/I37+KopbSoj6bkDhQaFHBPHqKZZC Ytnw== 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 c11si2297478ots.150.2020.03.18.08.15.33; Wed, 18 Mar 2020 08:15:45 -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 S1727186AbgCRPPI (ORCPT + 99 others); Wed, 18 Mar 2020 11:15:08 -0400 Received: from mga17.intel.com ([192.55.52.151]:36495 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726958AbgCRPPH (ORCPT ); Wed, 18 Mar 2020 11:15:07 -0400 IronPort-SDR: HTeISfOC4CGs7Jlyob+Qgsx/jrCjaPt9SRTjj1CrKkeee533VgGHgXm7/JdR7GuUm21Auce8IT aQg0qHJ02rbQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2020 08:15:06 -0700 IronPort-SDR: FO9JYybt6/tWOkD0i8MwbkuhJu09rhOiIDlGB9PXcO5Snk06sS/bBcmbsc6uuW2SYMWaQ9Tz4M mseSYVmPezEg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,568,1574150400"; d="scan'208";a="291343056" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by FMSMGA003.fm.intel.com with ESMTP; 18 Mar 2020 08:15:04 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jEaPN-00AnMz-9v; Wed, 18 Mar 2020 17:15:01 +0200 Date: Wed, 18 Mar 2020 17:15:01 +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, Giulio Benetti , Heiko Stuebner Subject: Re: [PATCH 6/7] serial: 8250_dw: add em485 support Message-ID: <20200318151501.GO1922688@smile.fi.intel.com> References: <20200318142640.982763-1-heiko@sntech.de> <20200318142640.982763-7-heiko@sntech.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200318142640.982763-7-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:39PM +0100, Heiko Stuebner wrote: > From: Giulio Benetti > > Need to use rs485 transceiver so let's use existing em485 485 emulation > layer on top of 8250. > > Add rs485_config callback to port. Synopsys DesignWare UART is being supported in three modules right now: 8250_dw (platform driver), 8250_dwlib (some library functions for this driver) and 8250_lpss (PCI driver). Can we do in a way that both platform and PCI drivers will get advantage by the change? > Signed-off-by: Giulio Benetti > Signed-off-by: Heiko Stuebner > --- > drivers/tty/serial/8250/8250_dw.c | 31 +++++++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) -- With Best Regards, Andy Shevchenko