Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp454529rdb; Thu, 5 Oct 2023 10:34:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGQOSrfLyaJWIUOYapXs4iAiup74P1gbkygkfhq56rPKm1m4zkUZqGnaHPMWveoi1asOv5h X-Received: by 2002:a17:903:2308:b0:1bc:3908:14d with SMTP id d8-20020a170903230800b001bc3908014dmr3328160plh.2.1696527280060; Thu, 05 Oct 2023 10:34:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696527280; cv=none; d=google.com; s=arc-20160816; b=TZ9K0uNqooY748jeJVHKXz/+QKWaoZ/neSR0kqqj5AdyWXAyvXr17AdGKm+Fy28fxI TNnGqjf1ryL9eQenyChmD4Elf5Cmn+/TXNReLSeFqLDZGl/rwPxvfFZf3iEEeQbyVdMT 0CmHGpVmY7u2B89G+SjhSdV1p05lQRMWdgRp0/i80uHybqpaZ+Vh9q9dMQtuKxqKiudz X4vDsBkvDVmamCB7WTvv8zcpVYP1Ddtx2h3YGvXQpBpLzTB+9iX8doUwr8D7t20BGNAn m4TrviCBTaY24B/44RL/l5PNTuK8hPZeGCX9HZ1uKA5oTH/vYC/Eu6tPm39Mm8RH7MLD dDlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=J9h1C7mMFFEVucuVuABa2VPJxriIZ+QMbDLSt604QAg=; fh=md5183r34lo6XV/8nj37kiN9w2MO7XslQPJSAPF5Ciw=; b=xmB8vNfvfFWnhKYdxJNRVHyCnehKstQcHd7l9uAqRLOfM4UzVBYknOStDC5mMZM2co GLNWmgr8exQ8HS/70qqcHuZpFM7Av/vl+hvU9hfELgkfhk0gbwuu/wNZzOD1Sq58LssU 3hfkd0+TWl5pE1uwicdkqZe/jUEhH2z9IOMIgsjl9IKFWg8dnrfvpi/60PVSBCidzzGI 6DY7xlGv27ZiK7cTMLVwBMjhVH80ZVnHcCkrLi3A/bhLLfN2THdc8kiU2UmAr98wjr5F ZR/w/U1zS8MM5UUQn2ggkvtE8CaAirWZQMq7uV+UwIowYnlUGozZLX46pLbi6Mp4VU+O ukNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=LuVwkCVx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id a72-20020a63904b000000b00563deb65f93si1839693pge.200.2023.10.05.10.34.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 10:34:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=LuVwkCVx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id A2B2380BB5FA; Fri, 29 Sep 2023 06:47:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233383AbjI2NrQ (ORCPT + 99 others); Fri, 29 Sep 2023 09:47:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233379AbjI2NrO (ORCPT ); Fri, 29 Sep 2023 09:47:14 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 040841AB; Fri, 29 Sep 2023 06:47:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1695995214; x=1696600014; i=linosanfilippo@gmx.de; bh=J9h1C7mMFFEVucuVuABa2VPJxriIZ+QMbDLSt604QAg=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=LuVwkCVxShKxpuVmfK2vh1MpnI1xEN19lVRaYia7LPuKiQQGvQO95BSukEVdStfW6744og1rgIt B0X6pbqEDkT9XUop8DUy8a9UxUha+Cwgt0HhCne6ibLiDH37N9Pc3+9B1Q0AHSSOgr1yiJGGlq6pB +iFQvGPAIDdW9QNlCyNQpR2etxO0d3omIyFb6JF3JhrhIfnOr9GIT09UAdfhrVbJV1AR9mBlXTGkj xtNbME8tHXpdSV2B/iOGn/KeI2kBMK7F2WQD5iVLlvCfPBqVVwciROgGVN9nCd8/UPUUDQGXY6TIh tJi3i5auLGJGLBqK3dU6YN4TdopHFpKPYYhw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.2.42] ([84.162.21.41]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mi2Jn-1rH8jn2bw1-00e3S7; Fri, 29 Sep 2023 15:46:54 +0200 Message-ID: <8fac0a79-cf0b-f35b-4e5e-e8f502bb5367@gmx.de> Date: Fri, 29 Sep 2023 15:46:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 6/6] serial: imx: do not set RS485 enabled if it is not supported Content-Language: en-US To: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Lino Sanfilippo Cc: gregkh@linuxfoundation.org, jirislaby@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, ilpo.jarvinen@linux.intel.com, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, lukas@wunner.de, p.rosenberger@kunbus.com References: <20230928221246.13689-1-LinoSanfilippo@gmx.de> <20230928221246.13689-7-LinoSanfilippo@gmx.de> <20230929063942.qukemr4o7l5vdmud@pengutronix.de> From: Lino Sanfilippo In-Reply-To: <20230929063942.qukemr4o7l5vdmud@pengutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:VwXiyU2/W3O+MjSrCdfcHxCMWlRBcReFiYSjXHVBs3fR1SpPLUA xgSQy2vr5a5a4wFI0AGsENjTxU7xo3lu5oMEH1X4mtWssGCL9d2LCJ/o3MB8ghZcZeJaSEs 2qxxyfCuc+EIebFakAoRHr6bU1YiStSlagDhHh3VOHqeh+edoaSzXNIwyAUfDJWwzLs3wCx 06Ajeu48JzN6aSrZwOjAw== UI-OutboundReport: notjunk:1;M01:P0:HXJNl3SCBe8=;pARrZ1ytb8liKtVw9iNoI01cxPG I91ucI+TF92KhiXUVhQanCVdSVGK182fzBDki6OP5hJibVztMGuiSNITuig/ouJmp6K0L2B8R 3GLUvAutC7TrcZRptEkRuAjTyjfJCX2814f4iMcVLO3beUnaHpTmdkWmk44dc16FxzyxFKCnM Bqvo6y6i41IEhTDajfaR6broL/g9Pp7fXIxiMJUGm7/SC8U87HKXMtO8I8HGpALRuEQpDO+I1 cbj24ZI6HieWxoZr08CJIQlt6Cnun5E6oHRkBICUr/giLtW57BLzoT63su33CT6Hb1feBuZ+5 wG74m2ocKdNcHHNuexC3zmtkeuQHaS2iu3XRxx1CxHUGK3HnChifBb2P2Pusk/0K0A2UUPUqf n/I2xKeX2jCizF3tEM8johM4cSFV10/oPLXG6kcglMNVkqEYBBCKY/RzMuRqfU88HdqkUUx5u I2dyJeegDk7tG5/P5EGuo/x7+Q/00e1N+LiKywwXe789fH0RippyZpS2gymGY7qxYtUVfL+LS gNX5AUOA96xozg155Px9ahwZIjsGt2VR4qUay0Q8BphlRtL1lQEj/GOwqtrIs4RSapOX9L5c7 hfhzhEs2kxc3HsYachhxJDpfVbtcLfkqpeoS8iGObLzeT0VNlpDhdXzpKv6ZR3YDcJaGQXpcy X598g87P2KgXnA9j7m9lbMxt37VGbILtcS6ghGpCXG/SI9wXoDj0QryEnT2KwDNhi0wbCGXh0 A1LT7Nr7rHCcb8gjC0M2sF4azwkEYFp7ds4ft925SRIEwZhI0vswLkFbGzwV7jFEn3+xj+woL m46qsy6vuHs8u5gyWeLCvoOaLX4SQWSvR08lrbC42zVlsSpK4rIH0fzoWqnohiAYCCZ5EK4cG ZkccQe7ey2s9omyGCLBHrPDWehb6/XuweUGsCa2rEsSGVo6+a0QST/HYUvxlV9maxaodmCrsU 8YHg0A== X-Spam-Status: No, score=-3.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 29 Sep 2023 06:47:24 -0700 (PDT) Hi, On 29.09.23 08:39, Uwe Kleine-K=C3=B6nig wrote: > On Fri, Sep 29, 2023 at 12:12:46AM +0200, Lino Sanfilippo wrote: >> From: Lino Sanfilippo >> >> If the imx driver cannot support RS485 it sets the UARTS rs485_supporte= d >> structure to NULL. But it still calls uart_get_rs485_mode() which may s= et >> the RS485_ENABLED flag. >> The flag however is evaluated by the serial core in uart_configure_port= () > > I wonder if this is the code location where this problem should be > addressed. Or alternatively don't let uart_get_rs485_mode() set > RS485_ENABLED (and other flags) if rs485_supported doesn't suggest that > this works? > This is indeed the better solution. Especially since the check is then in = the serial core and all RS485 supporting drivers benefit from it. I will change this = for v2, thanks! >> [...] >> >> Signed-off-by: Lino Sanfilippo > > I don't know how picky Greg is here, but formally you missed to add an > S-o-b line for the sender of this patch (i.e. you with your gmx > address). > Hm, until now there have never been complaints about this. Is this really = an issue? Of course I can also S-o-b with my gmx address but adding two S-o-b's for the= same person seems a bit odd to me... BR, Lino > Best regards > Uwe >