2022-04-05 01:08:17

by Prabhakar Mahadev Lad

[permalink] [raw]
Subject: [PATCH 2/2] mmc: renesas_internal_dmac: Fix typo's

Fix typo's,
* difference -> different
* alignment -> aligned

Reported-by: Pavel Machek <[email protected]>
Signed-off-by: Lad Prabhakar <[email protected]>
---
drivers/mmc/host/renesas_sdhi_internal_dmac.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/host/renesas_sdhi_internal_dmac.c b/drivers/mmc/host/renesas_sdhi_internal_dmac.c
index 1685df00863b..b468368a4539 100644
--- a/drivers/mmc/host/renesas_sdhi_internal_dmac.c
+++ b/drivers/mmc/host/renesas_sdhi_internal_dmac.c
@@ -310,7 +310,7 @@ renesas_sdhi_internal_dmac_dataend_dma(struct tmio_mmc_host *host) {
}

/*
- * renesas_sdhi_internal_dmac_map() will be called with two difference
+ * renesas_sdhi_internal_dmac_map() will be called with two different
* sg pointers in two mmc_data by .pre_req(), but tmio host can have a single
* sg_ptr only. So, renesas_sdhi_internal_dmac_{un}map() should use a sg
* pointer in a mmc_data instead of host->sg_ptr.
@@ -344,7 +344,7 @@ renesas_sdhi_internal_dmac_map(struct tmio_mmc_host *host,

data->host_cookie = cookie;

- /* This DMAC cannot handle if buffer is not 128-bytes alignment */
+ /* This DMAC cannot handle if buffer is not 128-bytes aligned */
if (!IS_ALIGNED(sg_dma_address(data->sg), 128)) {
renesas_sdhi_internal_dmac_unmap(host, data, cookie);
return false;
--
2.17.1


2022-04-05 01:54:41

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH 2/2] mmc: renesas_internal_dmac: Fix typo's


> - /* This DMAC cannot handle if buffer is not 128-bytes alignment */
> + /* This DMAC cannot handle if buffer is not 128-bytes aligned */

Well, as we are here now, I think this can be further improved.


Attachments:
(No filename) (213.00 B)
signature.asc (849.00 B)
Download all attachments

2022-04-05 04:25:26

by Prabhakar

[permalink] [raw]
Subject: Re: [PATCH 2/2] mmc: renesas_internal_dmac: Fix typo's

On Mon, Apr 4, 2022 at 7:21 PM Wolfram Sang
<[email protected]> wrote:
>
>
> > - /* This DMAC cannot handle if buffer is not 128-bytes alignment */
> > + /* This DMAC cannot handle if buffer is not 128-bytes aligned */
>
> Well, as we are here now, I think this can be further improved.
>
"The internal DMAC supports 128-bytes aligned buffers only", does this
sound good?

Cheers,
Prabhakar

2022-04-05 05:21:16

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH 2/2] mmc: renesas_internal_dmac: Fix typo's


> > > - /* This DMAC cannot handle if buffer is not 128-bytes alignment */
> > > + /* This DMAC cannot handle if buffer is not 128-bytes aligned */
> >
> > Well, as we are here now, I think this can be further improved.
> >
> "The internal DMAC supports 128-bytes aligned buffers only", does this
> sound good?

I'd think it should be "128 byte aligned"? But I can't explain why, just
a gut feeling.

Otherwise good!


Attachments:
(No filename) (441.00 B)
signature.asc (849.00 B)
Download all attachments

2022-04-05 06:36:43

by Prabhakar

[permalink] [raw]
Subject: Re: [PATCH 2/2] mmc: renesas_internal_dmac: Fix typo's

On Tue, Apr 5, 2022 at 5:45 AM Wolfram Sang
<[email protected]> wrote:
>
>
> > > > - /* This DMAC cannot handle if buffer is not 128-bytes alignment */
> > > > + /* This DMAC cannot handle if buffer is not 128-bytes aligned */
> > >
> > > Well, as we are here now, I think this can be further improved.
> > >
> > "The internal DMAC supports 128-bytes aligned buffers only", does this
> > sound good?
>
> I'd think it should be "128 byte aligned"? But I can't explain why, just
> a gut feeling.
>
Fine by me.

Let me know your thoughts on patch 1/2, I'll send a v2 with updated comment.

Cheers,
Prabhakar

2022-04-05 21:02:49

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: [PATCH 2/2] mmc: renesas_internal_dmac: Fix typo's

On Tue, Apr 5, 2022 at 6:51 AM Wolfram Sang
<[email protected]> wrote:
> > > > - /* This DMAC cannot handle if buffer is not 128-bytes alignment */
> > > > + /* This DMAC cannot handle if buffer is not 128-bytes aligned */
> > >
> > > Well, as we are here now, I think this can be further improved.
> > >
> > "The internal DMAC supports 128-bytes aligned buffers only", does this
> > sound good?
>
> I'd think it should be "128 byte aligned"? But I can't explain why, just
> a gut feeling.

I'd say "128-byte aligned".
But let the native speakers^Wwriters decide ;-)

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds