Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4271767pxv; Tue, 29 Jun 2021 03:08:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUCV5EFtCDjGb0uqOManaWUo/JQI7Uorr/x4VaKQgYa1RMmZ46Od1Ekgp8fkmfzTS8dceT X-Received: by 2002:a17:906:34cf:: with SMTP id h15mr28890422ejb.526.1624961309986; Tue, 29 Jun 2021 03:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624961309; cv=none; d=google.com; s=arc-20160816; b=lMs797pwDCblHGFnMBkPDV/Hi1m0Knz7PdWx6TIz80P5e/OiWgs79ZeD0Of/muO1r8 noukcECWWHa/HcOWL3QdEJuZpQTrSokzCyVtP8BqbPeVj88UuczlcpLJnbfEStNmP7aX dqleuDPG0KoU41JP4sI8cSh7XNcQ9tGXBPp8t9KSmfSDjFJFxZriRj9aYZGMZ2hP5TXS J8kE3IPQCWKPcJ++nKJcY176BBbDpW/UCnhHPaTvsL4VXbCgPzlQE2HnfAIhk45QYl4x Tnsp4o894e5vKHujOE5co7WfPfDIyvPBzaURoGOSbd+aiTcSi0TSUk6ylFBRH2AV5IMP NAnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=pJi/cacmFxQUcBSzaI74Np6aoW9gHWInkj3JLhS/FOs=; b=skLzvXhmP2mNhOh9U/fwyQGrwSNWQvveeJ3OWoM0KX2Jj2wuFqSf9OpmTArWySTJ9o Dc3Wk3ZP++iBJ9LGXKqAhInsZk7vtD3oJsaKD1Bh4pow9BMqf7oJB1amqZBpQJtRmnkU pw1XAXq/fDI3VIbqH3skTs9ZXFCEtGtRX2lZk+jg4EvwahykAKPOZc4EieH4FjogvSUX c0COJxyzSy2IIPs5WLUXCT2asNYtPpcWyXVm/DkS2cU/FN8vgZk5MVekc/96nie5OFrn A13c6m8+NquwKc2ntX8Bz5AvViTaXsFgvd0T36+UCP/P9p2tjyQnmV9djyuK+MwOkxuJ EOpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b="UWlf/E90"; 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=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r25si16595754edp.221.2021.06.29.03.08.06; Tue, 29 Jun 2021 03:08:29 -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; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b="UWlf/E90"; 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=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232982AbhF2JtC (ORCPT + 99 others); Tue, 29 Jun 2021 05:49:02 -0400 Received: from mout.gmx.net ([212.227.15.19]:52261 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232498AbhF2JtC (ORCPT ); Tue, 29 Jun 2021 05:49:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1624959989; bh=pJi/cacmFxQUcBSzaI74Np6aoW9gHWInkj3JLhS/FOs=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=UWlf/E90+onLxJXqRC7C3kUtQ02ifFUKQYCoJc08tMuLXc57QZI599BWsf+REtMYB oHgzjY516rzFE+r+iDWSXBRrhAM5sADlDmVeXCfebu/EfcE/e0/t6pzeDEx0HpmQWR g+vXfCbUctm9vH/u/YwJ0BS688jfuLeh0dPvsNJE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.178.51] ([149.172.234.120]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MUGe1-1loz5i1bWN-00RJ9y; Tue, 29 Jun 2021 11:46:29 +0200 Subject: Re: [PATCH v2] serial: amba-pl011: add RS485 support To: Jiri Slaby Cc: Greg KH , linux@armlinux.org.uk, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210618145153.1906-1-LinoSanfilippo@gmx.de> <5d7a4351-2adc-ea31-3290-91d91bd5a5d4@gmx.de> From: Lino Sanfilippo Message-ID: <5c249dfc-90a6-7724-e884-9516aaf829fb@gmx.de> Date: Tue, 29 Jun 2021 11:46:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:xYwhpQvRI0zDNO+iXqJG6m9MmmnEhNVZH1wKLAF+u21EhMPRiuf zC9A9QzUc1bB62/ex6qSRxOkMt2kJCIdQHYOz+7FoTkuOUa0MP0VN/NiBPvM4jd2xHhjs2D BQCDBpqt2hcJZDcA7MfMD4zU0x4FSsOZE/LI72hxHGGSekrbHoXfWaY6V51ejp/CH0YTxEl +z6RKrdtjbas3fhE44foQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:im11365hbSo=:k6+CMDJ9f97ZSxHRqHZbt3 ogTizEMC798B5fGXqRW6vBrsRQKurgdXzTBM6eMi0gSXC2vJljAYJenX50xnB8YnkwKTPtUej DkQGIoknEkApVh6I3DQCwIF4NOzcidFe/lH2MEViOTUBadSbj+pvi7JepgH2y1iLaI35A2gyP lv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by wrote: > On 25. 06. 21, 13:21, Lino Sanfilippo wrote: >> Thats right, the logic has slightly changed. I thought this does not ma= tter as long as >> we make sure that exactly one of both ON_SEND or AFTER_SEND is set. > > I actually don't know. But I would remain consistent with other drivers. > >> We can stick with the logic >> in serial8250_em485_config() (i.e. always set ON_SEND and delete AFTER_= SEND in case >> of an invalid setting), but I think this will require more than the fou= r lines that we >> have now (especially if we want to avoid the !!). > > What if you used only a single !? > You are right, this is the easiest way to keep the current logic. I will d= o that. Thanks, Lino