Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2808038ybk; Mon, 18 May 2020 08:23:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCRCc0E9e3oigWkxwcjVxYIJq16JGFMPcHX2iQ73+W8N0awhH7mIFjmi/bOgW0YDD5baXl X-Received: by 2002:a17:906:f916:: with SMTP id lc22mr15616376ejb.96.1589815417955; Mon, 18 May 2020 08:23:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589815417; cv=none; d=google.com; s=arc-20160816; b=jwLlFK9dDLaumCKUUulJVS9iw+vJE0/TeD1e1qdRbphsKHOo5WXtYlr6CHufS8wnWd IqMciZ9BFnaqtWPXuP42sbYZPie0FTGYesf1CYUfyQ4/7A/nri9qkEw/Ljaka2x49cvQ bFQneAGkHTVziYMMSFYoeBA9Hy30aIMAiZabQ4GVSM9NxGozzM1Qp/A6HhQS6j/n/BD0 lwmhPYxUcr/KtkfJfSa60R/L8sefZCNmsX+LG73WQj4PkIHh06J6+gmQSYb0RrevM9zr 6olNvx9CWW292uYo8SmwxGKejEhArjDC3Jk6kHZiO1ndEW8TwDLI7NzERxhg+qVqRM+b ruxQ== 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=+N4ffX+309qzwOGZ+iKVMWnmnDX5D2zCxFQKPjxc6KI=; b=adL+rz4FDIAFxCuXGvoZum1ilvfaOLAu/r24ZDW/qHJ8nHkxPPHmxLSWfpAKCTC03T 7Cq44L/aagqiloI8TYnk6yR2hP3zvirgQDabbowSjPn4yXcMJnajtrGBSVxEEeeqQDb9 2N8CNKLimtff7vl2NdJgMroFqb/GQU56qOPee7NOfHV6ohsJ67Os5Ixr/08gdUk42PvY OoQQ/zQOlFtiP3xk6lV8ABdPr8ZFFa/AIdRXfJ1yXGlH4g5BEbp+2U/kkHr6Vhf2nYLO 7jH7M5UZfXA2OWsAteQZ8bf4L+urrizgJHKcpv8zA++DAOM2r1C3Nkz3YWQuM4YTCFPF JrCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id rs20si7264629ejb.76.2020.05.18.08.23.14; Mon, 18 May 2020 08:23:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728165AbgERPVE (ORCPT + 99 others); Mon, 18 May 2020 11:21:04 -0400 Received: from mga07.intel.com ([134.134.136.100]:53159 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727020AbgERPVD (ORCPT ); Mon, 18 May 2020 11:21:03 -0400 IronPort-SDR: 6iWKZeFdubQnpSqmi5Ak0g5NLBMRHQoQF+4DAjduguiJeYV8HvMGqHGsXGGkQa8sJpcWZbljQW ojzbTOBdQ1Fw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2020 08:21:03 -0700 IronPort-SDR: Ko8otbQvSOw607L2ZQnKU0DqdX9LG4vgAeNmmVlkY+X5MBRQzpOuCBFNa7KpRKVLnxjsa3pF1h y5RYzX/Jg/yQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,407,1583222400"; d="scan'208";a="342826406" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga001.jf.intel.com with ESMTP; 18 May 2020 08:21:01 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jahZf-007S65-TE; Mon, 18 May 2020 18:21:03 +0300 Date: Mon, 18 May 2020 18:21:03 +0300 From: Andy Shevchenko To: Heiko Stuebner Cc: gregkh@linuxfoundation.org, jslaby@suse.com, matwey.kornilov@gmail.com, giulio.benetti@micronovasrl.com, lukas@wunner.de, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, christoph.muellner@theobroma-systems.com, Heiko Stuebner Subject: Re: [PATCH v3 5/5] serial: 8250_dw: add em485 support Message-ID: <20200518152103.GI1634618@smile.fi.intel.com> References: <20200517215610.2131618-1-heiko@sntech.de> <20200517215610.2131618-6-heiko@sntech.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200517215610.2131618-6-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 Sun, May 17, 2020 at 11:56:10PM +0200, 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 and uses the standard em485 start and > stop helpers. Would it prevent to use native RS485 support? ... > p->serial_out = dw8250_serial_out; > p->set_ldisc = dw8250_set_ldisc; > p->set_termios = dw8250_set_termios; > + p->rs485_config = serial8250_em485_config; > + up->rs485_start_tx = serial8250_em485_start_tx; > + up->rs485_stop_tx = serial8250_em485_stop_tx; -- With Best Regards, Andy Shevchenko