Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4946093iog; Wed, 22 Jun 2022 08:49:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sUxAhrpKTTIqMzraf2xGaJUsBdFT2zsRLyu4/odJyUF5c0h2vzokrWAiQ11/pXq+qMznuk X-Received: by 2002:a17:90b:3143:b0:1ec:be03:e0a5 with SMTP id ip3-20020a17090b314300b001ecbe03e0a5mr4464721pjb.30.1655912967581; Wed, 22 Jun 2022 08:49:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655912967; cv=none; d=google.com; s=arc-20160816; b=ANlogxKWkZCu7grGo/bYyMF4WaFyXF5TSCKD34Czt2km3ZaWZL2x27rAMhhM+MNOK3 hypr5amZN4hG2PYszyDZWBqjD8fiu0BnyuNqlYRDpJiQPU3xwVinMfqVhvHCmXP+s2/B hUtStNtVjIAiuy0A+CqMk2rih0hJtkkQzVMHy0y347w3qo0cDJyaOyb2dWrWlDWlk9gw nqM+eII2+odQZ4dkMOYodMKaAqP5zSXMotYN030xTCnS5xY6nxK6inEpSivAX0CU7CBA M0NqOGazFeD4ZKZsLZ6oF4oYnV4AuTby6Sjq9RynGPR1mB14RwDTeFxfVjNwnUH5Iyhf jJvQ== 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=8IFGxVS1vl5JLWh0yU8Lv5GqvKfBZ2iqkV27iNYuWh0=; b=xOaS8fgi+CzUcECpW1ENC5nEspB4tsIMiSgO5wqAgPqf1jM/hO9PK0NJZ2dcKSX58M sjCexA9/Is89qxavTkyf9aOtzcBLW09B9l3A7jr1by2mqJab+OpIBqAeNp3/nJ5XFRpT UbOcoCCrVvFML1ExibZmmzkS3dmexFsRSG9UZRgtX23XQdKuMcLxNK9FJ6MeiagptG2g beb7ntKWfOI1U0bxV/teh/KXRDT1DwpJC4C55howLDGMH6c5rfBlaT6r4Oq6LR1RBB0g jfRNVZkrM9GdWze7ZGVXJmAQNAsmgQ7TWaJ+Cukb8k195vzLOyyFGyaDqIpk0Fh7Q0z5 Dk0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=UVO+cw9C; 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 a3-20020a170902ecc300b0015d2ca1afcfsi27006983plh.89.2022.06.22.08.49.14; Wed, 22 Jun 2022 08:49:27 -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=UVO+cw9C; 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 S1359605AbiFVPsG (ORCPT + 99 others); Wed, 22 Jun 2022 11:48:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359501AbiFVPrp (ORCPT ); Wed, 22 Jun 2022 11:47:45 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 854893A5DF; Wed, 22 Jun 2022 08:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1655912840; bh=8IFGxVS1vl5JLWh0yU8Lv5GqvKfBZ2iqkV27iNYuWh0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=UVO+cw9CkqDJWgg8c2KKc/7SdSzueQAlaGe6XDfOE7FC4NpxX7octk2+fWE+Kr2RX cXHgaBmUuvmXdJx+w7v9FLCByTAcz+j6Yhz/pu7eulb/7qLAnvZjBr/6B1CPSkw417 /1Z97pBU0JgW3m9r3Okn0lI2i6SCiLlp4KgDKFWc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([46.223.2.22]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MV67o-1oDQn33Qnu-00S3PO; Wed, 22 Jun 2022 17:47:19 +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 1/8] serial: core: only get RS485 termination gpio if supported Date: Wed, 22 Jun 2022 17:46:52 +0200 Message-Id: <20220622154659.8710-2-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220622154659.8710-1-LinoSanfilippo@gmx.de> References: <20220622154659.8710-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:Wzux1oUdzW1pI7nfCPbfxqcmfleiTwvPyv2n9VmmFzCZ2/Dzw4V a9Sc1f4YAFcUhRs4jBHdjixFcdb4xPhKK3ZFyjOXGeX5mUGXETzXZFsgQollNQX2ZipkO0Q FLHbM5HCIlp9mdDiEjp6G0/1hrXNMpyVW3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+SYsAf8blcz1YMB3S11J3zwf10zEW47ITQcZIMi6izTpz1k89LO0gNX9cMplBDP5m2o 0SpSlWnxKqbKppyHljPuit5XaqaXHlfpjINBRzqy9EX2Fa6fcBu7KezCLqryGeDqp1yfaiDLG AYKzEY6JlRtf5fj5HJRUwih4kjk0ham0LorujXrvE96jqR1uj0cfWOknw== 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 RnJvbTogTGlubyBTYW5maWxpcHBvIDxsLnNhbmZpbGlwcG9Aa3VuYnVzLmNvbT4KCkluIHVhcnRf Z2V0X3JzNDg1X21vZGUoKSBvbmx5IHRyeSB0byBnZXQgYSB0ZXJtaW5hdGlvbiBHUElPIGlmIFJT NDg1IGJ1cwp0ZXJtaW5hdGlvbiBpcyBzdXBwb3J0ZWQgYnkgdGhlIGRyaXZlci4KClNpZ25lZC1v ZmYtYnk6IExpbm8gU2FuZmlsaXBwbyA8bC5zYW5maWxpcHBvQGt1bmJ1cy5jb20+Ci0tLQogZHJp dmVycy90dHkvc2VyaWFsL3NlcmlhbF9jb3JlLmMgfCAyNSArKysrKysrKysrKysrKy0tLS0tLS0t LS0tCiAxIGZpbGUgY2hhbmdlZCwgMTQgaW5zZXJ0aW9ucygrKSwgMTEgZGVsZXRpb25zKC0pCgpk aWZmIC0tZ2l0IGEvZHJpdmVycy90dHkvc2VyaWFsL3NlcmlhbF9jb3JlLmMgYi9kcml2ZXJzL3R0 eS9zZXJpYWwvc2VyaWFsX2NvcmUuYwppbmRleCAxMzY4YjBlZjdkN2YuLjAxN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