serial: tegra-tcu: Reorder channel initialization
authorMikko Perttunen <mperttunen@nvidia.com>
Wed, 9 Jun 2021 15:56:55 +0000 (18:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jun 2021 12:02:06 +0000 (14:02 +0200)
commitaf9a1f61ac331c2f910d9186767d02f8e982c38e
treee016f4af8ad2d1c9326471cd6d828e9dd09b380a
parent08a84410a04f05c7c1b8e833f552416d8eb9f6fe
serial: tegra-tcu: Reorder channel initialization

Request the RX mailbox only after initializing the UART data
structures. Otherwise it can rarely happen that the receive
callback is called before the UART is ready.

Fixes: 2d908b38d409 ("serial: Add Tegra Combined UART driver")
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Link: https://lore.kernel.org/r/20210609155655.3567545-1-mperttunen@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/tegra-tcu.c