From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44ADD3546D0 for ; Sun, 31 May 2026 15:26:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780241172; cv=none; b=IHgI4QZHucxJ0EXqcbRd79P+6nUXjsHbphLP+mV1RiWgEG6ZA5dHfBLe1AG0f96B3zXMuhNslV0Vr8ZkW9HxcNDSqIeT7Ck/9NCyZN8ykTq8rG2nAomfYZlHZdPDtHFfYhW0bjno45LHn371vwVDwM+xgwmrOqjqNlKA4ivvAMQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780241172; c=relaxed/simple; bh=iFBnWNy9SV4SAcwunY1yH81YlisibbWmCe18BpxZkj4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ba0n70gXtKNJ1lB1K0ir4c8PqU5OS2oJtuqPeJXjjSOdFKEIidvLHj627F4dVUCA1xcFbPwX4D5b7D8lk0TP1ozfIqLNQPFsQ1Zug11pqsMu+ev5ABOUvuy/P/S4JFs7FYhkNoKAPLnJRxGlPHFm5s8fIZkUXMoJglji9p5VrcI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=Uwc2+oAg; arc=none smtp.client-ip=209.85.221.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="Uwc2+oAg" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-45ef372c58aso1079214f8f.0 for ; Sun, 31 May 2026 08:26:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1780241167; x=1780845967; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=VkH/fl0oDwirECp71YLEqMq9AkaqaSB6/Kul4n+Czac=; b=Uwc2+oAgHNpCVhLbTHVnPXHFzYwgPmE9ORl6Dc1stJA5mXB82qJpUp5271hD2Psshd Qq0cex1iKadtFaZcFRE3MxutqO21Dm+YTRHddDMCEkVNLv6SWBnsj5RlfDnxpjyKz6Ak 89Yx/mEycXdQQIVtmu5OoeGWXPhJwsA7nqRExYGlMh97rqRx24Jlt24aZlXXK1STcwsH kgu4ejrcRf7eB3VvD/qgLdtHyMYhus1T/qvDdGGYLeDkea2TKF684Jo1EpkRs3qijYFP LKxSj82rfg0Lyek+01D6opXabPql4B+v0sCi2CN6uHrVOwj3VSDgbkVKcYTgoaNrqTIR nvww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780241167; x=1780845967; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=VkH/fl0oDwirECp71YLEqMq9AkaqaSB6/Kul4n+Czac=; b=qah0A3GlJKzSh3IASLasw7tjSGxCcdPNB3O6xaj6x5mIwQxgYbP9zmtEe00tvIAz81 18MdVFo9SKz1UmaLrPEykgDgYDRQUYZBnLPhr/H30fWbF08ZR6aMnrj6DCN8ZpABXKt/ D3awE9634f6iNpGKm59fmITXzooUwRXTrX3mahlP5zKm8WVLYZQdd2dJo7h35JTW2h5d ag+vgxXCS82pZEo2bQchSskyjUy40+uTVOskdY1bBSzVyoYMLuoCwbSXEjj+DolT/8QK pxP77PYuqQb/1ibFeMOqM7LxFDYJq84zmee4H+Fq56g77h5qzI/HvpI3Vo2QC3FX8VYg ahfg== X-Forwarded-Encrypted: i=1; AFNElJ8QsHJ0L9Qr1puCbmM4+SHcZR7MSNU/1FvI2abYX2H3xpYsECRbXPNg8simCT8xbeIWXTuI/nw4iQ1j7mg=@vger.kernel.org X-Gm-Message-State: AOJu0Yx8fSUsMNI2SLXaiDog4g5L28uNQKHqANkyBBFdLV8OdmcboGCE A9KnFlWpk6zkW13nb/KhL/RUm0EluwTdlWnnJOf+4usaXfmlQGMGpBO/faXpzjABrYY= X-Gm-Gg: Acq92OFimlNFKSZGDFj5CcE+6dOwspMvv19r4UwmkJ9QfrgUQERryemxn8Lq6goNhWv zzn1A+ICNb/Fra23oQoWYOE5h81vLxHZ3NEDUnwunESJfrj2yCxewdSfmzBPNdLNV/IpS7kmHfy HEVgL8PJUpWaspb6XtaKZ8GKjSccQxbtmzSOXcxyTeC19Id/8ZBxV9Q36qcztT5MXNJmuHGocQi Zhe88G7ARmWhUsLqyR0UlbSoZ84fdZSYO42lunrHmryMBBxWs2D0CtzKAdHqg1xKk3/AqJXA5P4 SxpvG8ZVij6uhOXRE6Fe4T3C7dAXZKFL2IWBAOzrxhKvN4NiG0LXafFafXtWJZDbbeABfjMArkg eSSM8Xwq4Mq0l1D9CQWFEXE2dqdcipkT3qbdhIoOB98suX8+REkep1LNyrY99eYDS7k2dIW3y/6 S/rwYLIrunc8Q596/wpVSro7kOWXuQ6BOTBvilzppcQg== X-Received: by 2002:a05:6000:4284:b0:45f:f142:d56c with SMTP id ffacd0b85a97d-45ff142d715mr7307074f8f.16.1780241166806; Sun, 31 May 2026 08:26:06 -0700 (PDT) Received: from [192.168.0.2] ([2a07:7e81:7daa:0:202:c9ff:fe53:eda4]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45ef354cf0dsm18526622f8f.17.2026.05.31.08.26.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 May 2026 08:26:06 -0700 (PDT) From: Angelo Dureghello X-Google-Original-From: Angelo Dureghello Date: Sun, 31 May 2026 17:26:01 +0200 Subject: [PATCH v4 08/11] m68k: stmark2: use ioport.h macros for resources Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260531-wip-stmark2-dac-v4-8-7e65ab4215dd@baylibre.com> References: <20260531-wip-stmark2-dac-v4-0-7e65ab4215dd@baylibre.com> In-Reply-To: <20260531-wip-stmark2-dac-v4-0-7e65ab4215dd@baylibre.com> To: Greg Ungerer , Geert Uytterhoeven , Steven King , Arnd Bergmann , Maxime Coquelin , Alexandre Torgue , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko Cc: Greg Ungerer , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-iio@vger.kernel.org, Angelo Dureghello X-Mailer: b4 0.15.2 From: Angelo Dureghello Change resource declaration using DEFINE_RES_*() macros. DEFINE_DMA_RES() is for a single dma channel, not a range, so used twice. Also, some drivers assume IRQ resources are from index 1, so just to stay uniform, moved IRQ resource at index 1. Signed-off-by: Angelo Dureghello --- Changes in v2: - none Changes in v3: - moved this patch (cleanup) before adding new resources - moved IRQ resource to index pos 1 --- 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 9263b77bd09a..536252ccb87e 100644 --- a/arch/m68k/coldfire/stmark2.c +++ b/arch/m68k/coldfire/stmark2.c @@ -62,21 +62,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_IRQ(MCF_IRQ_DSPI0), + DEFINE_RES_DMA(12), + DEFINE_RES_DMA(13), }; static u64 stmark2_dspi_mask = DMA_BIT_MASK(32); -- 2.54.0