mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vignesh Raghavendra <vigneshr@ti.com>
To: Ronald Wahl <rwahl@gmx.de>, <linux-kernel@vger.kernel.org>,
	<linux-serial@vger.kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Ronald Wahl <ronald.wahl@raritan.com>, <stable@vger.kernel.org>
Subject: Re: [PATCH v3] serial: 8250: 8250_omap: Clear UART_HAS_RHR_IT_DIS bit
Date: Thu, 2 Nov 2023 14:56:54 +0530	[thread overview]
Message-ID: <fbe705a6-dade-49ce-9ec8-6d7b87198d11@ti.com> (raw)
In-Reply-To: <20231031110909.11695-1-rwahl@gmx.de>



On 31/10/23 16:39, Ronald Wahl wrote:
> From: Ronald Wahl <ronald.wahl@raritan.com>
> 
> This fixes commit 439c7183e5b9 ("serial: 8250: 8250_omap: Disable RX
> interrupt after DMA enable") which unfortunately set the
> UART_HAS_RHR_IT_DIS bit in the UART_OMAP_IER2 register and never
> cleared it.
> 
> Cc: stable@vger.kernel.org
> Fixes: 439c7183e5b9 ("serial: 8250: 8250_omap: Disable RX interrupt after DMA enable")
> Signed-off-by: Ronald Wahl <ronald.wahl@raritan.com>
> ---
> V3: - add Cc: stable@vger.kernel.org
> 
> V2: - add Fixes: tag
>     - fix author
> 
>  drivers/tty/serial/8250/8250_omap.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/tty/serial/8250/8250_omap.c b/drivers/tty/serial/8250/8250_omap.c
> index ca972fd37725..c7ab2963040b 100644
> --- a/drivers/tty/serial/8250/8250_omap.c
> +++ b/drivers/tty/serial/8250/8250_omap.c
> @@ -914,7 +914,7 @@ static void __dma_rx_do_complete(struct uart_8250_port *p)
>  	if (priv->habit & UART_HAS_RHR_IT_DIS) {
>  		reg = serial_in(p, UART_OMAP_IER2);
>  		reg &= ~UART_OMAP_IER2_RHR_IT_DIS;
> -		serial_out(p, UART_OMAP_IER2, UART_OMAP_IER2_RHR_IT_DIS);
> +		serial_out(p, UART_OMAP_IER2, reg);
>  	}
> 
>  	dmaengine_tx_status(rxchan, cookie, &state);
> @@ -1060,7 +1060,7 @@ static int omap_8250_rx_dma(struct uart_8250_port *p)
>  	if (priv->habit & UART_HAS_RHR_IT_DIS) {
>  		reg = serial_in(p, UART_OMAP_IER2);
>  		reg |= UART_OMAP_IER2_RHR_IT_DIS;
> -		serial_out(p, UART_OMAP_IER2, UART_OMAP_IER2_RHR_IT_DIS);
> +		serial_out(p, UART_OMAP_IER2, reg);
>  	}
> 
>  	dma_async_issue_pending(dma->rxchan);


Thanks for the fix!

Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>



> --
> 2.41.0
> 

-- 
Regards
Vignesh

      reply	other threads:[~2023-11-02  9:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-31 11:09 Ronald Wahl
2023-11-02  9:26 ` Vignesh Raghavendra [this message]

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=fbe705a6-dade-49ce-9ec8-6d7b87198d11@ti.com \
    --to=vigneshr@ti.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=ronald.wahl@raritan.com \
    --cc=rwahl@gmx.de \
    --cc=stable@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®