Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5634929rdb; Wed, 13 Dec 2023 14:57:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhAnmU9KQy48xosb6XAMsBaAsF+LkbfL7KUuj0AEBWgf6xtHJwWY9dIsHA7BRyJG4qfZHE X-Received: by 2002:a05:6870:4201:b0:1fb:20ca:95df with SMTP id u1-20020a056870420100b001fb20ca95dfmr10208366oac.39.1702508244885; Wed, 13 Dec 2023 14:57:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702508244; cv=none; d=google.com; s=arc-20160816; b=G2JJPshWvGQ4NABPYX+48Il5REVAaynsqkCpIx8dZ3Jsy+JT5c6vw0gj5N9wUUp+yo yPayZYr7EHtqkj3wGo8Th7UulpvqD0U6TTzEOKDOBhxGzoXnd90tyYngIwlxT3kaxmCK G9rtnw3lpHyaSdpf03uFgn48R3HqAV4dhuiLWPt9JE3DnqIYyvkAp9OyLQpXVr+9cUhx 0Z+p0EWQXWoVwx0VXqwda/SiKbEYt2EtNkvsSnaE9HwMhf332ns2gZDssg8pnARhRe43 0IQnrXLIhrwb8v27+y0o9L4CjOlckjsuBrnRxSJgu/wdoaTjFxU6BN9admWoS24Spnzk 0Qrw== 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=/y0wEErfQaUWPQ8zqwwuu6OFCzGo6/tXPuv3/jpuNy8=; fh=SkD674BMIGfh2qToS4d/FKmfYwG/SWT/z5iPh3MCh2M=; b=yB5wZ5Smx3K+TzRvxB3Bsc3oMmFxWAPHkM68ngdBI65fIBVJVw+/bhLkxPJMb1ROFY HFK6MeV9hQDzyue3RTRjWVUw0dd9xNh956qe+K57H6VD64D02h5D/RImZBYGMP/JgD61 J9+ypLG1K43ogBBCoTPw1hRqdqPJz21pXHjLSO3TZvbuqhf8xssc+bjEBo/8kFIuXa3l YrBscEKHK8Y5q2Pqs1D1U5wXCFFum2kGwhZjpMZpJVR7Q4oquVNmucP+zg8Cy7i+hT4q diZ/p4EWuehnk1cAiLuDqZhpA+f0QzTIjUNBw/p1DpgOjK9CeDKCWPv2f9qhxadxo51a BdJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=bCCAkK0l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id v18-20020a631512000000b005b92d40e11bsi10344644pgl.168.2023.12.13.14.57.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 14:57:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=bCCAkK0l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D396F806CC14; Wed, 13 Dec 2023 14:56:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229835AbjLMW4G (ORCPT + 99 others); Wed, 13 Dec 2023 17:56:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229763AbjLMW4F (ORCPT ); Wed, 13 Dec 2023 17:56:05 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4DC2D0; Wed, 13 Dec 2023 14:56:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1702508133; x=1703112933; i=linosanfilippo@gmx.de; bh=/y0wEErfQaUWPQ8zqwwuu6OFCzGo6/tXPuv3/jpuNy8=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From: In-Reply-To; b=bCCAkK0lf9fSZsImv9lKbhuShujBCQcLLR1Jb70gV1zYFcoM5v6/ICL8qlXbVbRN dvdIvIC9R85PhTXE5n8s/SMVal/g2NhXsFrrLk9a4fW69wfUunhWhD2wiS/Jk8Xdw 2S2QOgmApAH2YhG5HVETl4u9XGHgOWPFxUjqffeh13hb6NxZ2mgh4MSd4tV6DTmEY An2fnVcUpO+uq122g1GtxKSKcMWF2tFTSyRtjdMQ+hGGFbXbFrS+N4WdJP/xkBVcf DmvW26doF/yDFgxclctVck2hlouTwk02ua874Q7C8/F6S56Dd0gNvSZJ1n39c8TYs kORuqBL6dSwnpEyQHw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.2.42] ([84.180.3.177]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MKbg4-1quvKD12Hk-00KyCf; Wed, 13 Dec 2023 23:55:33 +0100 Message-ID: Date: Wed, 13 Dec 2023 23:55:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 6/7] serial: omap: do not override settings for RS485 support Content-Language: en-US To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Lino Sanfilippo Cc: Greg Kroah-Hartman , Jiri Slaby , u.kleine-koenig@pengutronix.de, shawnguo@kernel.org, s.hauer@pengutronix.de, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, cniedermaier@dh-electronics.com, hugo@hugovil.com, LKML , linux-serial , Lukas Wunner , p.rosenberger@kunbus.com, stable@vger.kernel.org References: <20231209125836.16294-1-l.sanfilippo@kunbus.com> <20231209125836.16294-7-l.sanfilippo@kunbus.com> From: Lino Sanfilippo In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:SIgpHmzRjggQCx8l60M5/USwq0CPJwr19UwqrlNnMnZ1m3b83Na HKl5Zl2OI6jeOdSZbucZoVGUMhR9Pk7j4jXtKRpSWj4H3CxSbYwfCtRfURB1PpXRyGgjJ4L aPg9S99Ipg7JliKoiDJGHYbvwJGJsOXxNuPd3Wvmj9kflxalMxED5K3V8OD5zkGJMSSqqjE qQDuBfk6KHNbthMlDRbfw== UI-OutboundReport: notjunk:1;M01:P0:lTOLppwMnGU=;j8xm1OPssHUyNtBsIBw//ew0224 zudRD/Rjbppd68nYKUmBLkZvTdD4DIeTiSFjjHCcj1lpLc1dKWGRKTwnjsvVfi70lYeq4R76S sa8ExvDX1+XWnxmvVVtFKLH634FV5GsByTDZBD5LrTVY1+4TIEh7joUKTBR5ZqEfvHHg02nZx ZVCUfWwoGpAAM1szFxgd/8gTfSCe3ow/WzqPkP536f47gjUGcoPUubFv9cBaI/uqHxGdsBtJ6 KzV90wXaJkGP2kKbD2IdE2BX5QIAtncLsE11y0DztZGvTMrFTsukDavKA19IaFkVcnrZ7tIh7 Q/cCB+tV8u5D4Qyzs3Er9RotKpQqYFwIhbWtkyw3m5oh3VQqBLUmxssa7TwL1UpLZaqGUrLfh bo1vAPdeE3/hMnW20i6u4gw5+PvYg55HWO4cu8rh7pvPtWD1P0Kce8bw5oyuSatymwMTg9tbv VsJLbboiwo2MyV74nSbYHC2ka9W8llCGd45r9DVbHqe0+jIJsV++z08bSASsZR7sqk+Ai+71a LP6E6E0+SgFgHDq9Gb1hHm29RqrtMpuR8N70I/s9Ei6bLug8XWKSPeFbtnFVCJV+XuT+iB2R0 fg2FTk4FbYneqLwwK6ynpNyzIzwIbxPJxlL5AgXfm2sjSI349NheCf0zwuTIIa/muD6iVXC82 5CCQEAe1ejkg1Iz6mPginHJ2c9nWZF8RrFCdGT9sjtMC318cd2o51p57eO/f34WTJm0JUZYzK Uxczlp7sQkht8eor6fsCZ5GDN+Ic3OJk3ph6xiSBkat+MYY4ugN/nluiiROa+WWZHSiURj4+3 jWQR3wv8lNNaK/L2QOV6wGCLc5Y3aZQIAYRgfzA0/dIcOvSGJBZv72UQbzoN6d0E8Hy+muGom jErW9v1rQTu3mwDsF05MXEnRrDYXS+1gXIOitwF/jtMjytRtvVgFdxNkblrVDUIL2xZNJ8wjw ndEj7w== X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Dec 2023 14:56:16 -0800 (PST) On 13.12.23 11:26, Ilpo J=C3=A4rvinen wrote: > On Sat, 9 Dec 2023, Lino Sanfilippo wrote: > >> In serial_omap_rs485() RS485 support may be deactivated due to a missin= g > > There's no serial_omap_rs485() function. I assume/know you meant > serial_omap_probe_rs485() but please correct. > Right, I meant serial_omap_probe_rs485(). Will fix the misnaming as well a= s the typos below. >> RTS GPIO. This is done by nullifying the ports rs485_supported struct. >> After that however the serial_omap_rs485_supported struct is assigned t= o >> the same structure unconditionally, which results in an unintended >> reactivation of RS485 support. >> >> Fix this by callling serial_omap_rs485() after the assignment of > > callling -> calling. > > Again, the function name is incorrect. > >> rs485_supported. > > Wouldn't it be better if all rs485 init/setups would occur in the same > place rather than being spread around? That is, move the rs485_config an= d > rs485_supported setup into serial_omap_probe_rs485()? > No problem, I can do that. Thanks for the review(s)! Regards, Lino