linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] serial: imx: Delete duplicated argument to '|' in imx_uart_probe
@ 2020-09-03  6:24 Ye Bin
  2020-09-03  7:35 ` Uwe Kleine-König
  0 siblings, 1 reply; 3+ messages in thread
From: Ye Bin @ 2020-09-03  6:24 UTC (permalink / raw)
  To: chris.ruehl, gregkh, linux-serial; +Cc: Ye Bin

When calculate "ucr1" UCR1_TRDYEN is duplicate.

Fixes: c514a6f848b5b ("serial: imx: use Tx ready rather than Tx empty irq")
Signed-off-by: Ye Bin <yebin10@huawei.com>
---
 drivers/tty/serial/imx.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index ce8c472cf385..4e6ead1f650e 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -2389,8 +2389,7 @@ static int imx_uart_probe(struct platform_device *pdev)
 
 	/* Disable interrupts before requesting them */
 	ucr1 = imx_uart_readl(sport, UCR1);
-	ucr1 &= ~(UCR1_ADEN | UCR1_TRDYEN | UCR1_IDEN | UCR1_RRDYEN |
-		 UCR1_TRDYEN | UCR1_RTSDEN);
+	ucr1 &= ~(UCR1_ADEN | UCR1_TRDYEN | UCR1_IDEN | UCR1_RRDYEN | UCR1_RTSDEN);
 	imx_uart_writel(sport, ucr1, UCR1);
 
 	if (!imx_uart_is_imx1(sport) && sport->dte_mode) {
-- 
2.25.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] serial: imx: Delete duplicated argument to '|' in imx_uart_probe
  2020-09-03  6:24 [PATCH v2] serial: imx: Delete duplicated argument to '|' in imx_uart_probe Ye Bin
@ 2020-09-03  7:35 ` Uwe Kleine-König
  2020-09-04 15:11   ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Uwe Kleine-König @ 2020-09-03  7:35 UTC (permalink / raw)
  To: Ye Bin; +Cc: chris.ruehl, gregkh, linux-serial

[-- Attachment #1: Type: text/plain, Size: 635 bytes --]

Hello,

On Thu, Sep 03, 2020 at 02:24:01PM +0800, Ye Bin wrote:
> When calculate "ucr1" UCR1_TRDYEN is duplicate.
> 
> Fixes: c514a6f848b5b ("serial: imx: use Tx ready rather than Tx empty irq")
> Signed-off-by: Ye Bin <yebin10@huawei.com>

Not sure I'd use Fixes: to reference the commit that introduced this
duplication, as this fix is not critical at all.

Other than that:

Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] serial: imx: Delete duplicated argument to '|' in imx_uart_probe
  2020-09-03  7:35 ` Uwe Kleine-König
@ 2020-09-04 15:11   ` Greg KH
  0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2020-09-04 15:11 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: Ye Bin, chris.ruehl, linux-serial

On Thu, Sep 03, 2020 at 09:35:41AM +0200, Uwe Kleine-König wrote:
> Hello,
> 
> On Thu, Sep 03, 2020 at 02:24:01PM +0800, Ye Bin wrote:
> > When calculate "ucr1" UCR1_TRDYEN is duplicate.
> > 
> > Fixes: c514a6f848b5b ("serial: imx: use Tx ready rather than Tx empty irq")
> > Signed-off-by: Ye Bin <yebin10@huawei.com>
> 
> Not sure I'd use Fixes: to reference the commit that introduced this
> duplication, as this fix is not critical at all.

Agreed, I'm dropping that line.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-04 15:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-03  6:24 [PATCH v2] serial: imx: Delete duplicated argument to '|' in imx_uart_probe Ye Bin
2020-09-03  7:35 ` Uwe Kleine-König
2020-09-04 15:11   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).