Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7533889ybp; Wed, 16 Oct 2019 10:04:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyiI+Anx8IB9gHq/vY3M80hQniEZmkLAYWiLO/JUOrOaanLM41LKQko54gHBHiVeyNj2WY5 X-Received: by 2002:a50:c90d:: with SMTP id o13mr40205507edh.85.1571245461267; Wed, 16 Oct 2019 10:04:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571245461; cv=pass; d=google.com; s=arc-20160816; b=XEefn/ei1Zj5ZWUKyywsMGcWvBBO51jac8b6c5fL0JIfcPLGtV/38Sr0Ck9BlhVGFx w4ReGfq/vfwfiREpseRAx/8C2jq3DpxHMJ77fJjVoPJ4aVJ9GWHvaIxKiZUqsK/K3qOI yrWX5A6v+nIAPHTJLnFNIfW3ZpKydj2LX4OEyri1FVuVJB56OwxA39jT0HtgO8t106CP O+f1HpO3IIlNJxkkQZ9ZNj+2fMx5lhg1SklKe0WeseP2LmWpfjJHYbYjErQyf28FoSGA LF2eojGJX5PwLSGvJApzl5n3aFsrUHhS7SR2AT/7gZeYbXjjP2bMFbxxKzYQ92R/L+PM wH0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender: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; bh=nR9yoF1JpLwYSiqpWxXpnF8trAmHxRH+FAlrkUN46Ck=; b=B1ARRAR7HpFCbZ+Z70jFCO0QehhfG+D+x+gVl9AuyZULS1iV0nIDZSV/7JkWw92m8+ EM6f6i1c33rqCrL91oE4W+k2J8qo+xXbFOdlWwWHnMf/lJM+goYJ0AuRFeptzMvFjje5 FOAZy8GRueMYk7K9i9KA00VtI9EjWXiupQhGZw8U/csu8Bq+qn/gs2mUPPyy87yO9+bE bpqNT7OIdLpXcM29vv48cScem+fKvz28xVy/8byY30zTriRD42NPKnN7ef5bV9GwpOnm r2hOMiCxEg8VpnsaJ6tVsaIn4T7ZIERCALSt9NtjZ5uLInWiuoIEXQ+gRNneC7PNUXQf yMbQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toradex.com header.s=selector2 header.b=fLrCSFHA; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v14si19957010ede.424.2019.10.16.10.03.58; Wed, 16 Oct 2019 10:04:21 -0700 (PDT) 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; dkim=pass header.i=@toradex.com header.s=selector2 header.b=fLrCSFHA; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392891AbfJPPTE (ORCPT + 99 others); Wed, 16 Oct 2019 11:19:04 -0400 Received: from mail-eopbgr00099.outbound.protection.outlook.com ([40.107.0.99]:40845 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389491AbfJPPTD (ORCPT ); Wed, 16 Oct 2019 11:19:03 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oFR9rak1vCrSFL9giQMHglA+hVyuoYTPwNCMKpyg+HtyznYEUEtM/dkxCyVuFGHW8RWkOeUGnkJMUefApGs3rwvEzrDKf09/xLih9ar+tqJQVjQqg2uH/vLatv9gT7l9a70T0EJ5ynb+ugwRXrxB7Xvuu15aizyQ6Yvl6fhkZMRQgx8yTlHirlUrMKe2iVl18ZwNyNGimpbbheYQ6VOHYibK6I0IrJb6ZqP3jmpgDFZOiJb7SYBPMoULgNxLwRxA/v+KxVvGKAtLbMDZuC5v4bExu6APRSZ7tEfaP4w7OdCYpd+x6FJWQZbSfi1ZWHXvu26+upjJz5N8t9JlNezd3g== 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-SenderADCheck; bh=nR9yoF1JpLwYSiqpWxXpnF8trAmHxRH+FAlrkUN46Ck=; b=EEkiIGcrku6QwDIbV1OYCWjG/d1tlWEzlJCYDx84IFyxbCppxDUwbF6D7r+Z3UT+i+GbLoJxcBsNnS+TV9tp5wwAataTUlo+43m6/KbGP3d4fJTHNUInI2jQLt1b0rZiMyeKP+OOczJRT0FRrSKvvNMScYk9Il+sU3jvHCAiUfXXQjAAEXyf+oAxF9KMYJfoEWH63aRfCcK8bE6OJumvD2cSTA3rTa5Spn45hcuWZkzLAYMSQvsL84F4Zso3FGS91M6/dWbW6mpr9EulxB7BYkcjBe/FFfYOD2gZ2tro9d3uAHyc8elp2aKUtQfelJyAfVX9OwO7ZtkbxARnoYRUAQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=toradex.com; dmarc=pass action=none header.from=toradex.com; dkim=pass header.d=toradex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nR9yoF1JpLwYSiqpWxXpnF8trAmHxRH+FAlrkUN46Ck=; b=fLrCSFHAwAMw6OIUu17KSxvATgJc9vlLq+z9UlujplHhN9BcB45CUoOm1r+LWTHxZLU6bGgAC1z6iEqr5GVGzE4n+NdU5xRkP/VRSQfG221wmb5oWc4E6Xyj2VYPH+1jICi4LRefzLKvQbExirDiUHtmZLAz9hzY388s9BRFTz8= Received: from VI1PR0502MB3965.eurprd05.prod.outlook.com (52.134.19.20) by VI1PR0502MB2989.eurprd05.prod.outlook.com (10.175.21.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.21; Wed, 16 Oct 2019 15:18:58 +0000 Received: from VI1PR0502MB3965.eurprd05.prod.outlook.com ([fe80::f427:26bb:85cf:abad]) by VI1PR0502MB3965.eurprd05.prod.outlook.com ([fe80::f427:26bb:85cf:abad%7]) with mapi id 15.20.2347.023; Wed, 16 Oct 2019 15:18:58 +0000 From: Philippe Schenker To: Greg Kroah-Hartman , "linux-serial@vger.kernel.org" CC: Max Krummenacher , Jiri Slaby , "linux-kernel@vger.kernel.org" , Fugang Duan , Stefan Agner , "linux-imx@nxp.com" , Andrey Smirnov , Philippe Schenker Subject: [PATCH v1 2/3] tty: serial: lpuart: Use defines that correspond to correct register Thread-Topic: [PATCH v1 2/3] tty: serial: lpuart: Use defines that correspond to correct register Thread-Index: AQHVhDUHkqKVuU+c6E+orQizzb4u3g== Date: Wed, 16 Oct 2019 15:18:57 +0000 Message-ID: <20191016151845.15859-2-philippe.schenker@toradex.com> References: <20191016151845.15859-1-philippe.schenker@toradex.com> In-Reply-To: <20191016151845.15859-1-philippe.schenker@toradex.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM0PR10CA0029.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::39) To VI1PR0502MB3965.eurprd05.prod.outlook.com (2603:10a6:803:26::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=philippe.schenker@toradex.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.23.0 x-originating-ip: [46.140.72.82] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 920d0434-e11d-418f-389b-08d7524c2a47 x-ms-traffictypediagnostic: VI1PR0502MB2989: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:741; x-forefront-prvs: 0192E812EC x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(346002)(396003)(376002)(39850400004)(136003)(366004)(189003)(199004)(81156014)(2906002)(5660300002)(44832011)(476003)(486006)(8936002)(14454004)(110136005)(50226002)(2501003)(2616005)(8676002)(66066001)(11346002)(1076003)(446003)(54906003)(316002)(81166006)(86362001)(4744005)(3846002)(478600001)(6116002)(25786009)(66556008)(6436002)(66946007)(66476007)(66446008)(26005)(6512007)(36756003)(107886003)(6486002)(305945005)(52116002)(71200400001)(71190400001)(99286004)(64756008)(4326008)(186003)(7736002)(76176011)(386003)(102836004)(256004)(6506007);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR0502MB2989;H:VI1PR0502MB3965.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: toradex.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: mWHpUYSmd7IIZt4z20AUO/wvHCLlIaatLqATXtmj9nhTti6DsZmH7FzKIamCFIVI8eUB61qXaIwDMkQ76ulLyVTTRV//DNlaiToeQM1DwM3hlpT7P7/RvTZwxPPvjW/mVKbzcxP5yP7Kyxv853QaMGXtBfiXe29zze0jbYas0Kst0SH3Ox+kGPqk4itPOHsSgQl//pRwMYv3TVkJ6szFIi73d403o4Rruai5LIbA5kh5RF396aUSxSgewile3lOFFj7LDfjqgfieFPa5Ixy0tGKl8V6ogQUMtWtyJ5bwjptBpSk2uDOEgiu+RfqXoX+Ef2I/Yus0XRvWZi+7I+oEPKLzbOv8fAYtta/FHvcnfKRjMXOK0agrNqTWpYLXhuAx15uzf02CP56LLXwu7UoOqA6/vanyowcLpyivRnm0cEg= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 920d0434-e11d-418f-389b-08d7524c2a47 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Oct 2019 15:18:58.0424 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: m232DPHBzkXAdpTA6yj2EsUSIYs8fFrXeM7EjZdJQH7LARymPEAD+QQ6CsyjhCiMZuBAZfUSAdnTGGAE5W7/9Vg2AtWR8nCjX8k3Ld2ossI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB2989 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use UARTMODIR defines instead of UARTMODEM as it is a 32-bit function Signed-off-by: Philippe Schenker --- drivers/tty/serial/fsl_lpuart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuar= t.c index f3271857621c..346b4a070ce9 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -1879,10 +1879,10 @@ lpuart32_set_termios(struct uart_port *port, struct= ktermios *termios, } =20 if (termios->c_cflag & CRTSCTS) { - modem |=3D UARTMODEM_RXRTSE | UARTMODEM_TXCTSE; + modem |=3D (UARTMODIR_RXRTSE | UARTMODIR_TXCTSE); } else { termios->c_cflag &=3D ~CRTSCTS; - modem &=3D ~(UARTMODEM_RXRTSE | UARTMODEM_TXCTSE); + modem &=3D ~(UARTMODIR_RXRTSE | UARTMODIR_TXCTSE); } =20 if (termios->c_cflag & CSTOPB) --=20 2.23.0