Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1423116imk; Mon, 4 Jul 2022 02:46:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uH2SoW/I7k5OyWOiqBdpobwjfhz6ooX9zxuyGcWZglhcmmwbDrnTH/G9jWrMem42rD9nlW X-Received: by 2002:a17:906:2088:b0:711:f512:837a with SMTP id 8-20020a170906208800b00711f512837amr27904807ejq.113.1656927985715; Mon, 04 Jul 2022 02:46:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656927985; cv=none; d=google.com; s=arc-20160816; b=pmVvi1ktx2K1d8r6OwJqjQ95a5ZvBs++xRfOYDJ1uOZD2Ywp88NZczFceoxWl00ZSQ 59FalS9azH8Zj6Tvc0EdqU4TzYauRzwHRdQHvBey2c3yUhkLP20WX+ad/SCkPx3RoDkU glfWIAAxWDthmNDsZ6Qt1XKgP4c84APxGSQTNW7i0greWRKqq4OVoLF0KdUmWS19vHaa r7mt8aB82arCUq1mZG88rJh1wBpAXT4RqcwlTZCoE7NlfcSCDXh4rorS6Lhra6raqJd3 pC8gt4+a+Oz5V8/EhIxvkR5hsLyke0o75Wvt+3VJR6UskAhugxony3V8NJpAXb6ZJjVB XqTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Ie4WOyCa3Nl27ZgUjfIb5DYmP4DXeOJq3h1/Ikk02lQ=; b=K634JJIOao0x0PA6rn5RrBppEP50a9+Wgwcl289X5HeC5RmEcVmTLPJ8T6zltNpREP IWA2INutd24i+OJABWDDsvqtH3qNXT3ScMkPh8k7fhn5u9YLsaewmq9pb1sRfG818HDj A8/DqnlLNWFdH/CSnXEPiakMN43pY37eS5QPloesXNauwgCXm9uu+AahhVdtTf/lR3eU nAVZMdCZ2JVs9Yz3eQwCyNPRJTH29sN1jaoDqjDS2mZ7K5p9jcMJ6XpW+G/GuR9xuNKU KEQjKFR/Wk87nes/BNAIIrFZWdBnAp8Bz8mnbL4D2FLIq9VQ6/L0PditZ2xfz/05wyEV E3iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=dnOOmAXv; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v16-20020a1709061dd000b006f4a9f015b8si9738231ejh.39.2022.07.04.02.46.01; Mon, 04 Jul 2022 02:46:25 -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=@gmx.net header.s=badeba3b8450 header.b=dnOOmAXv; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233606AbiGDJIe (ORCPT + 99 others); Mon, 4 Jul 2022 05:08:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233540AbiGDJIc (ORCPT ); Mon, 4 Jul 2022 05:08:32 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6766D5584; Mon, 4 Jul 2022 02:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656925690; bh=Ie4WOyCa3Nl27ZgUjfIb5DYmP4DXeOJq3h1/Ikk02lQ=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=dnOOmAXv40TiGYhEhHewwnUN+S/oxUHdQX9F/brAN5/4l/Ahnx7mmOE+bWt0H/M1b nu46tn3G5d/rz+2M/3hLwsdGXaaZy9B6LEWUpT55kCfVGZi8zGDHERTxexRKQStDgH 8BopOebIt8pA99TnC1WV88yUiYheQhiF8La24j3U= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.0.69] ([46.223.3.210]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MGQj7-1oP26J0iAX-00GoKw; Mon, 04 Jul 2022 11:08:10 +0200 Message-ID: <51f2142c-f4a0-e608-a9ad-6d7df14e4535@gmx.de> Date: Mon, 4 Jul 2022 11:08:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v2 4/9] serial: core: sanitize RS485 delays read from device tree Content-Language: en-US To: Andy Shevchenko 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 References: <20220703170039.2058202-1-LinoSanfilippo@gmx.de> <20220703170039.2058202-5-LinoSanfilippo@gmx.de> From: Lino Sanfilippo In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:fivx9dZYK295NyKzYzs2uwB7FeZ9jYwdtxPDXUlAV7CTMiLBbZH O9CXxC2C/rL7nP3lzpwv78FMSU9JR3anI0J00J59UDFBDjORHqGBA5luC3dMKrq/jad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zn2j6jHi0hbePmz/Rvl/qZaKtclqWbs3LxK D6blVZl1QD0Zs4she11LetgumMBisW3FeUHKsgJf374D9X14kbD23XWJWvdjYpq+WiQiSkFqO zIjkjny2RF02R7rFInF0fac9IFOjXidIHprEe79WQO8IHXeLXKztEB3Xg4SshWvIUJiZnCXFy YAwc0Rfp9U92Q2N4OhUcQoaCOnaUlo4LlNtAAfiRYC2wcb0xuvsthicPQ== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 03.07.22 20:34, Andy Shevchenko wrote: > On Sun, Jul 3, 2022 at 7:02 PM Lino Sanfilippo w= rote: >> >> From: Lino Sanfilippo >> >> When setting the RS485 configuration from userspace via TIOCSRS485 the >> delays are clamped to 100ms. Make this consistent with the values passe= d >> 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? > Values are now clamped to 100 ms if set by userspace via ioctl and not clamped at all if set by DT. I will improve the commit message to make this more clear. Thanks, Lino