From patchwork Mon Jun 10 01:11:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 802933 Delivered-To: patch@linaro.org Received: by 2002:adf:f147:0:b0:35b:5a80:51b4 with SMTP id y7csp1734149wro; Sun, 9 Jun 2024 18:12:56 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWS47OC+i/nyPaT9ee/f0zV2NBktetQWQi+LJwSNp5SG0fo//WJS8N7ZSgRuPYsRkfQxCYAM3Vy7IxdSHwd7ZHI X-Google-Smtp-Source: AGHT+IEBEcE47A2dRknihqqPKsn7BiGzjoWYn3V8T7SIsU2rwyzH+DoaaWlA5FJYpA18cSg91E9V X-Received: by 2002:a17:906:3e56:b0:a6f:233:3b66 with SMTP id a640c23a62f3a-a6f023346ffmr250259366b.59.1717981976086; Sun, 09 Jun 2024 18:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717981976; cv=none; d=google.com; s=arc-20160816; b=ROPz6xQHzvH/JhmR2HJSnstf9fVdpGd/lshfMNrE27tvBdizYb78k69YXHhkpD1Twy u2uDkUILenDP94zIBQrcyjxjq1+Anq8NU3VOroAPI0WswaZbkaKgRsnO7kQBoeuBve9S YY0zuNQg5BHUfcF1LC0PEAXPLM7ltp/vzwa+2THGdnPdzc26a4JFnjX30fLElvfWaKyq HbPWn4ngIDfox/Gf1OggYr8byS3FVTxMHqGgV4xVmco/2k1Pk5kPSOBYziOsPMd1+N0s 7XZLeo1R3vJ1DZegPqvmcezGsgpaNGQC65VPCtVPvEpoV8yYIRFM7TG6DDTCLjtG8B3N ILnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QfopE55UdYqTHl0ZSw6yaRaxTdvu4b9RkdayIjD6Dd4=; fh=20cuTcdWtU0Ntuqng7eSeHrDfE8tCgAxJKDnGTuL0OU=; b=Q1gndoy75qJlYakczmg7qKUZzb7kpgu+LITVsBsR2ON+ebe3IKA+0EWKqh6BC5n3UN +lKudOsTpSQMHLvDJ/Uz8J8o9M37891fjswgyA+Z/6p2syp7TYXGAwNmdURpIniJxIEV ky6yj+t+u/uNTrB/EG4eClMybRYV3Ka6mxQnJi/qyrg6ZOM14nEHoM/v7xleNT3W+u5s EJrf0Hbq2Fq8RDTNUMT1bYUBJEnF7WawnsUoBQNnU6o/OVy+sHnBPbwAqGuyVA1Bx67O PQ0XtQMmUGay3OUwmvrw42xLAP73lZPBe8/f04eaC3L60tLnZFs5CZqLZckE+X/tP+PD SSTQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HjQTgRqk; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f0dc0397csi178154266b.358.2024.06.09.18.12.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 18:12:56 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HjQTgRqk; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B2FDE8844C; Mon, 10 Jun 2024 03:12:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="HjQTgRqk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AE5308840C; Mon, 10 Jun 2024 03:12:32 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 32A128841D for ; Mon, 10 Jun 2024 03:12:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=semen.protsenko@linaro.org Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-6f8ef63714cso2113039a34.1 for ; Sun, 09 Jun 2024 18:12:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717981949; x=1718586749; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QfopE55UdYqTHl0ZSw6yaRaxTdvu4b9RkdayIjD6Dd4=; b=HjQTgRqkKBSKemX3+YAZdMwjpLKmWBD3rsJoMc3Ehsoyw+kaZ6wQifvzfEhuHmUCWT KcYWFvPVOHB2VEyBx9oCw4H5IZPf3c8FCI44CbPLU6jKQnay/SqDh5kY7t2JTbxZkY7m xGWBMo/8KWsQkju5s60LzeIGPdYYyt9o2a/Qn5tNkh7KmGibRPJgKq1q6N+EyHFu33vG RDGPe6f/PeXG4u6mRKmO2qt3vI3Y15cgg7L/WP4SiQezZcEaVC+Fj4QTAtHXl0T/1Ooq rF512245bYo6nG4O2L31LSe4jfnReCG8wFaunDL5wLr5bT+M+5MD0/W2G22Sjb//bb+u Oh7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717981949; x=1718586749; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QfopE55UdYqTHl0ZSw6yaRaxTdvu4b9RkdayIjD6Dd4=; b=Djk0/7Nmz6I/o7rXDPjWQM6KFAQE+IFcIJASXcyA8jqOrp/O1oXW2+5nn9gwwXtZ9C C9Ig0vhi1qZAlAKRtRVEcrZkOtvhDYSC0HAFT6Sl0JD/lUKJfjHRzVQkoRkSSQR+0PHD hRKe59HvGbk299BeTelA24zr7y2vWEC9lrXyOBpYmDMWRIE3pX0We4PDPfsfiUpWMFQh Vo0OctD77ioiKBiKjgqnOJ6ZOAxEo0kOzZ5g2DNMw4B2JoHJR6oy3A0wWEJYr7IdBBhU T66kMeI8UFFZ8o6J3mXIfiLKkvzM32K/jnysdEPFjSeolUXp1XVcT1pgbWyV9imncDxA mGAw== X-Forwarded-Encrypted: i=1; AJvYcCVTKnys06YFv6+VXNnR34RF3Lkw595h76Y4fWhIYKwJH6l5fMaJ0Pmr+LMSKHE5D/aOtdfa/+fEAYQponOkg19QX1LFRQ== X-Gm-Message-State: AOJu0Yzh0w5RM2BenjrnM07CHEpSYn+qTfUa2Fn7syedQeP3QyUsgXGi 7Ealuq3ME9O19fC8X8zYWDPvPw1qZYE29Po73xSF0RsMVbYvVyDnO/mph0/ysCY= X-Received: by 2002:a9d:628e:0:b0:6f9:79bb:b3ca with SMTP id 46e09a7af769-6f979bbb8acmr5348119a34.22.1717981948972; Sun, 09 Jun 2024 18:12:28 -0700 (PDT) Received: from localhost ([136.62.192.75]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-6f9903b463fsm565499a34.28.2024.06.09.18.12.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 18:12:28 -0700 (PDT) From: Sam Protsenko To: Tom Rini , Minkyu Kang , Peng Fan , Jaehoon Chung , Simon Glass Cc: Quentin Schulz , Philipp Tomsich , Kever Yang , Eugeniy Paltsev , Peter Robinson , Jonas Karlman , Yang Xiwen , Ferass El Hafidi , Sean Anderson , u-boot@lists.denx.de, uboot-snps-arc@synopsys.com Subject: [PATCH v2 03/40] mmc: dw_mmc: Move struct idmac to dw_mmc.c Date: Sun, 9 Jun 2024 20:11:49 -0500 Message-Id: <20240610011226.4050-4-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240610011226.4050-1-semen.protsenko@linaro.org> References: <20240610011226.4050-1-semen.protsenko@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean struct idmac is only used in dw_mmc.c, so move it there from dwmmc.h to avoid cluttering the interface in the header. No functional change. Signed-off-by: Sam Protsenko Reviewed-by: Quentin Schulz --- Changes in v2: - Added R-b tag from Quentin drivers/mmc/dw_mmc.c | 7 +++++++ include/dwmmc.h | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c index e6107c770fe3..9d668b3d8813 100644 --- a/drivers/mmc/dw_mmc.c +++ b/drivers/mmc/dw_mmc.c @@ -20,6 +20,13 @@ #define PAGE_SIZE 4096 +struct dwmci_idmac { + u32 flags; + u32 cnt; + u32 addr; + u32 next_addr; +} __aligned(ARCH_DMA_MINALIGN); + static int dwmci_wait_reset(struct dwmci_host *host, u32 value) { unsigned long timeout = 1000; diff --git a/include/dwmmc.h b/include/dwmmc.h index 39024fb38aaa..7e4acf096dce 100644 --- a/include/dwmmc.h +++ b/include/dwmmc.h @@ -198,13 +198,6 @@ struct dwmci_host { bool fifo_mode; }; -struct dwmci_idmac { - u32 flags; - u32 cnt; - u32 addr; - u32 next_addr; -} __aligned(ARCH_DMA_MINALIGN); - static inline void dwmci_writel(struct dwmci_host *host, int reg, u32 val) { writel(val, host->ioaddr + reg);