Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4968123iog; Wed, 22 Jun 2022 09:14:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sOyu1UBm4g5sm4cQI3sIzmq6yq8GTx70DYDammtlNLfxShW1+JkOWBof/7Jsk4tQlViJlA X-Received: by 2002:aa7:814c:0:b0:51b:b3ee:6be2 with SMTP id d12-20020aa7814c000000b0051bb3ee6be2mr35909846pfn.3.1655914448350; Wed, 22 Jun 2022 09:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655914448; cv=none; d=google.com; s=arc-20160816; b=nqvDa0wh93Li0B38czplbgou13LwwbDhRDXQvy7dNsob7Y8rsC0xj6HHhTBgA/9PMp d7YR/eoKhG/innswdxtD2rOdAegqKXbqB+4Vhoa9sDj4bPenWvoRjGRNHVTpWr7nZerd 5FmnFu1mVS77BsNgeRTqsdtFvYzrFToQ7y9kU4EShoMRb3LtFShpJptlYOIge4D/wLS/ lcL1OZXav2FrTWwAUmttCcbvmpUs5nL5cz4WNeLhSg3IBK2zz6FITqZ/zFg7oGTTFzmb +4W5B4CEAwXrzhcyD8qeDff78gVxMv5HEUyEoziUfQK0NOfajdSNTqaHHDy7B0h7YmsR /J5A== 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=ng3CY5sBLo9HzL9eQ6cr+vyMggjXbLYmrX0EBHYnCIE=; b=0kVmGKWntNUDR5ldK/sBLUECmB4PGkNujhyLXFCE7qMEm2gXRHvRHHY0BAJY+3LERo 7CuOP3nrz9exE7b46j33H2ZZDQ/vOi0Xn6P8b6SixJMdFPjL3ZqYaA/xjQzsjc1liiDr 5cjB1U30ZT3MwfIw+5ZOIOr5k20Zklrar5+zNQVbImiRddSbcdr9yYRCvB6xvp1wjoca CQ9Y3efikHvuptoO6f/eZW3DVYw9cLMezNy3aSBBGGCbK2KcQkqzJvhcZ/VRKpoY7z90 SKYdAVoGqriJNnUAceAXVyjm7ax1e1OJNR3uYM5MK50smaq3boHxYHU0cQuPqOVKaBxR wPPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=hxE6QMAW; 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 gl6-20020a17090b120600b001ec7c1e6019si17105468pjb.32.2022.06.22.09.13.56; Wed, 22 Jun 2022 09:14:08 -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=hxE6QMAW; 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 S1359615AbiFVPsI (ORCPT + 99 others); Wed, 22 Jun 2022 11:48:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359503AbiFVPrq (ORCPT ); Wed, 22 Jun 2022 11:47:46 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91E933C4AE; 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=ng3CY5sBLo9HzL9eQ6cr+vyMggjXbLYmrX0EBHYnCIE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=hxE6QMAWXz8YpSwjcicr3QOu28G1YDOM0vvGeIpeGDRQ3TkpGCJZxqvrLmOX8oIEU DIzVsoSlu+uP/XDoIeMqVIcm0kWq31QAngdg8EPZPRSOgSE4mVE6pPjVgWHeFTAbvP +pWdS4EK36cll96Ze7Z3lbTmVJBDmYN5NcCU44Us= 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 1MpDJd-1nKCVr0uzP-00qlEB; Wed, 22 Jun 2022 17:47:20 +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 2/8] serial: core, 8250: set RS485 termination gpio in serial core Date: Wed, 22 Jun 2022 17:46:53 +0200 Message-Id: <20220622154659.8710-3-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:cmEZCvLPWTj25EBlWIAqA2P+RVwRJduESTOZ6QXNayL1PnA2PFD 0AYCcgcDpyZyU1uKG7YhQ++CwAbtQV9walYKTr0oUVIw1H6X+yxQ+klCIsAfKRbGDmJwiy7 PM71d0xXn5O472U+OsJHEVvVqwUapk9CxxdVgZHJ/me28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BIAKl1CTkqUBI+xh47Gz6upzAlhCHmnQyCh7+Lq6L3D7GuGd5rHpXJ6UpRZM8cTnN QhGlg2jQiU8AYRSzPf2xoaqiy+InRAJIdzszOlVDqwy7JLH1nM9AIXGtxiZzzmM0U4q1EU8Vr IQIF1RMxzhxtMkXToM02bxagV3Gu3G3Gv3G5He+4oisrrCu3MpUTSEmVA== 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 RnJvbTogTGlubyBTYW5maWxpcHBvIDxsLnNhbmZpbGlwcG9Aa3VuYnVzLmNvbT4KCkluIHNlcmlh bDgyNTBfZW00ODVfY29uZmlnKCkgdGhlIHRlcm1pbmF0aW9uIEdQSU8gaXMgc2V0IHdpdGggdGhl IHVhcnRfcG9ydApzcGlubG9jayBoZWxkLiBUaGlzIGlzIGFuIGlzc3VlIGlmIHNldHRpbmcgdGhl IEdQSU8gbGluZSBjYW4gc2xlZXAgKGUuZy4Kc2luY2UgdGhlIGNvbmNlcm5pbmcgR1BJTyBleHBh bmRlciBpcyBjb25uZWN0ZWQgdmlhIFNQSSBvciBJMkMpLgoKRml4IHRoaXMgYnkgc2V0dGluZyB0 aGUgdGVybWluYXRpb24gbGluZSBvdXRzaWRlIG9mIHRoZSB1YXJ0X3BvcnQgc3BpbmxvY2sKaW4g dGhlIHNlcmlhbCBjb3JlLgoKVGhpcyBhbHNvIG1ha2VzIHNldHRpbmcgdGhlIHRlcm1pbmF0aW9u IEdQSU8gZ2VuZXJpYyBmb3IgYWxsIHVhcnQgZHJpdmVycy4KClNpZ25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