Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2855622ybc; Mon, 25 Nov 2019 05:22:30 -0800 (PST) X-Google-Smtp-Source: APXvYqz6vC4a8qHvWybaDmv6U795F26hdEL8F03qBhlrIT2UXcN90eVRlA49CvN5Mk3IorMvtKnH X-Received: by 2002:a17:906:351b:: with SMTP id r27mr37687942eja.120.1574688150534; Mon, 25 Nov 2019 05:22:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574688150; cv=none; d=google.com; s=arc-20160816; b=UQOb8kni9aaQSmZkSM9SoWDk1OkoL+6Ai86cDPCAl9ocvVe8rsECAfn5GBDqNRE9hX E4oxrQRSWys29955tj9e8rzGRrFKVtXI0kApP3Z+JEOHb85RtMgj/Ud5ZZnU1gAjBLbS /NTWU4YP5OpvZ0wRlCYefRXRRzg+6WD6yA1/rZq0HUTyf6maMeo2W9G79Z4426q9F3Dd dT4+Z/VQ+VxktZuDoG0DnDzIUVwR28PktpJVl+8Fb6L3OV1th05EcunAyU+nv6pbXJB7 GxE7D5EjgK8Mx1rI6nY3EKJxLTCCLeGKEwwSWWjd8YNf6A3D3XyDcCEt/c7TZfBNKqj1 i8Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=8zRVPDPJlCv+cj4ZZ5OXlE26bPOD4fWnZQ+3HQCzlCQ=; b=w4tZLMQTOb2bkxmaXgy3i+y6MLbKrj3+zwha+K23iF5j8vu+LoeWk7ukLubGy//xtH Ul/U2mTu/JiOVoS1U1rkYXcQ2lOz2gOhATYYuKXdKCiQV+Un55/d+aZxuiPCGkMT7/V5 mUIGGl2Sf33lHsrtP6NG8dAR7E1tS9NKr3dqquW+8Eamg4oHZpoG89R5JWe9nShehO/m hqaCE456urWZFsFGTtTPH4ZU5D0qw1RiWuRCsr9fCqRzQvNjLWuEzWZICZKMphrPy0XX NzSNRWXZ7ZQKdiHgXt54hmLBtbR5ch9wI/HKM0DVdvLVEL93wwcHEefRU3iB7r66QY1z uKxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y24si4475365ejc.170.2019.11.25.05.22.05; Mon, 25 Nov 2019 05:22:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727736AbfKYNUP (ORCPT + 99 others); Mon, 25 Nov 2019 08:20:15 -0500 Received: from mail-eopbgr800078.outbound.protection.outlook.com ([40.107.80.78]:60059 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725823AbfKYNUO (ORCPT ); Mon, 25 Nov 2019 08:20:14 -0500 Received: from BL0PR02CA0038.namprd02.prod.outlook.com (2603:10b6:207:3d::15) by BYAPR02MB5143.namprd02.prod.outlook.com (2603:10b6:a03:64::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.19; Mon, 25 Nov 2019 13:20:10 +0000 Received: from BL2NAM02FT039.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::200) by BL0PR02CA0038.outlook.office365.com (2603:10b6:207:3d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.23 via Frontend Transport; Mon, 25 Nov 2019 13:20:10 +0000 Authentication-Results: spf=softfail (sender IP is 149.199.60.83) smtp.mailfrom=gmail.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=gmail.com; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning gmail.com discourages use of 149.199.60.83 as permitted sender) Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT039.mail.protection.outlook.com (10.152.77.152) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.2474.17 via Frontend Transport; Mon, 25 Nov 2019 13:20:10 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1iZEDS-0008Dp-QO; Mon, 25 Nov 2019 05:15:46 -0800 Received: from [127.0.0.1] (helo=xsj-smtp-dlp1.xlnx.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1iZEDN-0002XV-Db; Mon, 25 Nov 2019 05:15:41 -0800 Received: from xsj-pvapsmtp01 (mail.xilinx.com [149.199.38.66] (may be forged)) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id xAPDFeng002616; Mon, 25 Nov 2019 05:15:41 -0800 Received: from [10.140.6.59] (helo=xhdshubhraj40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1iZEDM-0002Wb-5q; Mon, 25 Nov 2019 05:15:40 -0800 From: shubhrajyoti.datta@gmail.com To: linux-kernel@vger.kernel.org Cc: michal.simek@xilinx.com, gregkh@linuxfoundation.org, arnd@arndb.de, Maarten Brock , Shubhrajyoti Datta Subject: [PATCHv2 3/3] serial: xilinx_uartps: set_mctrl sets RTS and DTR Date: Mon, 25 Nov 2019 18:45:31 +0530 Message-Id: <1574687731-21563-3-git-send-email-shubhrajyoti.datta@gmail.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1574687731-21563-1-git-send-email-shubhrajyoti.datta@gmail.com> References: <1574687731-21563-1-git-send-email-shubhrajyoti.datta@gmail.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-Result: No--5.124-7.0-31-1 X-imss-scan-details: No--5.124-7.0-31-1;No--5.124-5.0-31-1 X-TM-AS-User-Approved-Sender: No;No X-TM-AS-Result-Xfilter: Match text exemption rules:No X-EOPAttributedMessage: 0 X-Matching-Connectors: 132191616104858297;(f9e945fa-a09a-4caa-7158-08d2eb1d8c44);() X-Forefront-Antispam-Report: CIP:149.199.60.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(346002)(136003)(376002)(396003)(39860400002)(199004)(189003)(9686003)(86362001)(4326008)(82202003)(51416003)(305945005)(2351001)(6666004)(356004)(54906003)(316002)(36756003)(2906002)(55446002)(2361001)(48376002)(76482006)(50466002)(446003)(76176011)(498600001)(16586007)(9786002)(107886003)(26005)(5660300002)(70586007)(336012)(426003)(73392003)(11346002)(2616005)(70206006)(4744005)(50226002)(81166006)(81156014)(47776003)(8676002)(61266001)(8936002)(6916009)(42866002);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR02MB5143;H:xsj-pvapsmtpgw01;FPR:;SPF:SoftFail;LANG:en;PTR:unknown-60-83.xilinx.com;A:1;MX:1; MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f4a80fb2-092f-4a1a-7947-08d771aa32a3 X-MS-TrafficTypeDiagnostic: BYAPR02MB5143: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:88; X-Forefront-PRVS: 0232B30BBC X-Microsoft-Antispam: BCL:0; X-Microsoft-Antisp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rmFkFWWymCfen6+4FSzvJonXv+CwdHZC3BlbBnPn+f3VNUBxXdscmFB?= =?us-ascii?Q?FCix0CfHs1MKBA1Q+TWSY2rXqdpZfXLUJ50+itNrXnl+4cNOyygaK5OH7ht3?= =?us-ascii?Q?AkneXi8S1s33hwl5jyAPDsnS91Gy1F8In+Y4zJIz1BFV+sF8114HVVA+s8M3?= =?us-ascii?Q?Uep+eW5bshD/hjgm8Q5et6iJ9VGrqavbAZx6SHUFUGDkX6PfCVXaN5/0xEyr?= =?us-ascii?Q?nYt9KKDrIa0kjWzKSzIeq5GM4yIqV421F0WaNZF1piDWhMrsyskO3jgW61xm?= =?us-ascii?Q?tv3O2z4cctRBPAJHWBuT/ikz6IAjemSdPsZhpuMyzy7x+oTmpcZFUhageRKO?= =?us-ascii?Q?ryBEnhEc3qAA4wyR1mXd6DfOOGRnY8U0WnjlGWpK4bPz0tZa+yig+MuPmjYq?= =?us-ascii?Q?51AvU7MYde8sn6oDmOKGco+YX6vaqTNiMeGHx6/azMzkg27cTHbWAnwm9U7r?= =?us-ascii?Q?UDh3vQp2j+X+K+I03rgZaidudcZgaNz8b7xFl/dLc9TpLQJ9iYE57ZpBB3gi?= =?us-ascii?Q?wiTVzrtnpYjaRnfj6TW7l6mJeOXnD4kw3ac1wKiSn7yrLP+qKYTa6ImfBe5j?= =?us-ascii?Q?F+GehXtzhpM5lPdLJoMDQDiagFUyd7usu6AE7P0xS8E1Ce1AAqdAcnJQH7z3?= =?us-ascii?Q?Rm01edM06CaT+GTPSTCywcDq2s/Az51Qb7XATq7TCE5xAOF+sF6eRuM8psNk?= =?us-ascii?Q?DSrhLjpVBswSS4fkejBXjnciOMbsyb7pMEBdw0zh?= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Nov 2019 13:20:10.2426 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f4a80fb2-092f-4a1a-7947-08d771aa32a3 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB5143 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maarten Brock set_mctrl now sets RTS and DTR. Signed-off-by: Maarten Brock Signed-off-by: Shubhrajyoti Datta --- drivers/tty/serial/xilinx_uartps.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index e82f8db..b4fd550 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -1059,6 +1059,10 @@ static void cdns_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) val &= ~(CDNS_UART_MODEMCR_RTS | CDNS_UART_MODEMCR_DTR); mode_reg &= ~CDNS_UART_MR_CHMODE_MASK; + if (mctrl & TIOCM_RTS) + val |= CDNS_UART_MODEMCR_RTS; + if (mctrl & TIOCM_DTR) + val |= CDNS_UART_MODEMCR_DTR; if (mctrl & TIOCM_LOOP) mode_reg |= CDNS_UART_MR_CHMODE_L_LOOP; else -- 2.1.1