From: Stephen Boyd <sboyd@kernel.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jirislaby@kernel.org>,
Stephan Gerhold <stephan.gerhold@linaro.org>
Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-serial@vger.kernel.org, Sam Day <me@samcday.com>
Subject: Re: [PATCH] serial: msm: Configure correct working mode before starting earlycon
Date: Wed, 09 Apr 2025 11:11:00 -0700 [thread overview]
Message-ID: <ac130f09d89b8efea8e0d24f1465c42f@kernel.org> (raw)
In-Reply-To: <20250408-msm-serial-earlycon-v1-1-429080127530@linaro.org>
Quoting Stephan Gerhold (2025-04-08 10:22:47)
> diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c
> index 1b137e06844425584afe5d3f647e9537c6e2d658..3449945493ceb42369d2acafca925350fccc4f82 100644
> --- a/drivers/tty/serial/msm_serial.c
> +++ b/drivers/tty/serial/msm_serial.c
> @@ -1746,6 +1746,12 @@ msm_serial_early_console_setup_dm(struct earlycon_device *device,
> if (!device->port.membase)
> return -ENODEV;
>
> + /* Disable DM / single-character modes */
> + msm_write(&device->port, 0, UARTDM_DMEN);
> + msm_write(&device->port, MSM_UART_CR_CMD_RESET_RX, MSM_UART_CR);
> + msm_write(&device->port, MSM_UART_CR_CMD_RESET_TX, MSM_UART_CR);
> + msm_write(&device->port, MSM_UART_CR_TX_ENABLE, MSM_UART_CR);
In msm_complete_tx_dma() these are under an if condition checking the
version of uartdm. Do we need that here? Although I also see that
MSM_UART_CR_CMD_RESET_TX is unconditionally written in msm_reset() but
not MSM_UART_CR_TX_ENABLE so maybe the condition check is wrong or the
bit doesn't exist in earlier versions of the hardware so it doesn't
really matter.
next prev parent reply other threads:[~2025-04-09 18:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-08 17:22 [PATCH] serial: msm: Configure correct working mode before starting earlycon Stephan Gerhold
2025-04-09 10:00 ` Mukesh Kumar Savaliya
2025-04-09 12:36 ` Stephan Gerhold
2025-04-09 12:37 ` neil.armstrong
2025-04-09 18:11 ` Stephen Boyd [this message]
2025-04-09 19:01 ` Stephan Gerhold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ac130f09d89b8efea8e0d24f1465c42f@kernel.org \
--to=sboyd@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=me@samcday.com \
--cc=stephan.gerhold@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.