Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5975223pxb; Mon, 14 Feb 2022 12:06:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJwx1qhQdlOOdb3gnfPUDOc6YAsPaPgIlQKrK6c1Dgpx9kGHI1nfWctG0k+oJOeuRFK3blLI X-Received: by 2002:a63:b25b:: with SMTP id t27mr576491pgo.460.1644869215398; Mon, 14 Feb 2022 12:06:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644869215; cv=none; d=google.com; s=arc-20160816; b=VkMqzo4bmFebR0ZKLwUs964oIPHIJs1qds3IsVovJXEkGdV5rn7BVJL2rxsmpDEzuA SV8xTEFnTY6qn1hk5OwmZPShYFld/ueRXInTf54GJ2zEXo7btSYAqH2vsvCzhd+jsfeh yBJSXo3gWOyRwQgdKga11HaIlM1W/QkLjsaUVdKJN7NH4EakoyuaXrygB8hNYAPeEUOD RGm1pqJHezSfCYKwhKjOYxZvSm0DiSaTrFbAbyWk8672bqXc2PmoDmMS5iqe5+3tHbiv W7Woss33KUSggCYJeoH/+UOuAmzK+8/mDQ6rmf/0w/4dRnrJJdAi8wyrNN4utO9FdcnP 3kjA== 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=bZh7fD3BxcL0U4ga7XTlAYTEC0EPT7y619IUOjTzv7Y=; b=x2Q66lYrwrM9cOCo24xCVuxZgCp4d8UpPhntTEF1raUYaAN3owJ6KURG/3BzC4ljYL Xo/82HT6o7sPyqxctVP7tWl/l7pdMk00GGiz+wuG6GTj2Jb8seBSfN7SXOxdeLoEferQ bvJJrJWv/BMRnmbjwtKyhbWFGSe8FReLKWGoqrpzlGHmPgGs89+b0g+GpRhXXwYMZOKo SqA4o1lM6VksktsbSEz3X38AC0kntmB1vUmGD8T+47xmJv3uTNsD6uvNCNxtDuCgp/NP LUPNV7c0bcououK7SwdwaDgVApDRFnIyCuNxUFDkoIEo/Pyfy+udNA/kcqpGGpm6qAyL IXZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=fJ2J1ZE0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s16si14282501plk.252.2022.02.14.12.06.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 12:06:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=fJ2J1ZE0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 19380153386; Mon, 14 Feb 2022 11:45:22 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238700AbiBMWeN (ORCPT + 99 others); Sun, 13 Feb 2022 17:34:13 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238652AbiBMWd6 (ORCPT ); Sun, 13 Feb 2022 17:33:58 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 192705468F; Sun, 13 Feb 2022 14:33:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644791630; bh=bZh7fD3BxcL0U4ga7XTlAYTEC0EPT7y619IUOjTzv7Y=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=fJ2J1ZE0XlMRdlW52TUFV8Rls4Wt+oe23eSYWj7DXJWajS3kefqY7OCtnrdOilFc7 +T37tZ8LTjRw72zk+aSv3KVno7C/iOCRieNKqGQ84DjZPXdaPjR6KYIBReP1lx6OSn BVRc9RvsMGN77rACYFoIg6aiL+c+u2qWoXGV4770= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([149.172.237.68]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N9Mtg-1oORt22z8W-015L7F; Sun, 13 Feb 2022 23:28:05 +0100 From: Lino Sanfilippo To: gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux@armlinux.org.uk, richard.genoud@gmail.com, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, ludovic.desroches@microchip.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, lukas@wunner.de, Lino Sanfilippo Subject: [PATCH 1/9] serial: core: move RS485 configuration tasks from drivers into core Date: Sun, 13 Feb 2022 23:27:29 +0100 Message-Id: <20220213222737.15709-2-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220213222737.15709-1-LinoSanfilippo@gmx.de> References: <20220213222737.15709-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: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BJ+iB+4e nbfKOvPuyXTLdoP+9NouO4eysr9Y4gNIOU97iYqsLA7rna1Y+m+0/yTgQ8KIPclkVBVB6fdUN aLSDn/P0xP9X/g/kE3ach3bLknEpqGm37qAba4/7DADSUErhSDtOLAjjLehqaNiOASPsDGBl4 Q+TOG+WUz7dVNdm1BbOtuwtVyZSDxdk6IgLfFhoEL3cjlMaH59anz4lqxik39gcDMlDvoJl3l f/meXFdtKSzjdPzHC5rM8JVDEwdSoM6/LQicSYaQu3oNCJEvL6ph5lP0xusLD6BBW09KGKxTo jUS2wR4UmLz2wo= X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MIME_BASE64_TEXT, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 U2V2ZXJhbCBkcml2ZXJzIHRoYXQgc3VwcG9ydCBzZXR0aW5nIHRoZSBSUzQ4NSBjb25maWd1cmF0 aW9uIHZpYSB1c2Vyc3BhY2UKaW1wbGVtZW50IG9uIG9yIG1vcmUgb2YgdGhlIGZvbGxvd2luZyB0 YXNrczoKCi0gaW4gY2FzZSBvZiBhbiBpbnZhbGlkIFJUUyBjb25maWd1cmF0aW9uIChib3RoIFJU UyBhZnRlciBzZW5kIGFuZCBSVFMgb24KICBzZW5kIHNldCBvciBib3RoIHVuc2V0KSBmYWxsIGJh Y2sgdG8gZW5hYmxlIFJUUyBvbiBzZW5kIGFuZCBkaXNhYmxlIFJUUwogIGFmdGVyIHNlbmQKCi0g bnVsbGlmeSB0aGUgcGFkZGluZyBmaWVsZCBvZiB0aGUgcmV0dXJuZWQgc2VyaWFsX3J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