Message ID | 20220906120645.1528646-3-johannes.schneider@leica-geosystems.com |
---|---|
State | Superseded |
Delegated to: | Stefano Babic |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=leica-geosystems.com header.i=@leica-geosystems.com header.a=rsa-sha256 header.s=selector1 header.b=NQYbJPXO; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MMPSd0vtsz1yh5 for <incoming@patchwork.ozlabs.org>; Tue, 6 Sep 2022 22:14:09 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B58E484AB9; Tue, 6 Sep 2022 14:11:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=leica-geosystems.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=leica-geosystems.com header.i=@leica-geosystems.com header.b="NQYbJPXO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 274F3849BB; Tue, 6 Sep 2022 14:06:57 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60126.outbound.protection.outlook.com [40.107.6.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0BCE484946 for <u-boot@lists.denx.de>; Tue, 6 Sep 2022 14:06:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=leica-geosystems.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=johannes.schneider@leica-geosystems.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Cwug24KoE4bZu3aMOXvIS43wM+/pS8cZphPlAvbxibv8urNmxL9xAzBH4kp9BfFKpeZl9w1EWUhNVrqCkJ/zjMXNU2an0ZcZoVgBw5yVl0mPRe4ET053ruyvzT2LxTcr7gLoDcLZED6yPENbgHTtYBALyPbCXs0yhS/ZiwtA9yyiqAH7RrGw9ftgVV9U111k9uTw40PkBjQGpbIx4O3PpUgomaK4xfJ9kL85P7p10i2xDjNfD33HzNmnk5nv6JUHjNQXyZWitQTcw3zlEW5L8VNbOpTz16yorC4ITr78KVLhYrt1xCws6jxU4seGkg8r1pHXPwKCLR0uSlaZ59rc4A== 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=KR327B5SpGZZG4DMwW3N4U0Scc/kPKy2zGGFWSLZA2Q=; b=eEsJoW2cnQqUUOtgLiBOweKn34/tcWt6V7oHK0ze+pYQ/fqxG+jxkeU/MQ/lvTC+7Owl8JWqRhnUpHJC2KPAPwotuhvJZ3I5FYSKeIPcjZW1KRWWDLnUcySN5wYVZsKsBszXPa9fQOKcOwPD6gVB7j8vsueEOyvmhij9Uzat469WIpdG+WdKLlq6mABtRkpqW8xUfI9z9T/szy8Sa7PHXIG4ZjtRnDBqo0KaZCNOgHA3EZjcLrJ7utqGbEus7d+RurdNSjN1vIv8jygAGC5h5VQ3doY9p4H4I3myYNVc5zOZkbuPJW1s2kbhf6EMxrcLUlk2lDSHrGOQQSZ/LoPjUQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.8.40.94) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=leica-geosystems.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=leica-geosystems.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leica-geosystems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KR327B5SpGZZG4DMwW3N4U0Scc/kPKy2zGGFWSLZA2Q=; b=NQYbJPXOwfxFUTAYK4zF7aLaIS24MIx6UVk9F5JjtMEy/loShZfwWhYnJA7ZqXX0bzZSIrHhRM72gFaR0vCb2KIY5ur4my46dj8GjnJweN/q+T61I6Ah6akL/fUnBtf6mdwHLwyiq6bpIQ0iXwz3+w7IOYWYYW7fZiwmxePJJZc= Received: from FR3P281CA0090.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1f::6) by DB7PR06MB4965.eurprd06.prod.outlook.com (2603:10a6:10:2b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.10; Tue, 6 Sep 2022 12:06:51 +0000 Received: from VE1EUR02FT023.eop-EUR02.prod.protection.outlook.com (2603:10a6:d10:1f:cafe::33) by FR3P281CA0090.outlook.office365.com (2603:10a6:d10:1f::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.12 via Frontend Transport; Tue, 6 Sep 2022 12:06:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 193.8.40.94) smtp.mailfrom=leica-geosystems.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=leica-geosystems.com; Received-SPF: Pass (protection.outlook.com: domain of leica-geosystems.com designates 193.8.40.94 as permitted sender) receiver=protection.outlook.com; client-ip=193.8.40.94; helo=aherlnxbspsrv01.lgs-net.com; pr=C Received: from aherlnxbspsrv01.lgs-net.com (193.8.40.94) by VE1EUR02FT023.mail.protection.outlook.com (10.152.12.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.10 via Frontend Transport; Tue, 6 Sep 2022 12:06:50 +0000 From: Johannes Schneider <johannes.schneider@leica-geosystems.com> To: u-boot@lists.denx.de Cc: peng.fan@oss.nxp.com, sbabic@denx.de, festevam@denx.de, trini@konsulko.com, bsp-development.geo@leica-geosystems.com, Johannes Schneider <johannes.schneider@leica-geosystems.com>, Peng Fan <peng.fan@nxp.com>, =?utf-8?q?Pali_Roh=C3=A1r?= <pali@kernel.org> Subject: [PATCH v4 2/2] serial: mxc: have putc use the TXFIFO Date: Tue, 6 Sep 2022 14:06:44 +0200 Message-Id: <20220906120645.1528646-3-johannes.schneider@leica-geosystems.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220906120645.1528646-1-johannes.schneider@leica-geosystems.com> References: <20220906120645.1528646-1-johannes.schneider@leica-geosystems.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: dadc708b-e769-4194-d661-08da90004818 X-MS-TrafficTypeDiagnostic: DB7PR06MB4965:EE_ X-LD-Processed: 1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 505sSRK/RyHGodcWjrBgorg99rNs1p8xkmTbEj+0ciHQLlJiWQvWNhQDxIPMCf9ylcm1vJQGGrRuRyN3Bvm9F+VQo34g0Dwu8ugiWrlyozxJBtZ/HXaLZcP4E2dAUKTB2E3CvNxn6BkwY3TmlckQLYNyUcCeQaMzcOfXManTv06JItqSxiMkVL1wqCYmdwdVxROqSAuQ864mHqU2MEQ4n+kAQk6TSF0OmiMdDJk3/G8EHT2hBCMd4wptU0ujudrF2hrRyu997zDiwqjebtX0y4vjIyG2elDj7eeelmfXkeZ0+rnK8tQ3Kl/Lj1hpOwCpMuzJj4zFvjP+s5LICsYa3j5YPIGlWXegMx90JxawdOOO+M7C7af6hrZrEDAix+uoodqVGntf/kj46PSaoLfZgu8RyX19lQenthNyfShvrbrKqC0ZNDb1+s6J7YeZYVCgTYLvwuXMIXPX7Lbt3n6pWOqV/SukF5NVBrrICSNlqti7tBZJwi/AAacx7IDGwydEjB12enJI25CQnfWt2iyeq1VaWaGlypLc6FGrsEB4I/KwBOGp6xoBZwOvncFd5NZqaEUdVb3pl+YjnSdHNxe8CSpzLHGDintkZK9fm+4NaaOC46uKq5Qvf0nLLyALrd8CbpHXinNWFPiccneYwb+vjTmzq4mfb5ZpXVUhWy4t4vhJY3Z9zGmJW9UJ5kWkVZKGgof3M1C1IUYS6mQjIvSNS1OiRQW2zf7DX9o8X+bfQqs+gY0Hoh3o4gOkDj0lLinyqR07EhcJCrIttps70xublg== X-Forefront-Antispam-Report: CIP:193.8.40.94; CTRY:CH; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:aherlnxbspsrv01.lgs-net.com; PTR:ahersrvdom50.leica-geosystems.com; CAT:NONE; SFS:(13230016)(4636009)(376002)(396003)(346002)(39860400002)(136003)(40470700004)(46966006)(36840700001)(186003)(118246002)(44832011)(5660300002)(316002)(9316004)(4326008)(70206006)(47076005)(2906002)(8676002)(4744005)(956004)(8936002)(2616005)(36756003)(40480700001)(36736006)(82310400005)(86362001)(6916009)(70586007)(1076003)(26005)(83380400001)(478600001)(6512007)(6666004)(40460700003)(6506007)(81166007)(356005)(41300700001)(6486002)(336012)(54906003)(82740400003)(36860700001); DIR:OUT; SFP:1102; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2022 12:06:50.7867 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dadc708b-e769-4194-d661-08da90004818 X-MS-Exchange-CrossTenant-Id: 1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a; Ip=[193.8.40.94]; Helo=[aherlnxbspsrv01.lgs-net.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR02FT023.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR06MB4965 X-Mailman-Approved-At: Tue, 06 Sep 2022 14:11:05 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
serial_mxc: fixing reception
|
expand
|
diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c index fa344c8b8f..0520c7929a 100644 --- a/drivers/serial/serial_mxc.c +++ b/drivers/serial/serial_mxc.c @@ -310,7 +310,7 @@ static int mxc_serial_putc(struct udevice *dev, const char ch) struct mxc_serial_plat *plat = dev_get_plat(dev); struct mxc_uart *const uart = plat->reg; - if (!(readl(&uart->ts) & UTS_TXEMPTY)) + if (readl(&uart->ts) & UTS_TXFULL) return -EAGAIN; writel(ch, &uart->txd);