Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp838302imk; Sun, 3 Jul 2022 10:05:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sl5R3R6CI0Ta8OIwFs6QcbH+OVnk/wMXy8+D31NST1jqyI0RjZV9GvtQjRgnbTVo4T+jgA X-Received: by 2002:a17:906:7049:b0:70c:a5fe:d4f8 with SMTP id r9-20020a170906704900b0070ca5fed4f8mr23167642ejj.493.1656867925220; Sun, 03 Jul 2022 10:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656867925; cv=none; d=google.com; s=arc-20160816; b=OmgmzK3qzPseOs/UvJevzm8n6vcqIsxsYDFL9vbRzG/sAjvw8vtHjps1vGK29Me6RZ uYh6XjLj22U7pXhM6aYhkU3o0WIv7bWgniGm0LitfETH3aFZ/9J8BWrd2beuBXzpFlim UI7qSdll9bx1QnKxIJfnmwEurySJzj42mJtiT8cfjrCnHfObmCnXly1yJuw2660inNSU udPgOlEwTUEsID8W2XwNlhUzXDNb7v/k8t0ppF9BIHoAq/DGou5kbm1ho5p9QXxwNrlp w0rKug1aWxy8KOb5UqUY1i4zLa4b18zwhUhfGqVmUhdW4Q2fm1sbgZ0qnBCDtIwSxO/q omtQ== 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=nviYHbsk7MUrNRrU2LChICEnd9k2yAJfBhTih4EkRFU=; b=giEoPxipfour+AHZc6mUkLhi3FGZIQRgsAikuWYOvaE38B8WWVd3+DpqXDjlT/lHDY rfMyQ6NnvXMKbwE34UcHLiXf4egxMoutHInckrHEdJoLLnkTSnwMjQZgywpF3TgDy0yF rh2bssdJGnk8TYj5bW8CjvyxG4FpoXvmlRJsF9HPUZL3RPEZhFE6AuVwVZyUKDV1kVZD l+4vhe/5NCKhdhtYGnd+UM0JScIO7WVQ3Mj3g6Vl2g1XfRdn7jyYlnTdO8Tyr5/GCEly 6cEHvtPwPYMaoDxTrYfp8StNfePyckGaZOvMb4h1qsmi5mfc0nZ1pV3mqaG9Azl5c56D 86HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=bfdg9Q49; 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 ga39-20020a1709070c2700b00726b4dfce1esi9368344ejc.167.2022.07.03.10.05.00; Sun, 03 Jul 2022 10:05: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=bfdg9Q49; 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 S229879AbiGCRCU (ORCPT + 99 others); Sun, 3 Jul 2022 13:02:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232564AbiGCRB5 (ORCPT ); Sun, 3 Jul 2022 13:01:57 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DFC3615B; Sun, 3 Jul 2022 10:01:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656867693; bh=nviYHbsk7MUrNRrU2LChICEnd9k2yAJfBhTih4EkRFU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=bfdg9Q49+9fanC418tQVocQrYkJukV2m2YyGouT3Gtfn9930Ay67FU8PMbEX2Ncvo VASUlpgLNTfF+bQC6ikmKXX10KopUCt0Dpfe42ofDYkYRLW9G3C++1NiUUo0TRFi04 4LUemO34zsS9GxuSSISO8GiX5ZjkuAinkZmPgM7o= 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 1MtfNl-1nKbyt39up-00v91q; Sun, 03 Jul 2022 19:01:32 +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 7/9] serial: ar933x: Fix check for RS485 support Date: Sun, 3 Jul 2022 19:00:37 +0200 Message-Id: <20220703170039.2058202-8-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:VoZAD9Dbxt7x089Nyq0L5L28YRZ0OXJkTCsDYq8757Tu1x7ijrb 1s3UwQ7BRlBMhPG9SvgbwyjHMfPBn5G7Zc9ba0MC107DvPp1VJqChWY2oeiFtO6WtuVxNA3 UaZ7cGMKvIj9AXKhn2DsI/eQhmBIbFeXjMP+TrR2OySjsUSb35l2VTPBip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9YzMN/e749djGIpm7wCZotQefi2xB2c7gdfFKSWm/hB106m4q Mn/gw9P4T/zl6OMY91B84wkxb0zX65tAhnLV5VMXNCNQkbbRKzxJsVzbBIeQXD3TJihR5aap/ Qh7ZIf3nhmME+JwVeyDt/XxwVbZOwJ1VCI0JXFtqeKYo4JnbSzuUnF+Mw== 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 RnJvbTogTGlubyBTYW5maWxpcHBvIDxsLnNhbmZpbGlwcG9Aa3VuYnVzLmNvbT4KCldpdGhvdXQg YW4gUlRTIEdQSU8gUlM0ODUgaXMgbm90IHBvc3NpYmxlIHNvIGRpc2FibGUgdGhlIHN1cHBvcnQK cmVnYXJkbGVzcyBvZiB3aGV0aGVyIFJTNDg1IGlzIGVuYWJsZWQgYXQgYm9vdHRpbWUgb3Igbm90 LiBBbHNvIHJlbW92ZSB0aGUKbm93IHN1cGVyZmx1b3VzIGNoZWNrIGZvciB0aGUgUlRTIEdQSU8g aW4gYXI5MzN4X2NvbmZpZ19yczQ4NSgpLgoKRml4ZXM6IGU4NDkxNDVlMWZkZCAoInNlcmlhbDog YXI5MzN4OiBGaWxsIGluIHJzNDg1X3N1cHBvcnRlZCIpClNpZ25lZC1vZmYtYnk6IExpbm8gU2Fu ZmlsaXBwbyA8bC5zYW5maWxpcHBvQGt1bmJ1cy5jb20+Ci0tLQogZHJpdmVycy90dHkvc2VyaWFs L2FyOTMzeF91YXJ0LmMgfCAxNyArKysrKy0tLS0tLS0tLS0tLQogMSBmaWxlIGNoYW5nZWQ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