Re: [PATCH v2 09/11] m68k: stmark2: use ioport.h macros for resources

From: Jonathan Cameron

Date: Wed May 13 2026 - 10:05:46 EST


On Wed, 13 May 2026 11:14:33 +0200
Angelo Dureghello <adureghello@xxxxxxxxxxxx> wrote:

> From: Angelo Dureghello <adureghello@xxxxxxxxxxxx>
>
> Align also other resource declaration using DEFINE_RES_.
>
> Signed-off-by: Angelo Dureghello <adureghello@xxxxxxxxxxxx>
Trivial but I'd prefer to have seen the 'cleanup' then the 'new stuff'
after that. So swap this and previous patch.

Not worth a respin!

However, request for some more info in the commit message - see below

> ---
> arch/m68k/coldfire/stmark2.c | 19 ++++---------------
> 1 file changed, 4 insertions(+), 15 deletions(-)
>
> diff --git a/arch/m68k/coldfire/stmark2.c b/arch/m68k/coldfire/stmark2.c
> index aa2b4d2a8a64..a5b36af8e70a 100644
> --- a/arch/m68k/coldfire/stmark2.c
> +++ b/arch/m68k/coldfire/stmark2.c
> @@ -63,21 +63,10 @@ static struct fsl_dspi_platform_data dspi_spi0_info = {
> };
>
> static struct resource dspi_spi0_resource[] = {
> - [0] = {
> - .start = MCFDSPI_BASE0,
> - .end = MCFDSPI_BASE0 + 0xFF,
> - .flags = IORESOURCE_MEM,
> - },
> - [1] = {
> - .start = 12,
> - .end = 13,
> - .flags = IORESOURCE_DMA,
> - },
> - [2] = {
> - .start = MCF_IRQ_DSPI0,
> - .end = MCF_IRQ_DSPI0,
> - .flags = IORESOURCE_IRQ,
> - },
> + DEFINE_RES_MEM(MCFDSPI_BASE0, 0x100),
> + DEFINE_RES_DMA(12),
> + DEFINE_RES_DMA(13),

Good to mention what result of splitting this into two entrees is
in the commit message. Basically say why it's a non functional change.

> + DEFINE_RES_IRQ(MCF_IRQ_DSPI0),
> };
>
> static u64 stmark2_dspi_mask = DMA_BIT_MASK(32);
>