Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1546026pxp; Sun, 6 Mar 2022 18:45:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuw3wALLDWTdRg6CeSxf/vszfeP7Tk0N38bTZ0PnMF+X7nhH2RWPXB39we6p6duQsD3xhJ X-Received: by 2002:a17:90b:4c8b:b0:1bf:9df:51cf with SMTP id my11-20020a17090b4c8b00b001bf09df51cfmr22120952pjb.105.1646621101080; Sun, 06 Mar 2022 18:45:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646621101; cv=none; d=google.com; s=arc-20160816; b=eRU0mUTH/DX2plBi5ANiUQDxBCIVDQ2/BQ1aP5744+ypbc2Xl2xQGtIAVy1CflEOOm zTmD/9dFyTfLQLAG7MgwoM5u13rijwFH/DQVsZgJ5VL1YJOYRylqn4SmZGe99VY9Rxpk rpcr37Ob4wXRUPGMrF7iIl6uJhmU6qTA4GEB356P1X+AVDm8ri0l5ASGKuf7GFnj9T6G XMzeYRvSjqlINJLRAk+DavFKXRuhqZdlDb01F/a9wPT3YvGORTPMNdwLPw2ipGExIo9q lQrR2vM2NfEkOjqusk1Ib9lhFiwr1gG1Ew1+dELjM9mqHe+6C46x8FXz4IFjHAlJhuay Tq8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=K/rU6xit8EhsHio11TCSYAQDWABhGih8mWOcXHUFoWo=; b=wjh5ur8tvJDI013FcSbQxikgdaQJrLuCw6h+vLdXVMfHLELe9NeCZdkhP2m0LJoR6X smOzK+SmqtnvUIHGdg1HSCbT0+AE4nGKSYp11cOze5Ka6U3nb0Xu/91VT4X0vzj2Jx3N G7dLjiffTTL7XBNE0ytFNu4+Mr6lDAuMoF+bc6YvlAyAOfhwvbhZxBGx/GQDYOCd5THs ZIxJMyIWBQd+JbWBMHr/BqnQqJGvwMRP7aATMokGnBFCJpPHL870Pd9KN4cD+X5T7BdQ Hu6NmddlUeDIVMWUj1kSa/zdjNLQhj9FNxE3B3KyKuN0C10fCw+uPoDCxjcshW+ZQjli 22+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u7-20020a170903124700b0014fc0394772si12174452plh.588.2022.03.06.18.44.45; Sun, 06 Mar 2022 18:45:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233376AbiCFSwq (ORCPT + 99 others); Sun, 6 Mar 2022 13:52:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbiCFSwq (ORCPT ); Sun, 6 Mar 2022 13:52:46 -0500 Received: from bmailout2.hostsharing.net (bmailout2.hostsharing.net [IPv6:2a01:37:3000::53df:4ef0:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50A451AD8B for ; Sun, 6 Mar 2022 10:51:53 -0800 (PST) Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1" (verified OK)) by bmailout2.hostsharing.net (Postfix) with ESMTPS id 9FFE22801BBFA; Sun, 6 Mar 2022 19:51:49 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 4D67943B1B0; Sun, 6 Mar 2022 19:51:49 +0100 (CET) Date: Sun, 6 Mar 2022 19:51:49 +0100 From: Lukas Wunner To: Ilpo =?iso-8859-1?Q?J=E4rvinen?= Cc: linux-serial@vger.kernel.org, Jiri Slaby , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Johan Hovold , Andy Shevchenko , Heikki Krogerus , Raymond Tan Subject: Re: [PATCH 2/7] serial: 8250_dwlib: RS485 HW full duplex support Message-ID: <20220306185149.GB19394@wunner.de> References: <20220302095606.14818-1-ilpo.jarvinen@linux.intel.com> <20220302095606.14818-3-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220302095606.14818-3-ilpo.jarvinen@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 02, 2022 at 11:56:01AM +0200, Ilpo J?rvinen wrote: > @@ -110,9 +110,14 @@ static int dw8250_rs485_config(struct uart_port *p, struct serial_rs485 *rs485) > > if (rs485->flags & SER_RS485_ENABLED) { > /* Clearing unsupported flags. */ > - rs485->flags &= SER_RS485_ENABLED; > - > - tcr |= DW_UART_TCR_RS485_EN | DW_UART_TCR_XFER_MODE_DE_OR_RE; > + rs485->flags &= SER_RS485_ENABLED | SER_RS485_RX_DURING_TX; > + tcr |= DW_UART_TCR_RS485_EN; > + > + if (rs485->flags & SER_RS485_RX_DURING_TX) { > + tcr |= DW_UART_TCR_XFER_MODE_DE_DURING_RE; > + } else { > + tcr |= DW_UART_TCR_XFER_MODE_DE_OR_RE; > + } This patch deletes lines introduced by the preceding patch. I'd just squash the two together, I don't see much value in introducing full duplex support in a separate patch. Thanks, Lukas