Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp847378rwb; Tue, 4 Oct 2022 11:27:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM72OF+sCUEQJXkSEUh/qfDyU9uYq+NUWD2/MVd0a5QPgiJDM3lmK7v4jiZ0nTpImyXpMk+j X-Received: by 2002:a05:6402:2816:b0:434:ed38:16f3 with SMTP id h22-20020a056402281600b00434ed3816f3mr24839195ede.116.1664908069318; Tue, 04 Oct 2022 11:27:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1664908069; cv=pass; d=google.com; s=arc-20160816; b=kIgenqNZC+DLifUvwDzPJbOrSCqRqZPmAtMkvx6Ul181HJrgOWNO43Pk+/leclPcRr 8h6e3jfUgBZ+JGB5l1rMYb25L6GPXxocyJEQG1P75HuCaOMbr4gi26JY3f6x7yp7RCxO xvceHW9bL/uyvxVl+YtFF1cEXhzKFZKjHzBrYpoQ/IHxy47mk5kkG0yVGKfq5Wb6Kp7/ PPizDYR12I8z/K00/0h4i5QyK3Jv7mMz3oLZLnYlexkkmdG8uTtC+9BjjFQ8uKAc/XZX 233WeuC3FW5ruw5Mms5DIveW4JSZitzziH4cZdr1qq0tWWBaYZZ2KjmyIlyKUtgIgaoD GZQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :dkim-signature; bh=60CWsiShWhxvyyjbX5+gH92KsZyAa78/57caSU0jCtM=; b=oyDS1U8G2ZnGusezAzmtHySQ8iO8ev2+gl/ph8Umy1b9/bqq4y/OpDi6Q9WWe6dVzt 93hAZ9guDM6JZFbocBTguTAIrqoChd0C/kcSAeXRoECdtP0Qg61tOXTmWv5BmpLRYVmo UsHBMv7HfD/uO+moHBIUbpR5+VjdeLGim3YqSkdvJn3IGi1u+gPQxQkIB327tmogfAiC Im6UpBLagJrBA0x4yiW8YXR1hloYBWOeyAzdUoEPwhnajwMEFp4kIG/a0gR/DpdeKJ/R UJ3JqHnoZOSiHFBVYTxPrXDH0wiZ0vfQn2KMevb9yVKuBjrsD2jf3ZKePPBTT4Ry9sY/ PLIA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="H+Lm/niA"; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector2-microchiptechnology-onmicrosoft-com header.b=DsdY4w3z; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hk17-20020a170906c9d100b00775dae4013csi9666622ejb.906.2022.10.04.11.27.23; Tue, 04 Oct 2022 11:27:49 -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=@microchip.com header.s=mchp header.b="H+Lm/niA"; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector2-microchiptechnology-onmicrosoft-com header.b=DsdY4w3z; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229495AbiJDRwV (ORCPT + 99 others); Tue, 4 Oct 2022 13:52:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbiJDRwR (ORCPT ); Tue, 4 Oct 2022 13:52:17 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8195D59255; Tue, 4 Oct 2022 10:52:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1664905936; x=1696441936; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=tZcChzk0UlMUEZ8OJRXPwbaasiI7Bjgz1LQIlrAWB4s=; b=H+Lm/niAfubRtDyML/GRxkLqp3NYgW05CQafPFJrCyQzdGM2I+VXNlew j4i93c96cy/KVUeUNw2e3TdONS2IjPV/KfMq4979ftDqE7cwKx0w5KSYF TWfbINJy2Ny8v9PemyFX/3BN4fQTVn0rL9eSNIN9jri+2DYwfCBmEsTnI FVXgM4JjEz9cXjTw2BhHNPQ/HeZLeuH/sqm42MIxYuvSldPgLtjrxVn2W ZHTvy8NYBOhAE/Vdn9q5ipGXPxDkXRjVwVVCAl8bdCEOF9FWQMPrPk7/T bYA4g65k+PTkoUAe/u4TDEj8oZ9+vCzha6A05Ylnp2yLkLy8mjHCl1nB5 g==; X-IronPort-AV: E=Sophos;i="5.95,158,1661842800"; d="scan'208";a="193775894" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Oct 2022 10:52:15 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Tue, 4 Oct 2022 10:52:01 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12 via Frontend Transport; Tue, 4 Oct 2022 10:52:01 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GBVrvZhLXIAJYFh0Zhs9h4njZ78BHmAJrIs6pR1ngRxZRrLQd1RvBHRaO3MZMGPRxXbyiM5fEgdz9w/kipeB5fn726aBd4kVVw61YsPqA+2+WSxk5fIdOaLRiScOQEDQQLjF9eL0Naan7R678sgnyKVng+M3qaOFecXQd6Xjf/HGZ+llP/SfIvZooBMR3phLMHOCI1zXHO+p958Uvqtkn5RinMQgKP5h3R36YNBlKf4tNb0BG5SLLp6YuY+Qv1JrKTxGHgSxQ2nXj3RC/C0vb0OgxJNfIQ0dhsfJSzOivWd0UZHvTfclT8Fu3yWnNxqp5CS3fCL4fbgrQimT3qyKHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=60CWsiShWhxvyyjbX5+gH92KsZyAa78/57caSU0jCtM=; b=Aph5JiYa7NFE0rPxxfkMIHyRsx9Zen4jJCAUM96sj69lyrwWHSMP7v12cdVq7sK9S8XK7WjAWE/2O01df8ArI1Q0/E1z6wOT5NxGPkBGG49H7i3RmiU4vl+SRl1Ng70UKOzONJB3+w8N/RrNwfpZCkvSfVGiqbaM3fNy28qd56K2P/LcqWNx0/NKgvRhvW0+cv/7Ww3XyF1Z0B0lKSX4JBlBLVLFu2pvObNeYc4f9ATVBoYpbbm8YMKt12RRjcjy/edZ1KZpiiw90mFmF4AVkVv/1CUz6HkVzOgu5k+TvtItWOZKe0bUfkdo5KR/ay6Bzwv1YAsx2EsT7BAnYRs2cQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=60CWsiShWhxvyyjbX5+gH92KsZyAa78/57caSU0jCtM=; b=DsdY4w3zmsWNMAvoYQeYk4tkgXmx8H56HkVL7iH+GR+RGwTPEqTC+yHStV7LrdPJSM3/G2GQvOd4OrOyiS0cJkqpfqvp+Cendlfm49tn8nGsqcnKvcv8DebUrpSjnul0srOXdGaL5D6K8GmMHV0E0liznwpLwzHas1cTTpnCDts= Received: from BN8PR11MB3668.namprd11.prod.outlook.com (2603:10b6:408:81::24) by CH3PR11MB7276.namprd11.prod.outlook.com (2603:10b6:610:14b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.25; Tue, 4 Oct 2022 17:51:56 +0000 Received: from BN8PR11MB3668.namprd11.prod.outlook.com ([fe80::6c5b:82e0:522d:6a2c]) by BN8PR11MB3668.namprd11.prod.outlook.com ([fe80::6c5b:82e0:522d:6a2c%7]) with mapi id 15.20.5676.031; Tue, 4 Oct 2022 17:51:56 +0000 From: To: CC: , , , , , , , , , , , , , , Subject: RE: [PATCH v2 tty-next 2/3] 8250: microchip: pci1xxxx: Add rs485 support to quad-uart driver. Thread-Topic: [PATCH v2 tty-next 2/3] 8250: microchip: pci1xxxx: Add rs485 support to quad-uart driver. Thread-Index: AQHY1V0xNl764Wi+W0ymRRIbNpbBhK38aB2AgAIZh1A= Date: Tue, 4 Oct 2022 17:51:56 +0000 Message-ID: References: <20221001061507.3508603-1-kumaravel.thiagarajan@microchip.com> <20221001061507.3508603-3-kumaravel.thiagarajan@microchip.com> In-Reply-To: Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microchip.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BN8PR11MB3668:EE_|CH3PR11MB7276:EE_ x-ms-office365-filtering-correlation-id: 97131f46-8ff0-4832-d73c-08daa63120f7 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kznhDj/oVbrCzF2oYCnD3ftNQ3PuWLuhHnGUWtJfcvjyI64jU4l8KNor7k7ZxoYe73yJm4zMaxvua9kAKvsOPuIJzayQHHSzoy4C3DEKKhiOIdG29g8v23KLyA37PiUnyzoWK6+gmRR8mOASVoCxxdGhPPtN6b8bdFl17PWOX80/40QfKvhhlMfdJp8cKY0uMssSf64Kn19xmKa3jAd5+b+E37+OJ/tgXnwlyFdeXt/RQp9EwSRu4J5cpWMktGBCbeUxVSA0eydcntiQ7yTyonPxkSLrC6uUTAJvBpyqeOTaAZwgnnani4vBuZHUng1A7QuxoKMcMhF3zUoHOimTaft80RyuZDZ+U6x4JLWpuvwybjIDr+wiSBxKnDOHfArBXMw9DdhjyVu9J1jUpSjCirwyZZfp2ykgDbblBZnsi2kyDGLLjNoqjXPXeHgy51+3hhkXdeUNTPAQBGy3RVeFSHhCeDtrEzldkZfKyGMkSAyBk9kteFc+vntxXYN3n3PeZpT/PQ1CL3cOMqXpdSQNyM5+XlK5/YHR/jwR1nuy0VpMHXxG2aYXrLD7f5NLyRcNl4X4RPV7ld8YR4tKnoXCqAUfPPYUwXm5U2XRp03NKwbwbt2ylU3Fx71fjHulgYa+t5vX364hQUvY/6qmJ4VG8dOWrZ77QgG0UaSd1B8vugnNoDXOLk1I0qbICCvEjTpz8l4hmXliIV1IDv1r9gl1Vo4pxVybD+5FANk6ReTOjc+W75tMHulSVzZh4UbSzbM4xnKgO+2rbrnoENgeWjZRjAeIsUA6yhCiRmdJ4X8tpZTqwelojKkxVo+ubCs9EvUlCJ6hDlBLew+dlXkv9oMCsQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR11MB3668.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(346002)(366004)(396003)(39860400002)(136003)(376002)(451199015)(4326008)(38100700002)(122000001)(86362001)(33656002)(38070700005)(186003)(26005)(7416002)(2906002)(7696005)(55016003)(41300700001)(478600001)(6506007)(52536014)(71200400001)(53546011)(107886003)(5660300002)(316002)(9686003)(66446008)(54906003)(66946007)(83380400001)(64756008)(8936002)(6916009)(66556008)(66476007)(76116006)(8676002)(32563001)(414714003)(473944003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?3TPrfErxkSmWgByuJ6+oON5g9QKRcRWlLp9g+UN0pOOXQm4QB18Zx5NgSH?= =?iso-8859-1?Q?DOtxKsGfbhNUQXoD9yDoTz93x05sm8d4OeaCHpYTBkk4JcFNGV7ljL5n7T?= =?iso-8859-1?Q?zJmcCXbL4cWirnDQBzUo5sR2/nYJcDoZqQxTjwyu6LGzNI/O0Igf5T7hTb?= =?iso-8859-1?Q?Bv2fz6lrOv1646ZmXDEtw5K7ZuUNVfiT71jTX2Lx2Yk2umyr4opVsIFsTI?= =?iso-8859-1?Q?MZvndOAUjFhrQAJdPYDllO7zIJ04586klTSBOkNgNbOd773pqkDUgp/3Tm?= =?iso-8859-1?Q?ku0llj2dZ54VsVqalLyKwn8LwWZPkasjFsl9HSSDsVOyIS3YiySwit//D8?= =?iso-8859-1?Q?7WWCKusQZ543kAr5i5PAbXBc5+lKkYRj/bVvtMOPoUYMcrWkv9SL3ujtys?= =?iso-8859-1?Q?z7ElCWQ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6wzNpB1D63PInb9p?= =?iso-8859-1?Q?KJZ905wK2VeBw9tNy4oAcMESm27HsZHGeR0m9dkKUOXhfAdbRFK8/g+1fd?= =?iso-8859-1?Q?r64MyvKeEHDMj2R9XQbqnBvqF9yusSJpb/mQvLWBZ4v8RsF3SiP3eAsFmm?= =?iso-8859-1?Q?dRPUYe2peJQwpxRgmsbZNI7TGLb0jLO5zVF8FX/aRPk5xqExWp50uZKF2b?= =?iso-8859-1?Q?nBONRBOrDwDihOSUuG9ZcVJ518FBtgtqqrgCO4qqNmZRsSCY1prNBWWGZO?= =?iso-8859-1?Q?dGx3sM8zuBqrMX+xVAxggi2JZYsw1kvZXHrxCYyNMXEVDULig5kho8IVZc?= =?iso-8859-1?Q?vcs+tfFuQiwxBd4bPIk0Ivle4jZi70uGxzBaSjlcRXfwp+3Kn84VpOsEFF?= =?iso-8859-1?Q?fRONVID5resKnt5NCgI=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN8PR11MB3668.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97131f46-8ff0-4832-d73c-08daa63120f7 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Oct 2022 17:51:56.2599 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: rqBho3jZ1sk+XeF83L4pgLJpRxHPF6D7xyt7vusifHOMeEDG9QFW+mkPzkGCbE9gTZj/VLbHxiXQoM4CUJ3nORo6ZEcBFXpLb9+4clQ1s6pn2ELi5RT/fGxzb1x5FE1S X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB7276 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS 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 > -----Original Message----- > From: Ilpo J=E4rvinen > Sent: Monday, October 3, 2022 2:51 PM > To: Kumaravel Thiagarajan - I21417 > Subject: Re: [PATCH v2 tty-next 2/3] 8250: microchip: pci1xxxx: Add rs485 > support to quad-uart driver. >=20 > On Sat, 1 Oct 2022, Kumaravel Thiagarajan wrote: >=20 > > pci1xxxx uart supports rs485 mode of operation in the hardware with > > auto-direction control with configurable delay for releasing RTS after > > the transmission. This patch adds support for the rs485 mode. > > > > Signed-off-by: Kumaravel Thiagarajan > > > > --- > > Changes in v2: > > - move pci1xxxx_rs485_config to a separate patch with > > pci1xxxx_rs485_supported. > > --- > > drivers/tty/serial/8250/8250_pci1xxxx.c | 57 > > +++++++++++++++++++++++++ > > 1 file changed, 57 insertions(+) > > > > diff --git a/drivers/tty/serial/8250/8250_pci1xxxx.c > > b/drivers/tty/serial/8250/8250_pci1xxxx.c > > index 41a4b94f52b4..999e5a284266 100644 > > --- a/drivers/tty/serial/8250/8250_pci1xxxx.c > > +++ b/drivers/tty/serial/8250/8250_pci1xxxx.c > > + > > + if (rs485->delay_rts_after_send) { > > + baud_period_in_ns =3D ((clock_div >> 8) * 16); >=20 > Is this 16 perhaps UART_BIT_SAMPLE_CNT? Yes. Is there any macro definition for that? I could not find any definitio= n in the above name. Thank You. Regards, Kumar