Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3721626rdh; Thu, 28 Sep 2023 23:44:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHCOmk8gAuetE2bjhNHYFjW0TW9SuVDroZ33LPzJ8W7+EvEUactcIGQ1ZqHP8B85LzfIi8c X-Received: by 2002:a17:902:efc4:b0:1bf:25a0:f875 with SMTP id ja4-20020a170902efc400b001bf25a0f875mr2813779plb.39.1695969890328; Thu, 28 Sep 2023 23:44:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695969890; cv=none; d=google.com; s=arc-20160816; b=Uln9duNaX73n27LiMkoeePlFapBNasjG+f5T6c8IBTEf0+CBiJvrpKqEkF9RBs9i4c GCVc442ahMJrqufnkzq5JMy8dU05QAldSyYZZtLfiBLa6/uVT5FH/5MlpbMMzC3C9y1+ 9AvSpNAkLuvyvx/IBmnZVlWZhRWW5VVe33L9+33pLytfijcYlEtkffus2p+jaNP2yKcs rqmAKIsMig8yIi6EKa4GJKXeFlPso2LKUIaygTnBqZq01dT2C1PHFnrfTCvsbCnlzyVU bphgzUQF7mAEthYPYlTXKTkj51Iq96ApP1AStu/nUuG63+PMJNF0A3+kKA/yqGleiHuf IIWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=+96+GTEc5ovoJ0wimvUWw5P/yUC83QBZtmS6IfmlT/o=; fh=5q8GxWoD/izGartH/IgVjhW4LIBhhwzALKms7itwV3o=; b=bFNfqeinHiVAAztM3VfOWbYl1Cjxyx4QXjKcgURCWUr7Pq1dchrph7iam4Ls7+3CDY 9qxy3FlIFnw6gCFMauV4E9kkdeX9uRKOQ2r3wQaPLzcOslCXRaiGGz38KqVqYCFSwlGv Z/UK/RyXdLNJzVs9l7AN4skjA/zSQRWUtMnCFgwwlZSPtwBZzHKE8Z13ymFD1QVHDBTo Znk+tmS2mb0j3djDnPC1LQXDNf8/uqLzI8hjfx/u/0aJVBhzRiCxjCnbu/oJSnAVZZGn 9jyeEF1XfLFo++yCm4jOwPO57YjIBjmA/ZA7m7dk1QK3f0LTVArPgwSEoKDUZxXRCXyC JJBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id ki12-20020a170903068c00b001bb23874273si14519170plb.220.2023.09.28.23.44.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 23:44:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 96AF98095674; Thu, 28 Sep 2023 23:40:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232647AbjI2Gj7 (ORCPT + 99 others); Fri, 29 Sep 2023 02:39:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231429AbjI2Gj4 (ORCPT ); Fri, 29 Sep 2023 02:39:56 -0400 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DFF91A4 for ; Thu, 28 Sep 2023 23:39:54 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qm7A9-0001A2-2a; Fri, 29 Sep 2023 08:39:45 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qm7A7-009kiZ-1I; Fri, 29 Sep 2023 08:39:43 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qm7A6-005qWN-Nj; Fri, 29 Sep 2023 08:39:42 +0200 Date: Fri, 29 Sep 2023 08:39:42 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Lino Sanfilippo , 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, l.sanfilippo@kunbus.com, lukas@wunner.de, p.rosenberger@kunbus.com Subject: Re: [PATCH 6/6] serial: imx: do not set RS485 enabled if it is not supported Message-ID: <20230929063942.qukemr4o7l5vdmud@pengutronix.de> References: <20230928221246.13689-1-LinoSanfilippo@gmx.de> <20230928221246.13689-7-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yu5mcexmqulaqvex" Content-Disposition: inline In-Reply-To: <20230928221246.13689-7-LinoSanfilippo@gmx.de> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 28 Sep 2023 23:40:19 -0700 (PDT) --yu5mcexmqulaqvex Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 29, 2023 at 12:12:46AM +0200, Lino Sanfilippo wrote: > From: Lino Sanfilippo >=20 > If the imx driver cannot support RS485 it sets the UARTS rs485_supported > structure to NULL. But it still calls uart_get_rs485_mode() which may set > 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? > [...] >=20 > 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). Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --yu5mcexmqulaqvex Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmUWcS0ACgkQj4D7WH0S /k47wAgAniMRiA+dl7M7pf4WXvom8QfwhOuzi/ZJVgQr7Sj0ZAnIWPLIKiiaR0zP pNXr8qWggxnpYHw16JMLUsxCsPc5ZIudcgKzKBGQCbwG4TZreZJI7UGiV0UXoHku Owvhb7x76chV/Zp+pCusPHMZZiN1VlS90to/oc3FnAg4PH65vuyMvgxPAX3SSUhB qzHII257rxUIfET19HOFHKFyNgA4QNgme1XTyBxKbOB8tb+qLiMAFOpe+5XG/5Qq LxkfDfi1dV9UHpTY5JvlmwgODB04srgN2v5zsiZ+ghujB8T0RpR6aaTaMptqBCOy +Gusp1Hp79etQUN4XmNNMWn9ozjWqw== =Gvvs -----END PGP SIGNATURE----- --yu5mcexmqulaqvex--