Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5389799iog; Wed, 22 Jun 2022 19:10:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1upyBW1eUV0tDU1NeFJFb4GQ5kXzay3MEHq22y0SvI0yPhW5vJfl6qay771Y8YSD9lv+LC7 X-Received: by 2002:a63:4a4e:0:b0:401:baa6:d695 with SMTP id j14-20020a634a4e000000b00401baa6d695mr5690703pgl.259.1655950250774; Wed, 22 Jun 2022 19:10:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655950250; cv=none; d=google.com; s=arc-20160816; b=xu0LJAsuaHXOqP0xfVeSEAb0pyShrjFAMj20xOaDBWBBsOQbz72NGbeTtt3xjeusbt CC7fgRYQ6Uf/9HMmiTX7/I5Iyltv17z7u1wwf+ePlv+znRdhL6cSXovWfDtB4U91xRn+ gp5J/x20eExoEL6Fs4o+bEaziTlwt3YZ3hTB/T0tyetKmdcRcXJEUNYzpIQS+Qy7vhpY FO7jbTyEOrmgkhElt9CRCWoowUXjVYs35uKuCrYPapjy2AZaN8Ycytfp2+VkHNckgKfs vbBh4zoiJCjbMbiVfJXZ4FP1qo86nJOJfnVXOZUy0wwh9h2ACx1TScqeDen5M7AFNmh1 RfZg== 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=rL6VxwOlcQhp3wySuLV2AVqCnX+m+t3FXl4nhTKJ5ws=; b=SISJbLe4Q5YuLKM6KMbfkAyLSSZEWp498M924i/xrbMEljATRbd2VV9avPS71Zrk/7 j7uJPb7Xo5lbN8LC/gY9NmUGlXT8beTvLjZnHutE6tVjDB7axsydlzqfVVL31H2GsrmH VMXwQMWNSvWtIPLlO89sSIrFom7m1o1OUbgYDQdgBS4eQ+0/fZg2yKsXEw2t1JBMGY+5 if/IPWMXG536SIqizLUIZEXamI0+OFs05IWcyZFglhx1nnvujilCalEbm/FtgAQf8a+H 2MmDaM70mwIeUHl6W4/v3FNLxLgV9TL8diMhVPk7v+c5ZHHF9uxaj3tvy436jUS/joHl VBsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ZZwmaEkf; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a19-20020a056a000c9300b00510538e14f6si26418198pfv.364.2022.06.22.19.10.38; Wed, 22 Jun 2022 19:10:50 -0700 (PDT) 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; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ZZwmaEkf; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377464AbiFWCEN (ORCPT + 99 others); Wed, 22 Jun 2022 22:04:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231310AbiFWCEK (ORCPT ); Wed, 22 Jun 2022 22:04:10 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53D7D21E17; Wed, 22 Jun 2022 19:04:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1655949824; bh=rL6VxwOlcQhp3wySuLV2AVqCnX+m+t3FXl4nhTKJ5ws=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=ZZwmaEkfEIryCj9VqC7uZKxRfBg1xVaL+Asbg5SQZSd2PKLffCEJAyA7+6d5DPPEy SHKQ8Jcb+ke+izHiwfZaeGCZI04sSEFZVNQBXaiZkVxsSYwH5cVUGGGt3shBXkY3QM igo9R5ZiOHICwehDeIhdxupqsmYf4Ep2x+E5m/00= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.0.33] ([46.223.2.181]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MNKhs-1oIzDR3xIg-00OstY; Thu, 23 Jun 2022 04:03:44 +0200 Subject: Re: [PATCH 2/8] serial: core, 8250: set RS485 termination gpio in serial core To: Andy Shevchenko Cc: gregkh@linuxfoundation.org, jirislaby@kernel.org, ilpo.jarvinen@linux.intel.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, vz@mleia.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, lukas@wunner.de, p.rosenberger@kunbus.com, Lino Sanfilippo References: <20220622154659.8710-1-LinoSanfilippo@gmx.de> <20220622154659.8710-3-LinoSanfilippo@gmx.de> From: Lino Sanfilippo Message-ID: <7f502ad0-8c86-5029-8801-238402c48d0e@gmx.de> Date: Thu, 23 Jun 2022 04:03:42 +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:BHxZUtz7aL7d4oKsWy5vYNIC67j+odc8NKypfMy1GloZQ3bEmOb ThmaeUBb1M4nT3ehnOa/eJ0ynUyqQwiSPkZxaHMn4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nRYuY0RcKv9GODEdtYfiSRFltT9ZI07LJaCS1gUO3IYGlrZDfNgvhucKTS0g2jrszyZ0J A8FB+1Q9i3QpEDPrr2Sc9OzyDKOCFIW5KU7D+cNKJbR8yTHpBCuQKqAy5T/c7zpJCq/kMBJ3/ R69HGuocmsFmh+OIip9HnKQJKnBi9F/CxIYa35/RDhv6VRTk4ZF5/mHLvMdaHcolZ73nBGZdW tgODXSbx1j4Fd3EelYHn0gXiQlI5Vi7pH/QMNHsblr+m+XQDQuuuLtrQw== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 22.06.22 at 19:06, Andy Shevchenko wrote: > On Wed, Jun 22, 2022 at 05:46:53PM +0200, Lino Sanfilippo wrote: >> From: Lino Sanfilippo >> >> In serial8250_em485_config() the termination GPIO is set with the uart_= port >> spinlock held. This is an issue if setting the GPIO line can sleep (e.g= . >> since the concerning GPIO expander is connected via SPI or I2C). >> >> Fix this by setting the termination line outside of the uart_port spinl= ock >> in the serial core. > > This doesn't describe that this patch is actually changing GPIO to suppo= rt > sleep mode. So, it doesn't fix anything. Please rephrase the commit mess= age > accordingly. Good point, I will adjust the commit message in the next version. >> This also makes setting the termination GPIO generic for all uart drive= rs. > > UART > Right, upper letters should be used. Thanks a lot for the review! Regards, Lino