Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp930933imk; Sun, 3 Jul 2022 12:31:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ucbyM6ag7LDcRu+W8vcOpgNrLTBXKGW0Vk8o/0pY1J1cA0VFmLkJtm5wy87OLiosW9OE56 X-Received: by 2002:a63:5a49:0:b0:40d:e7a0:3cb with SMTP id k9-20020a635a49000000b0040de7a003cbmr21713263pgm.69.1656876691641; Sun, 03 Jul 2022 12:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656876691; cv=none; d=google.com; s=arc-20160816; b=qfQyM4e8bcRxoYraqXMmmRiLgfJP3JDzSveWbGNBruCeDBrsdyOqOBJqA3q+xASMTe UXpEtUBGzom7swJVXe8tDwa5jyNBLAkpQkrUgD+nCPZXDiwr0DnnPkOeMUF7H1uUy+1r QMIyjnRb28bDKbrZ+1fHUMJB0ywfgt9F48lhIFaP2ZWtTvHphl5eHG1o7qlMe9yTfmLo Vh5CjO7CTGB9EQ8IObzPQD5Ad55pRQj12+opPgS6W1n8AWSsZyZrPqRalX5+dbfBq5Vz kQRvLNlfz9E5EKrH4aFHq7WzLJ1E2nsYiggmCnv+rQNWcQdnUmB7Rep55S8zorzJ3k6Z t0kQ== 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=Y/XwvHrfAcaL5Dlg6DC44ZQayGB2ugp2yd+NGOlWjvk=; b=zcFav7EjiTRbsBnOvH5q1lMBsDGnlcwXikA7r4bh/iEdU5TJhW0rfdwXBKSo4v7afY nD+DwLsFMbQJRUoPG9bQOJgRHFBech5iK2CnQiF9zQNQ8cTTFbHCNF3XA1upps/uPO1h EcZXDR/81Gm5P2gQ6PoCy23r16RKf/NzwQ+6HqNg9T2G5C+TesrhFY17dAcX2KakJWjq WDwkLr9+7QtyqvZP4AvBMOIgLeIAeSB+akVC3ATFCT3gaBh/EB3dgETop8SXwPUBuFz3 cLaiRPgjfY1sI0cp1pY0L98A7tH3SvowlsPaEmskPWHCdjOvhP8twRzH3P875kDezZt9 fG/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VzRi0V+r; 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 j7-20020a635947000000b0040d66be932esi40579695pgm.106.2022.07.03.12.31.19; Sun, 03 Jul 2022 12:31:31 -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=VzRi0V+r; 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 S232045AbiGCSfg (ORCPT + 99 others); Sun, 3 Jul 2022 14:35:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232875AbiGCSf2 (ORCPT ); Sun, 3 Jul 2022 14:35:28 -0400 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C709FB8D; Sun, 3 Jul 2022 11:35:27 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id g4so13194699ybg.9; Sun, 03 Jul 2022 11:35:27 -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=Y/XwvHrfAcaL5Dlg6DC44ZQayGB2ugp2yd+NGOlWjvk=; b=VzRi0V+rSVmqkRF+3nZu+Hm467maGKd3WrNF6MQ+r8iRY0UIY3p3/2xtkOgh7DYchj S8BQ4dj51XpgSljBDVznotY723aQiNU+2lM+Be73Z+HldVAjdrNTvQRssC0zrSlZ8wcJ pHPNrfPEzvtg8kpT6PMlRkCeomVJwgfG2F5aytDECsSrXybMi97Q5KfuH6PXyZM3Aa/M w5FuY21rDTWXH5EViS/GUQm8bVgodvYqFTV7Bs0IZ82yeHOWvlE5m5pBGbLiJAhm3VUU T2mTY9RxOycAS0+znFfp9S+mrhkcYkYJ7/UmBOVXCYv2sfSf1kJTOczyheyOE3ChYCM2 EQ2g== 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=Y/XwvHrfAcaL5Dlg6DC44ZQayGB2ugp2yd+NGOlWjvk=; b=XsNn86JTMLmwA1VkU+rm/yMVsiDp48NrpUUzycPEe86ihrDwVdt2FskqHXcOqfXT9c /q7DnI7GlQq0ta8l0C2wIqsJARU/Y5rgMZFZvROcQACv7DjVKgAPiU+vUSm+tSoEcMfu 1tjFvVB+Gjyf6elB3/9Xni9xLN8sjGoBGGLG1RfvKFMRnOZkW3rnzxakmn3Ine2xwk0F fQ7zl6vtwLClW2SZiw0Ov8prxqbo86wPh5dNLa6ilD1lfuHWCFTjgciNbtuAetMdKjfp C1EumJ8x4MKLPzdWBHPc18877FIQTCL0Boj9UT3AH4mNwgk2tuTRcjYb9gkTjsfu68pS BWRA== X-Gm-Message-State: AJIora9w1C3oS/PIPTrzYoo4yGHX/h8kBrjxUCSyHZXTupnLXoDIZLbQ YkpFEkOWcYNhFkpT6cROTBSQMWdwe9HG38ZV2VB7yQot3sRp5g== X-Received: by 2002:a5b:68a:0:b0:66e:472a:83f4 with SMTP id j10-20020a5b068a000000b0066e472a83f4mr1932094ybq.570.1656873326848; Sun, 03 Jul 2022 11:35:26 -0700 (PDT) MIME-Version: 1.0 References: <20220703170039.2058202-1-LinoSanfilippo@gmx.de> <20220703170039.2058202-5-LinoSanfilippo@gmx.de> In-Reply-To: <20220703170039.2058202-5-LinoSanfilippo@gmx.de> From: Andy Shevchenko Date: Sun, 3 Jul 2022 20:34:50 +0200 Message-ID: Subject: Re: [PATCH v2 4/9] serial: core: sanitize RS485 delays read from device tree 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 > > When setting the RS485 configuration from userspace via TIOCSRS485 the > delays are clamped to 100ms. Make this consistent with the values passed > in by means of device tree parameters. I'm not sure I got it right. Is the values from DT now clampet as well as user space does or other way around? In either way the commit message misses the explanation why it's not a problem if user previously passed bigger values either via user space or via DT, because it's an ABI change, right? -- With Best Regards, Andy Shevchenko