Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3766905pxt; Tue, 10 Aug 2021 10:50:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZKTUhB31GGsH5YKMynf8AjQjc15a0ixonBH5bdUJvsyRDCO0vAMvtVJFImhvucVc4slwD X-Received: by 2002:a5d:8d1a:: with SMTP id p26mr351780ioj.178.1628617819898; Tue, 10 Aug 2021 10:50:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628617819; cv=none; d=google.com; s=arc-20160816; b=e9tBY5AlF5VQ5RAadh3Wr9hnHHMcQe67ABDaEDQkR3NBOkAJ3bwyrvuTCkaf02tRHG /P9+eUdCtXxe1u2P92NMHHsbEiEyE7/qgCfqi4e1mjzeWItidmjlTYzQ+8OmLUDs7WyI 4arCyDhOHpCujwx7W9rbM41LK9Qh6lccK47bi3DCF7qUbeBvSDyVQtqRhleOyv5xUdLo Vg8rA1woHFkU1X0QyE52hDlJJ4Nvolr1XQ+pw+d6HQJEV/EMQCnQCddD3L/nPWFMYjqK dBXsOetoiBdW8p1iPdDAFW3vbMtyV4/E1n2J49SzVdhzECkx6scN9024+Tertp3Xiv78 3blA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=09/a4fcuGQwlop0VOBJlUSwTcdKQCldotJ6DeE35bH4=; b=HSOSg41v1Mgo9pgs5qfXKaOSg6eW6etAv4pVY+SKE+Oua1iJmvxv//ep6v83O+iKDt x8cRLrpv5Ob3vVbRaopl/3KD4QmpsmbG5tCQtuGkm7Xcu7r6M+YD/2Ww/gX2sHyBFjo0 O6UTWPXq93bGovk25eX+Z5uiI4F8JogJVt42Bf5jVBllYrL9qzJrKRCP4vEKjvL5aTkO lUG9t/NmluTFlrUzk3H5NJ7rv37y4y7+RPdlkuAIIhFCWQcmYyQ7OTdG2GxgsX8g3jLI r2bnwQb3JAHuD2GsvF6oeWwv24bWvMlM9q2fmU9Rnjaj4w3rutLtYtwL9aF45UTZFC0R v8Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Q+OruZ2P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i10si946257iol.58.2021.08.10.10.50.08; Tue, 10 Aug 2021 10:50:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Q+OruZ2P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236019AbhHJRsf (ORCPT + 99 others); Tue, 10 Aug 2021 13:48:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:42798 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233060AbhHJRpl (ORCPT ); Tue, 10 Aug 2021 13:45:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4A1FE61245; Tue, 10 Aug 2021 17:40:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628617211; bh=M4uIk6HnIuaXHioYD4GBx7fOuXBr8/MhwfLnOPzphCQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q+OruZ2PEK7ZNNe4fwnOKpHBQZY0wkUmnSZXDy+PX9Fnv2gRLmxHrSh/I/o5l8BKy 6/ksjPbWkUNL4WBqM0bq8Ca3a7nE+dxqsRm2YXRIR6H3/Bs1Tg3EtOMormLju90Bnf 4apJ5tdgcPGK8+XhRPTJZ1+WwUqlCJr8kQhFlpcw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thierry Reding , Jon Hunter Subject: [PATCH 5.10 094/135] serial: tegra: Only print FIFO error message when an error occurs Date: Tue, 10 Aug 2021 19:30:28 +0200 Message-Id: <20210810172958.952262066@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172955.660225700@linuxfoundation.org> References: <20210810172955.660225700@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jon Hunter commit cc9ca4d95846cbbece48d9cd385550f8fba6a3c1 upstream. The Tegra serial driver always prints an error message when enabling the FIFO for devices that have support for checking the FIFO enable status. Fix this by displaying the error message, only when an error occurs. Finally, update the error message to make it clear that enabling the FIFO failed and display the error code. Fixes: 222dcdff3405 ("serial: tegra: check for FIFO mode enabled status") Cc: Acked-by: Thierry Reding Signed-off-by: Jon Hunter Link: https://lore.kernel.org/r/20210630125643.264264-1-jonathanh@nvidia.com Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/serial-tegra.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/drivers/tty/serial/serial-tegra.c +++ b/drivers/tty/serial/serial-tegra.c @@ -1040,9 +1040,11 @@ static int tegra_uart_hw_init(struct teg if (tup->cdata->fifo_mode_enable_status) { ret = tegra_uart_wait_fifo_mode_enabled(tup); - dev_err(tup->uport.dev, "FIFO mode not enabled\n"); - if (ret < 0) + if (ret < 0) { + dev_err(tup->uport.dev, + "Failed to enable FIFO mode: %d\n", ret); return ret; + } } else { /* * For all tegra devices (up to t210), there is a hardware