Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5015082iog; Wed, 22 Jun 2022 10:09:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tS7Dyfg0bIGMnfQeCIStvBxJIffcoSQbY6U3Ctb1Z8kjBRDQ6JTF2fYq5Vc0vNRTNbTNLS X-Received: by 2002:a05:6402:249c:b0:431:3883:967a with SMTP id q28-20020a056402249c00b004313883967amr5379963eda.264.1655917776663; Wed, 22 Jun 2022 10:09:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655917776; cv=none; d=google.com; s=arc-20160816; b=o/tSsBnRMvseIZ5AzvAT46cTUZrsqBzxy+5jCQqmpJ1XH6otdkUZiS0bELibvG7X/x iNqrHzi7c5mCeV7aEsrDhm4a0SOjj5S5mtRhKquFFO2kuD830zC4xXxwJE1RgEKHs2wp zCOHYPGio7BXmUQUlO8jhMsyR91lve1vE9OebjPwachKXO7I2RxzaJRhnfofSfbm8a/F 4bIKhbsZuOoH4+/x5nN5G3Tz5vrCDlgfYpPcxeQPU8w3/r9Ssm3vrdTM2uAGaGhX85QJ yz6FnOsg7f58t594RTO6XxKG8SpyyeeJms/HkGllJQo5wWkbQAvglQuyefTCLjYTHu50 tuhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=DOSMUb85Bb1F1PsoS2/joFcU7kzZ0aMIc+F9IeLCops=; b=SR2WCH7dRxsO3YdSAVN+3AFgwFjC81EGfu65DEPqoscb7GGp/ffG3X6GZ7OiT/M1rQ bZr9GSmwKoCrXCl4726RMxhoXkVVKCzNoRBmWd6IdKM7FLQMbVrb+xOMeYeNfEN5A60j rV+SM3EU+P2i5VGxR/X1NGT5yeYqH29F6sFjFGBK5WEkmiK8t49aypOFRSOFFtjVIJxr npNRHQhM7bddBcKcQ/x5ehkez3wM4IOQG/G0PEngRhyX/Nng7HSvNsobpKJtggmyT5/K PqkAx7193Yd2ngVP+yY8zKxIXHSUNeGM9qKqNErDj+5uRAHO3zP+CdWW+RfNLbFRPcY8 qVoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="VwG/VIW2"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm10-20020a170907948a00b007111f8df172si3807255ejc.271.2022.06.22.10.09.07; Wed, 22 Jun 2022 10:09:36 -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=@intel.com header.s=Intel header.b="VwG/VIW2"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376451AbiFVRFG (ORCPT + 99 others); Wed, 22 Jun 2022 13:05:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358953AbiFVRFF (ORCPT ); Wed, 22 Jun 2022 13:05:05 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEBBD3ED37; Wed, 22 Jun 2022 10:05:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655917503; x=1687453503; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=4ruRy4f9EvQNfXtXFVy/TM7+tPV8XW6BRuYpvrsY5Ws=; b=VwG/VIW21YUvoT2UqK38rg7DdX/YQYy/iewuph5SDdmjPuVf2kwRh5WI MGSgYAZyErw1w+OhKcsi5Kuo1nTlb0lyO137vTBvFvFwhn/2+aA7V9h8+ Yz8wIinSqcy/Qbk9zO2NYkOOr79/1kMVpF2wxHMQlwAX7+eNQD5XZGHb4 c0ERYdoqYtH910aEidPXzC6O32qPOlY3YOz4Nhr7TAhwP1YiOpUzdiO6Z UznLAKfeEmOpCqrvsEXLjALyENeGYSZhdHEvocxx2TzpN1vwZHThz0MWU +xXrMjua9aKyNmaE+80GedYImT35A4mLnBiiHuNiCL4Tk4TnI9S/tw0Wd g==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="260297722" X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="260297722" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 10:05:03 -0700 X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="644294273" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 10:05:00 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1o43mg-000sUA-HH; Wed, 22 Jun 2022 20:04:54 +0300 Date: Wed, 22 Jun 2022 20:04:54 +0300 From: Andy Shevchenko To: Lino Sanfilippo 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 Subject: Re: [PATCH 1/8] serial: core: only get RS485 termination gpio if supported Message-ID: References: <20220622154659.8710-1-LinoSanfilippo@gmx.de> <20220622154659.8710-2-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220622154659.8710-2-LinoSanfilippo@gmx.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE,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 Wed, Jun 22, 2022 at 05:46:52PM +0200, Lino Sanfilippo wrote: > From: Lino Sanfilippo > > In uart_get_rs485_mode() only try to get a termination GPIO if RS485 bus > termination is supported by the driver. I'm not sure I got the usefulness of this change. We request GPIO line as optional, so if one is defined it in the DT/ACPI, then they probably want to (opportunistically) have it. The certain driver may or may not utilize this GPIO. With your change it's possible to have a DTS where GPIO line defined in a broken way and user won't ever know about it, if they are using platforms without termination support. -- With Best Regards, Andy Shevchenko