Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp917815imk; Sun, 3 Jul 2022 12:09:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sV4ZNXM1gQ8m9m0V/0GmLkboS/S+MKhdmkVEkWEM62Kf+IH5nCHvSBWc4LD6lf0K0k8w+V X-Received: by 2002:a63:7a0e:0:b0:40c:cfa1:550a with SMTP id v14-20020a637a0e000000b0040ccfa1550amr22073891pgc.514.1656875354504; Sun, 03 Jul 2022 12:09:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656875354; cv=none; d=google.com; s=arc-20160816; b=bKhwIf2CmYfX5pr/Nuadr4+nVJ7W31OoKlR7tN3Ef+VLXq3l0JC6rbmQs3H/lHkHa9 xfGOjUR9n/Vl1Rh5W5UAahMBi2RLNmAlN8lrDVSsInaRq66DB8Gd53as/0vBgMc0f0IA RIpxIvngBmQHlq/7/gqfm1YqaqP8Kzv/uMeYyQjm220snyFQ94wIF7gbzqY23B9FfuBV cjSIc0A8JUHRv5j08hR5CoiooIeHukwRpeYshsDfVxgASmPbVtLLu064t8qIrWi9mnGd rXKI0VSAzRJmb5mV+C7AhRPnaaQgO5qutvlpvgdZpKdZlJKnYWqR+8/aK6YN6K13HTOH JNMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=01IXmPhYuZ6VlM1S6cBbYA+G+eWAheXLMfpJF09J5h0=; b=ue5yRdp/VbbXoq9vJPjTUGzS+WW8VZonUiKeCW5Tk2iiDHAu0rMOU8myokWkLBAY7t lvPBeIWFo1ofpUnqexl3hPaMPUMRONv2wUGycyATeXk7w8OmwKaM0/sOnt0AaDv/Di45 nmRLPSjx8seOVTHtqHCZW32L9DCIPLKz2tyBd8dm+w9mEQ85WXDHz8CJoiTKnNKr1xag Uh1fMGH2O2+L0JG70/ZhslYqJggmGrs5US9fIWJS7WX+MlFxIfhEtTCiRj8RXuTt4l7N Inryzb7qUEhgDkhDlpRCYxZBzLDtbQBDsStS6sc9UFTO5weYaz/SKwhIFcg/T4Lo6y/T aQAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XSQ7W9e1; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c9-20020a056a000ac900b004fa3a8e001asi7178612pfl.209.2022.07.03.12.09.02; Sun, 03 Jul 2022 12:09:14 -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=@gmail.com header.s=20210112 header.b=XSQ7W9e1; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232947AbiGCShA (ORCPT + 99 others); Sun, 3 Jul 2022 14:37:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232847AbiGCSg6 (ORCPT ); Sun, 3 Jul 2022 14:36:58 -0400 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92E442AE9; Sun, 3 Jul 2022 11:36:57 -0700 (PDT) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-31c1d580e4bso64365017b3.3; Sun, 03 Jul 2022 11:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=01IXmPhYuZ6VlM1S6cBbYA+G+eWAheXLMfpJF09J5h0=; b=XSQ7W9e1A8JRu6cEwBFhiCyxx9kMVLCUi9x+mnwH/P/dRBvt9yzVwY84PdQQMbJjY0 PLG8/WP54VYi+oYdj993LciYnsM36VxfuiKE5zh5rM5NgZeWuYSooctgIHIRkjM/GECz sFJ+vdbou4WsGusH5mqjaEQOMuLEvNK4HY7J0BaZqo+c70pxQZU5B4ac2NbmtDc8RJbf vKhzfweWs2mUZXLRTvzW8rS0FMpKtCSHT8QgsIfrwtkT6MdWhXrcVybcpJ6bYJPlLYko Jbw4Nus5vNQZXQZpghFkM0nEsoVCicPmUCZ7y6W1fTBsFet5YkeB+p45vq8o48S4XUS2 5EUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=01IXmPhYuZ6VlM1S6cBbYA+G+eWAheXLMfpJF09J5h0=; b=kfLFVterFrYrgqRfHMySiQcj9U6D5RCEUz5tLq96y5wWKOJgRwADTqnRjnZAE++oSQ XOvd3O7wdOngPmk+Qz+G6J99wHZCLt38qNy88gV9A7Zre8UcApSM8idaCMAMK3lJeUk5 d5OK8xU6arVlv7ZM9qSEuCSIExafF8XqT5Zh+jeVjvDN1jQYIfZU8muAjgy5v6QaohTK epUgPm6HFw3OaxphyVy4buiW1joU/K+8k7BBCP/h3pMLTe7jwPMuOwClyrKWRaHm07jF aJAC+NduWwCPvbifWcZ/3z7DofRABp6xndZREfaB9ailLbzixO+Ys6hESquo0eW2h6DG ExZA== X-Gm-Message-State: AJIora8bzKq+Q0p0GEK99Mkf85s3xPks2pGUpQ0xtWD17hB15fB8Bq+E 2w+ljksotj+TSEFGBf7IAeKjqRZMpBo2QHDVyeA= X-Received: by 2002:a81:b52:0:b0:31c:932d:e3e5 with SMTP id 79-20020a810b52000000b0031c932de3e5mr2536002ywl.185.1656873416766; Sun, 03 Jul 2022 11:36:56 -0700 (PDT) MIME-Version: 1.0 References: <20220703170039.2058202-1-LinoSanfilippo@gmx.de> <20220703170039.2058202-6-LinoSanfilippo@gmx.de> In-Reply-To: <20220703170039.2058202-6-LinoSanfilippo@gmx.de> From: Andy Shevchenko Date: Sun, 3 Jul 2022 20:36:20 +0200 Message-ID: Subject: Re: [PATCH v2 5/9] dt_bindings: rs485: Correct delay values To: Lino Sanfilippo Cc: Greg Kroah-Hartman , Jiri Slaby , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Rob Herring , Krzysztof Kozlowski , Andy Shevchenko , Vladimir Zapolskiy , linux-arm Mailing List , devicetree , "open list:SERIAL DRIVERS" , Linux Kernel Mailing List , Lukas Wunner , p.rosenberger@kunbus.com, Lino Sanfilippo Content-Type: text/plain; charset="UTF-8" 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_NONE,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 On Sun, Jul 3, 2022 at 7:02 PM Lino Sanfilippo wrote: > > From: Lino Sanfilippo > > Currently the documentation claims that a maximum of 1000 msecs is allowed > for RTS delays. However nothing actually checks the values read from device > tree/ACPI and so it is possible to set much higher values. > > There is already a maximum of 100 ms enforced for RTS delays that are set > via the uart TIOCSRS485 ioctl. To be consistent with that use the same > limit for DT/ACPI values. > > Although this change is visible to userspace the risk of breaking anything > when reducing the max delays from 1000 to 100 ms should be very low, since > 100 ms is already a very high maximum for delays that are usually rather in > the usecs range. Yeah, something similar is what you need to add to the previous patch IIUC. -- With Best Regards, Andy Shevchenko