All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Li <Frank.li@oss.nxp.com>
To: Angelo Dureghello <angelo@kernel-space.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
	Greg Ungerer <gerg@linux-m68k.org>, Vinod Koul <vkoul@kernel.org>,
	Frank Li <Frank.Li@kernel.org>,
	Angelo Dureghello <angelo@sysam.it>, Frank Li <Frank.Li@nxp.com>,
	linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org,
	dmaengine@vger.kernel.org, imx@lists.linux.dev
Subject: Re: [PATCH 10/10] dmaengine: fsl-edma: fix missing big-endian swap
Date: Wed, 2 Dec 2026 11:05:43 -0600	[thread overview]
Message-ID: <axBP5xVpMhtPV3Ce@SMW015318> (raw)
In-Reply-To: <20261201-wip-ks-stmark2-dma-fix-v1-10-99748ff19937@kernel-space.org>

On Tue, Dec 01, 2026 at 11:40:21PM +0100, Angelo Dureghello wrote:
> [You don't often get email from angelo@kernel-space.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> Fix missing little-endian to big-endian byte swap for BE CPUs as ColdFire.
>
> Writing CPU iomem hw registers for native BE CPU must happen with bytes
> already ordered as big-endian.
>
> Fixes: 3f2282931f00 ("dmaengine: fsl-edma: use _Generic to handle difference type")
> Signed-off-by: Angelo Dureghello <angelo@kernel-space.org>
> ---

Reviewed-by: Frank Li <Frank.Li@nxp.com>

>  drivers/dma/fsl-edma-common.h | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/dma/fsl-edma-common.h b/drivers/dma/fsl-edma-common.h
> index cbb077e98f55..7e82b0aabc6d 100644
> --- a/drivers/dma/fsl-edma-common.h
> +++ b/drivers/dma/fsl-edma-common.h
> @@ -296,9 +296,9 @@ _Generic(((_tcd)->__name),                                          \
>
>  #define edma_write_tcdreg_c(chan, _tcd, _val, __name)                                  \
>  _Generic((_tcd->__name),                                                               \
> -       __iomem __le64 : edma_writeq(chan->edma, (u64 __force)(_val), &_tcd->__name),   \
> -       __iomem __le32 : edma_writel(chan->edma, (u32 __force)(_val), &_tcd->__name),   \
> -       __iomem __le16 : edma_writew(chan->edma, (u16 __force)(_val), &_tcd->__name),   \
> +       __iomem __le64 : edma_writeq(chan->edma, le64_to_cpu(_val), &_tcd->__name),     \
> +       __iomem __le32 : edma_writel(chan->edma, le32_to_cpu(_val), &_tcd->__name),     \
> +       __iomem __le16 : edma_writew(chan->edma, le16_to_cpu(_val), &_tcd->__name),     \
>         __iomem u8 : edma_writeb(chan->edma, _val, &_tcd->__name)                       \
>         )
>
>
> --
> 2.56.1
>

  reply	other threads:[~2026-12-02 17:05 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 22:40 [PATCH 00/10] m68k: mcf54415: fix ColdFire edma-related issues Angelo Dureghello
2026-12-01 22:40 ` [PATCH 01/10] m68k: add DMA global pool config Angelo Dureghello
2026-12-01 22:40 ` [PATCH 02/10] m68k: add DMA global pool setup Angelo Dureghello
2026-12-01 22:40 ` [PATCH 03/10] m68k: mcf54415: add defines for DMA global pool Angelo Dureghello
2026-12-01 22:40 ` [PATCH 04/10] m68k: mcf54415: add DMA global pool initialization Angelo Dureghello
2026-12-01 22:40 ` [PATCH 05/10] m68K: mcf54415: rename mcf edma clock name Angelo Dureghello
2026-12-01 22:40 ` [PATCH 06/10] m68k: mcf54415: align device name with " Angelo Dureghello
2026-12-01 22:40 ` [PATCH 07/10] dmaengine: mcf-edma: enable edma clock Angelo Dureghello
2026-12-02 16:54   ` Frank Li
2026-12-01 22:40 ` [PATCH 08/10] dmaengine: mcf-edma: fix wrong BIT() usage on u64 Angelo Dureghello
2026-12-02 16:46   ` Frank Li
2026-12-01 22:40 ` [PATCH 09/10] dmaengine: mcf-edma: fix wrong error handling Angelo Dureghello
2026-12-02 16:51   ` Frank Li
2026-12-01 22:40 ` [PATCH 10/10] dmaengine: fsl-edma: fix missing big-endian swap Angelo Dureghello
2026-12-02 17:05   ` Frank Li [this message]
2026-12-02  9:26 ` [PATCH 00/10] m68k: mcf54415: fix ColdFire edma-related issues Jean-Michel Hautbois
2026-12-02 12:12   ` Angelo Dureghello
2026-12-02 12:53     ` Jean-Michel Hautbois

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=axBP5xVpMhtPV3Ce@SMW015318 \
    --to=frank.li@oss.nxp.com \
    --cc=Frank.Li@kernel.org \
    --cc=Frank.Li@nxp.com \
    --cc=angelo@kernel-space.org \
    --cc=angelo@sysam.it \
    --cc=dmaengine@vger.kernel.org \
    --cc=geert@linux-m68k.org \
    --cc=gerg@linux-m68k.org \
    --cc=imx@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@lists.linux-m68k.org \
    --cc=vkoul@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 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.