Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3817555iog; Tue, 28 Jun 2022 03:28:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1twargX6oPtSMqLAiME5lEreKW5RnNWk2MGutouv75wY2NiU24sqYUkRPvF4fng9t8B24V2 X-Received: by 2002:a05:6402:34d2:b0:435:9d8f:3328 with SMTP id w18-20020a05640234d200b004359d8f3328mr21875326edc.88.1656412114777; Tue, 28 Jun 2022 03:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656412114; cv=none; d=google.com; s=arc-20160816; b=PV/a98ritfQfF1lnLgzuZ99u/3Rc0kJtELs1934ROkbn8/gr+wAOEA22pDWLRnN5Lk riy3AkEkV1zjt4njfRCVff7PSW5etoXs0EH38TcC8Ucy9gNaRsgJ2fokF0LtxsMhYsZH 86FcGP71EUCDqNaw7ibgSo0L8B4JkT4SJEoD8ILq1j+PCuoMzN1dC9GcKE2SATXmiecT jUhK5609I5KYmkKo6z2bq1BNBw846+NsMO62oZ1Pd92UHn4fLEKO0C+xA9KHO/78/+fC d3/8GpcdynIFBqZK2YiI/n02u/CHS/QNU499nq1K/hTafgaC59RjFJKvZfkVLpDFLdkx Jy/A== 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=xQN4FgYVmtgmdeojtZ525SQJO8G8YNfS48lyC2F/Zdg=; b=V/IMOg7cgaO4UYommqdpoAD4dKbnBYm+1dnTkPmUi2vAxG3vvoWI+q3L/opnxmW9MU Cd9y88ezCg4uhgb2YFCY7ox8hkBp1YWv+F+d9fiuUMlMizZgnbUQIm6sClcnuN4zuoA1 1dq8SZU95j/0tXqcXAPHEqr31A043czZFjHhkruN+HoGuD1YyDxND9LZCNzYVhN1gV05 gAbwmIlcgPVxTHgj2ls9SJJmRavrCv+HoHhtSCm9kt8OnSIECPof/SmnS3aBo2JU/Qdu 521GtEvfMLIFxDPqeX+1yDR/bMK9CMRT2ffAbvO6ENMUIcYAvwxwMFoRUdC2TzAZAApD IZUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FtrVIO1v; 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 w2-20020aa7da42000000b004357f618f75si14452117eds.466.2022.06.28.03.28.07; Tue, 28 Jun 2022 03:28:34 -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=FtrVIO1v; 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 S1344125AbiF1KDz (ORCPT + 99 others); Tue, 28 Jun 2022 06:03:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344635AbiF1KDX (ORCPT ); Tue, 28 Jun 2022 06:03:23 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 401642E9E9; Tue, 28 Jun 2022 03:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656410602; x=1687946602; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6F1wA0MP/XvdHSRksenwLF7TskHY3KOWwY3P9Ta6U+I=; b=FtrVIO1vHiaP29zgONSRl4tI3ttpj3leE5JcAqttb5gNs+KQaH5WIHwo dOvSOIsfcrMEYZj8ahsSV0GMUNccRY35Mg7QHMAbv5z7u746aGl3KU5iV ax4KAs/0vh2T5JPkjDWSLzuHHuXs5pIDf+VNojsAu60ODycGYZCemPt19 ETJz0DrDp3R3PqQUn7jZJoGyAWTHJh7ef5FUxpNsZ+b8dPaAtH4G+nFO1 ULD6djPC4ZKciziPvW+gPICxAgRNuWK5AUd7lSBqf0jPfJy3bTiDAMEXI XkRse2XdR1CwdRlbDzf+2eX3hwEDvJNxt9l/LzrLc1lXDn1JQev2JdOWZ A==; X-IronPort-AV: E=McAfee;i="6400,9594,10391"; a="282790166" X-IronPort-AV: E=Sophos;i="5.92,227,1650956400"; d="scan'208";a="282790166" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2022 03:03:21 -0700 X-IronPort-AV: E=Sophos;i="5.92,227,1650956400"; d="scan'208";a="590261183" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2022 03:03:18 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1o683u-000wgu-T2; Tue, 28 Jun 2022 13:03:14 +0300 Date: Tue, 28 Jun 2022 13:03:14 +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 5/8] dt_bindings: rs485: Correct delay values Message-ID: References: <20220622154659.8710-1-LinoSanfilippo@gmx.de> <20220622154659.8710-6-LinoSanfilippo@gmx.de> <6c50fdca-aac4-aaf5-ad34-18a60fcc0aa0@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6c50fdca-aac4-aaf5-ad34-18a60fcc0aa0@gmx.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, 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 Thu, Jun 23, 2022 at 10:17:06PM +0200, Lino Sanfilippo wrote: > On 23.06.22 at 18:29, Andy Shevchenko wrote: > > On Wed, Jun 22, 2022 at 05:46:56PM +0200, Lino Sanfilippo wrote: > >> > >> The maximum allowed delay for RTS before and RTS after send is 100 ms. > >> Adjust the documentation accordingly. > > > > Is it only documentation issue? If the code allows this to be set higher > > than 100, we may not change the documentation since this an ABI (from > > firmware <--> kernel perspective) we need to support old variants. > > Well currently the documentation claims that a maximum of 1000 msecs is allowed but > nothing actually checks the values read from device tree/ACPI and so it is possible > to set much higher values (note that the UART drivers dont check the delays read from > DT/ACPI either, the only exception I found is max310x which clamps it to 15 ms). > > We already have a maximum of 100 ms defined for RTS delays set via TIOCSRS485. To be > consistent with TIOCSRS485 the same limit is used for DT/ACPI values in this patch. > > I am aware that this changes the firmware/kernel ABI. But we had a similar situation when > the sanity checks for TIOCSRS485 were introduced > (see https://lore.kernel.org/all/20220410104642.32195-2-LinoSanfilippo@gmx.de/) > since before we did not have those limits for all drivers (some drivers clamped the > values itself but many did not care). > Furthermore 100 ms is already a very high value for RTS delays (which are usually rather > in usecs range). So IMHO the risk is very low to break anything when values are clamped > that are higher than that. You need to elaborate all this in the commit message to justify the change. -- With Best Regards, Andy Shevchenko