]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
serial: tegra: Only print FIFO error message when an error occurs
authorJon Hunter <jonathanh@nvidia.com>
Wed, 30 Jun 2021 12:56:43 +0000 (13:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Aug 2021 11:21:02 +0000 (13:21 +0200)
commitafdef443a89236c1b2d50abf4e0675d11c7a14cf
tree3ddba106986d1af75723a2b853b1c12c65e592e6
parent097a183f9c1d541e448adcb43c4a8449e3e6b92c
serial: tegra: Only print FIFO error message when an error occurs

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: <stable@vger.kernel.org>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20210630125643.264264-1-jonathanh@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial-tegra.c