LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] tty: serial: fsl_lpuart: fix the wrong mapbase value
@ 2021-08-17 6:30 Sherry Sun
2021-08-18 14:05 ` Greg KH
2021-08-19 1:54 ` Fabio Estevam
0 siblings, 2 replies; 5+ messages in thread
From: Sherry Sun @ 2021-08-17 6:30 UTC (permalink / raw)
To: gregkh, jirislaby; +Cc: linux-serial, linux-kernel, linux-imx
From: Andy Duan <fugang.duan@nxp.com>
Register offset needs to be applied on mapbase also.
dma_tx/rx_request use the physical address of UARTDATA.
Register offset is currently only applied to membase (the
corresponding virtual addr) but not on mapbase.
Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Adriana Reus <adriana.reus@nxp.com>
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
---
drivers/tty/serial/fsl_lpuart.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c
index f0e5da77ed6d..460e428b7592 100644
--- a/drivers/tty/serial/fsl_lpuart.c
+++ b/drivers/tty/serial/fsl_lpuart.c
@@ -2611,7 +2611,7 @@ static int lpuart_probe(struct platform_device *pdev)
return PTR_ERR(sport->port.membase);
sport->port.membase += sdata->reg_off;
- sport->port.mapbase = res->start;
+ sport->port.mapbase = res->start + sdata->reg_off;
sport->port.dev = &pdev->dev;
sport->port.type = PORT_LPUART;
sport->devtype = sdata->devtype;
--
2.17.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] tty: serial: fsl_lpuart: fix the wrong mapbase value
2021-08-17 6:30 [PATCH] tty: serial: fsl_lpuart: fix the wrong mapbase value Sherry Sun
@ 2021-08-18 14:05 ` Greg KH
2021-08-19 1:27 ` Sherry Sun
2021-08-19 1:54 ` Fabio Estevam
1 sibling, 1 reply; 5+ messages in thread
From: Greg KH @ 2021-08-18 14:05 UTC (permalink / raw)
To: Sherry Sun; +Cc: jirislaby, linux-serial, linux-kernel, linux-imx
On Tue, Aug 17, 2021 at 02:30:58PM +0800, Sherry Sun wrote:
> From: Andy Duan <fugang.duan@nxp.com>
>
> Register offset needs to be applied on mapbase also.
> dma_tx/rx_request use the physical address of UARTDATA.
> Register offset is currently only applied to membase (the
> corresponding virtual addr) but not on mapbase.
>
> Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
> Acked-by: Fugang Duan <fugang.duan@nxp.com>
> Signed-off-by: Adriana Reus <adriana.reus@nxp.com>
> Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
> ---
Why is there no signed-off-by from the author?
Please fix up.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] tty: serial: fsl_lpuart: fix the wrong mapbase value
2021-08-18 14:05 ` Greg KH
@ 2021-08-19 1:27 ` Sherry Sun
0 siblings, 0 replies; 5+ messages in thread
From: Sherry Sun @ 2021-08-19 1:27 UTC (permalink / raw)
To: Greg KH; +Cc: jirislaby, linux-serial, linux-kernel, dl-linux-imx
Hi Greg,
> -----Original Message-----
> From: Greg KH <gregkh@linuxfoundation.org>
> Sent: 2021年8月18日 22:05
> To: Sherry Sun <sherry.sun@nxp.com>
> Cc: jirislaby@kernel.org; linux-serial@vger.kernel.org; linux-
> kernel@vger.kernel.org; dl-linux-imx <linux-imx@nxp.com>
> Subject: Re: [PATCH] tty: serial: fsl_lpuart: fix the wrong mapbase value
>
> On Tue, Aug 17, 2021 at 02:30:58PM +0800, Sherry Sun wrote:
> > From: Andy Duan <fugang.duan@nxp.com>
> >
> > Register offset needs to be applied on mapbase also.
> > dma_tx/rx_request use the physical address of UARTDATA.
> > Register offset is currently only applied to membase (the
> > corresponding virtual addr) but not on mapbase.
> >
> > Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
> > Acked-by: Fugang Duan <fugang.duan@nxp.com>
> > Signed-off-by: Adriana Reus <adriana.reus@nxp.com>
> > Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
> > ---
>
> Why is there no signed-off-by from the author?
>
> Please fix up.
Sure, will add it in V2, thanks!
>
> thanks,
>
> greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] tty: serial: fsl_lpuart: fix the wrong mapbase value
2021-08-17 6:30 [PATCH] tty: serial: fsl_lpuart: fix the wrong mapbase value Sherry Sun
2021-08-18 14:05 ` Greg KH
@ 2021-08-19 1:54 ` Fabio Estevam
2021-08-19 2:03 ` Sherry Sun
1 sibling, 1 reply; 5+ messages in thread
From: Fabio Estevam @ 2021-08-19 1:54 UTC (permalink / raw)
To: Sherry Sun
Cc: Greg Kroah-Hartman, Jiri Slaby, linux-serial, linux-kernel,
NXP Linux Team
Hi Sherry,
On Tue, Aug 17, 2021 at 3:32 AM Sherry Sun <sherry.sun@nxp.com> wrote:
>
> From: Andy Duan <fugang.duan@nxp.com>
>
> Register offset needs to be applied on mapbase also.
> dma_tx/rx_request use the physical address of UARTDATA.
> Register offset is currently only applied to membase (the
> corresponding virtual addr) but not on mapbase.
>
> Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
> Acked-by: Fugang Duan <fugang.duan@nxp.com>
> Signed-off-by: Adriana Reus <adriana.reus@nxp.com>
> Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
You probably should add a Fixes tag.
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] tty: serial: fsl_lpuart: fix the wrong mapbase value
2021-08-19 1:54 ` Fabio Estevam
@ 2021-08-19 2:03 ` Sherry Sun
0 siblings, 0 replies; 5+ messages in thread
From: Sherry Sun @ 2021-08-19 2:03 UTC (permalink / raw)
To: Fabio Estevam
Cc: Greg Kroah-Hartman, Jiri Slaby, linux-serial, linux-kernel, dl-linux-imx
Hi Fabio,
> -----Original Message-----
> From: Fabio Estevam <festevam@gmail.com>
> Sent: 2021年8月19日 9:55
> To: Sherry Sun <sherry.sun@nxp.com>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>; Jiri Slaby
> <jirislaby@kernel.org>; linux-serial@vger.kernel.org; linux-kernel <linux-
> kernel@vger.kernel.org>; dl-linux-imx <linux-imx@nxp.com>
> Subject: Re: [PATCH] tty: serial: fsl_lpuart: fix the wrong mapbase value
>
> Hi Sherry,
>
> On Tue, Aug 17, 2021 at 3:32 AM Sherry Sun <sherry.sun@nxp.com> wrote:
> >
> > From: Andy Duan <fugang.duan@nxp.com>
> >
> > Register offset needs to be applied on mapbase also.
> > dma_tx/rx_request use the physical address of UARTDATA.
> > Register offset is currently only applied to membase (the
> > corresponding virtual addr) but not on mapbase.
> >
> > Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
> > Acked-by: Fugang Duan <fugang.duan@nxp.com>
> > Signed-off-by: Adriana Reus <adriana.reus@nxp.com>
> > Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
>
> You probably should add a Fixes tag.
That's reasonable, I will add it. Thanks!
Best regards
Sherry
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-08-19 2:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-17 6:30 [PATCH] tty: serial: fsl_lpuart: fix the wrong mapbase value Sherry Sun
2021-08-18 14:05 ` Greg KH
2021-08-19 1:27 ` Sherry Sun
2021-08-19 1:54 ` Fabio Estevam
2021-08-19 2:03 ` Sherry Sun
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).