Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp837389imk; Sun, 3 Jul 2022 10:04:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v+CxGjwYf89gnEWr/eq/fOSY73e4iy/PjHJHP+hq8RgttcDw2gNJRoG/hIAiAGsPSO+DGv X-Received: by 2002:a17:907:16aa:b0:726:9fe7:a989 with SMTP id hc42-20020a17090716aa00b007269fe7a989mr24799572ejc.760.1656867860654; Sun, 03 Jul 2022 10:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656867860; cv=none; d=google.com; s=arc-20160816; b=P5SG+IS878Gd/asdtiCo6YAVGkYjVar5r0bYgp1va85YEjtrDNr4DTH3FfEOXqorjN /fiC+xrelUpU7kJmheS4Hd4/2AK/ddB2+K2vkIyHmR4LFi2+LgvVXhjKFgL7AruvJaTt 6ONUaSqg5MSuN2/HYbHW91yDUnr3PssQwBPVnnFHuTav9UJAZOB5G73nooMAObtCKE+J qfCf9atrxis/koVHuzc2xJcMdzndVuRotUonUAuekqk1l27ujvc4T7b0VTnzj+MTcw1j MFM6V3Bz1eHt5hl/HwurvodHzF33g3GaPqVvBy9OhR6cLAhDtQe3lpCr4JtUmJi3XWaZ 0Lkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jKGdNVXp94SoOUgUewE1NIzx0yJCaYTRp187GnBOMW4=; b=QFMFDrzcPGPyk8iuvBrfpw1FJ/gyBibzgwTh95Of9TC1fKFXvrI+r1etNPNmjmZlOh jszfwlAeedMpwk2TNx+XwoER/ukezFqFW0Rw425+yFUyIkmzlZmpkCJWJ7O8LIF14/vY +ImpgAOofRKE/iUBJbslwtJaXOkhGjRmTELcVwt7i/boN/nwoMhjlHyy6LwEn480UXvl uGZzWkPTC/rL+cbU1kBE44wfB/pMCIfYDDP0oYapsuWVUJLugcQ0Qq8asX6v1ktM0hce sizy4chS62ZIgzttNxVr3fIVcEmHw/XtuJzEhmSjgqCmzgjUsC8jila9UU9HwUmDQQ+o bzpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=IdYRVDSf; 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 s12-20020a1709064d8c00b006fe8b1baec0si3572166eju.709.2022.07.03.10.03.55; Sun, 03 Jul 2022 10:04:20 -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=IdYRVDSf; 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 S232798AbiGCRCX (ORCPT + 99 others); Sun, 3 Jul 2022 13:02:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232419AbiGCRBz (ORCPT ); Sun, 3 Jul 2022 13:01:55 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF4BC62C2; Sun, 3 Jul 2022 10:01:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656867691; bh=jKGdNVXp94SoOUgUewE1NIzx0yJCaYTRp187GnBOMW4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=IdYRVDSfnKdRTqfbijTq75loOiKhXz0iGBmFcIybPlhuEB7WCxUiL1tLQ0TW2/IqD RNmBrAQjtiISIkg1lmTQSpL0aaQAVKVedklnB46snDTMFxBXFjC5yBXImMXZCrxGqm 54SakHGE+SuOiiwOr0Giwy/V1J6YdgOI8L/9TZAc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([46.223.3.210]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N3bWr-1nQ9Lk1rL1-010gwU; Sun, 03 Jul 2022 19:01:31 +0200 From: Lino Sanfilippo To: gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: ilpo.jarvinen@linux.intel.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, andriy.shevchenko@linux.intel.com, 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: [PATCH v2 4/9] serial: core: sanitize RS485 delays read from device tree Date: Sun, 3 Jul 2022 19:00:34 +0200 Message-Id: <20220703170039.2058202-5-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220703170039.2058202-1-LinoSanfilippo@gmx.de> References: <20220703170039.2058202-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:T7olYTqQ/ItpDdzzZ0sa8NhSXZigBDn8hZLyCYIVpVdN+Yl4A0l gKtUUNf/JIQZTpEoIvJ/aWKONaAqk9IYmx6b/2PjYRMG0GKIHWnQR9lFp7DmiBVkINSjXYO CKnfNclFkaQkOakE3eRkWU66rWPdchZ5ZcO1UeWB9Gof22isYI9fSAHVLBBJVjEhRB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GvdjmYyWzwmd2VL45AU+NklDf7mNIniV7Wxch/WzdfN3QCByZ9VN+3YAv+7SbeP+8 KFstWGx7uocQzTGw8ty0x4KysRjmobl7U9fEVUefHLx5BKMQerJRgntApNIkorvX1Bmd8z6t7 tY1pvovH1gi0svjyZQdN0sF7sKm4Wr79g2/kM9IYxN0ggtGXbhsbrOAng== X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MIME_BASE64_TEXT,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 RnJvbTogTGlubyBTYW5maWxpcHBvIDxsLnNhbmZpbGlwcG9Aa3VuYnVzLmNvbT4KCldoZW4gc2V0 dGluZyB0aGUgUlM0ODUgY29uZmlndXJhdGlvbiBmcm9tIHVzZXJzcGFjZSB2aWEgVElPQ1NSUzQ4 NSB0aGUKZGVsYXlzIGFyZSBjbGFtcGVkIHRvIDEwMG1zLiBNYWtlIHRoaXMgY29uc2lzdGVudCB3 aXRoIHRoZSB2YWx1ZXMgcGFzc2VkCmluIGJ5IG1lYW5zIG9mIGRldmljZSB0cmVlIHBhcmFtZXRl cnMuCgpTaWduZWQtb2ZmLWJ5OiBMaW5vIFNhbmZpbGlwcG8gPGwuc2FuZmlsaXBwb0BrdW5idXMu Y29tPgotLS0KIGRyaXZlcnMvdHR5L3NlcmlhbC9zZXJpYWxfY29yZS5jIHwgMiArKwogMSBmaWxl IGNoYW5nZWQsIDIgaW5zZXJ0aW9ucygrKQoKZGlmZiAtLWdpdCBhL2RyaXZlcnMvdHR5L3Nlcmlh bC9zZXJpYWxfY29yZS5jIGIvZHJpdmVycy90dHkvc2VyaWFsL3Nlcml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