Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1687786pxv; Fri, 25 Jun 2021 20:43:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1zBCEppO68BIYirLOnIAK1qKOnbVdkY6cR2HrE1b/4QC17qMK+yptNbpTwMIPLro1Wujs X-Received: by 2002:a92:c0ca:: with SMTP id t10mr10469859ilf.241.1624679003859; Fri, 25 Jun 2021 20:43:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624679003; cv=none; d=google.com; s=arc-20160816; b=EGHz0rLUEGDMQ/oO3G0TQmndn+h5C0p/hNrTRbfHbklF0T/DmAHu7RaJ+LPEwcxKdL r0HepqehnDWGMpeWxAdBk/fiJrL0krPK6TjgXpkJXXZFNpN73MM7clEojz5UU+Uh25I6 EsLubT7nZFApQ4cO0CHfzlLBxrdikv98gu1f1Cs3fxeiGUmMZLRDPfL9/Qo4phtfieC3 HbHKwc+U9AwzEkt+Hgp/7GLHiwkplNuH4wFmst8S2V1IOpSOSPvcZAU58fXhPLsX3wVh 4aLpqpeqa2qnXKjtj0SAIRz8GV133td/rvcPV8+PSf/o+6UI6fxQFZuWl5RHL67XtnOU EoIA== 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; bh=kb4tD9QFzLlnC9axfCwl7b++Nsd4PGLa4yuvLPb9qjs=; b=XHL5SDZLnkmGHSYNp+a59epYO4zRGpTjAMLqlRdhpTFthH5g9U0dzwUCbWztqsSt8u mV22HZFQXUUTHqjxnW+VdlDLzVbqJYPlbkyF35+ez8G0ezLaaa3XOodgbzV2HkBCfq+x 3jCNWvoz4B4zVtZBMHof0ZNx9Q7UFrOlAVaMR1Dj6asgOdLFHRVE6HH2JplXTZGblHbq W9bt31NCtJ88j9zNyOg3pLFj3RjNt9T2sfXN0eYCOYjpm0SNf++OrLNoCQbGbIuCGs5p eqBUkxjkCwvsaoHkzAPJBd6LVk/JKbF4RyPblok+CFzw+HNOrqvw/HxcVa1Hj7sOxVMH COlg== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si8345196iln.71.2021.06.25.20.43.12; Fri, 25 Jun 2021 20:43:23 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229991AbhFZDoL (ORCPT + 99 others); Fri, 25 Jun 2021 23:44:11 -0400 Received: from mail-ed1-f47.google.com ([209.85.208.47]:35660 "EHLO mail-ed1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229906AbhFZDoK (ORCPT ); Fri, 25 Jun 2021 23:44:10 -0400 Received: by mail-ed1-f47.google.com with SMTP id df12so16223575edb.2; Fri, 25 Jun 2021 20:41:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kb4tD9QFzLlnC9axfCwl7b++Nsd4PGLa4yuvLPb9qjs=; b=ao5aTtmjma7bYgPvBvcekOtJHkp9LI0XHIID+aMA2S5DprLH+PBQBzODJ9ESextEdw bfp54WEQqD29OGatiPipHzMisF3bt3kd25wiQ+5PIPIoFO4Py9Xv7yJxYqJ5or2IO04P oVxAcHYljXW3kCe/b51Z2MRd6FE8WhISnuh6PdMjE1kCDDqvqxFakNvNtg7tKQIhWc6r sKuFtcVES5lDKRWdehqITuxSogiUReY+SztXCbNsvw4jDgRXdgw0dOX5figLJi4n+XvC CtlBYWIHSWaGastzRFF2LYCoVIAJ5VGDPAl7OLrv/x2GrcsT20shBA7OANH/sjSCW3be ocDg== X-Gm-Message-State: AOAM532WLfZHo5InzB4x6mXBOoWxhEpAh00GJQvYLAhLvSf95SVKPx5n K50LT9JGIh+6LUFr4naHgd07n1xboQs= X-Received: by 2002:a50:a447:: with SMTP id v7mr19323859edb.183.1624678906979; Fri, 25 Jun 2021 20:41:46 -0700 (PDT) Received: from ?IPv6:2a0b:e7c0:0:107::49? ([2a0b:e7c0:0:107::49]) by smtp.gmail.com with ESMTPSA id d13sm2470177edt.31.2021.06.25.20.41.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Jun 2021 20:41:46 -0700 (PDT) Subject: Re: [PATCH v2] serial: amba-pl011: add RS485 support To: Lino Sanfilippo 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: Jiri Slaby Message-ID: Date: Sat, 26 Jun 2021 05:41:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 25. 06. 21, 13:21, Lino Sanfilippo wrote: > Thats right, the logic has slightly changed. I thought this does not matter 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 four lines that we > have now (especially if we want to avoid the !!). What if you used only a single !? thanks, -- js suse labs