serial: msm_geni_serial: Fix possible null pointer access with handle_rx
Some customers are using UART node in UFFI for console and using
the same node for HSUART in kernel but not as console. In this
scenario there is a possibility for null pointer access
with handle_rx while trying to stop secondary sequencer.
This change will move handle_rx initialization from port_startup to
probe function. This will help to avoid null pointer access issues.
Also check for GENI active state before stopping secondary engine in
earlyconsole stage.
Change-Id: Ibda592b375d14ba0c23c4b99223006b1fa53c211
Signed-off-by:
Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
Loading
Please register or sign in to comment