From patchwork Wed May 22 23:30:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 798182 Delivered-To: patch@linaro.org Received: by 2002:ab3:6414:0:b0:267:d849:ee76 with SMTP id j20csp917315lte; Wed, 22 May 2024 16:32:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUpLVI/QfUkEVmr4zTq0sBCjA0X54bxCUAeAKkgz/UuYzZYuAYst/Utw7UY4Z7ZKbLLIkm8oedEwmsSSpqpEQyi X-Google-Smtp-Source: AGHT+IGf019z6kdY3EkDd9wdNhG0SVrRBBYXcxljOq+PilbpnW/F2Rpj6inDfRMRYOjvzIHnGfyM X-Received: by 2002:a50:d64b:0:b0:572:a158:8a7c with SMTP id 4fb4d7f45d1cf-57832cbc562mr1826520a12.42.1716420733600; Wed, 22 May 2024 16:32:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716420733; cv=none; d=google.com; s=arc-20160816; b=Vu9Qc/Nhr8NQpAO9z5ll8DmIZb1+0Fj4ydyBq5WAPlYqD/soizrekscRVJvz/g13rh TISW57UglV6XjTdl1LYdrKUy7VAy2ZOL3xcIYpKztwMBeHUeqgR96W7qKlAEL+kkzOYz D80sgUpLkqFVnV7HTMfI00KoPBzmc+2CBF1sIMLD1BFgAuodDQC+P39fHstXAmK4SYov d+wr4Htw5oM9bacKYH8A6l3YwKmgHiZh4Qh2+VYwJ3B8IHC0Q/TNN4LbHS59FfdufcKl 91JEyM4WzrNtkLn1SOYYOIoDyKyQo2/FmtxiPKusok9jlyOKBtJIzf35SsevWr+9bfTR YwrA== 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=udSgRUpFNyiKR51hBGxj2miB/YWXrjw6MgLLrb8ORc8=; fh=0o3HHDYN7U5A2+Wk1nkRODkxCf6FGWn2Vpa1lm0C//Y=; b=C6OG5SIApfUJcjea8VOVuuH4UP//wuxaLVCPI6yHX7blZtn9flhneDqW6Vlv0ZHiCs 1T8SODzIH3z7laDWqc9UIrPOVmy8Hq1357JMiIdLbt7vGraKKQ2T0s36ysVNNqG59IiE QD/vyj/8TUHfvPAztTER/BxPSKRhQofBUauliLaZ6Y6qePepY1heo+1rrc0l9pAOHLpQ U19JaD6byc6Vq8+eD/qLLb/NMtjm52YNYEXOzRUnKeeLBoWf6nJPKtdt2AwKYj5iD1ZQ AdiVIC8u/m9Ddn1x3MfjiQ2e4tZIglvLjpbUIM2Uwmi6tl7w9AehIEmK410oI4uK0Oa8 Jaqg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BIBJZaNS; 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 4fb4d7f45d1cf-57365bdcfe0si13847983a12.559.2024.05.22.16.32.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 16:32:13 -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=BIBJZaNS; 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 3718188507; Thu, 23 May 2024 01:31:46 +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="BIBJZaNS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0E0B5884EA; Thu, 23 May 2024 01:31:42 +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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) (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 AB4D1884EE for ; Thu, 23 May 2024 01:31:39 +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-oi1-x234.google.com with SMTP id 5614622812f47-3c74b27179dso4093959b6e.1 for ; Wed, 22 May 2024 16:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716420698; x=1717025498; 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=udSgRUpFNyiKR51hBGxj2miB/YWXrjw6MgLLrb8ORc8=; b=BIBJZaNSuKQSZC69OrVmKmlTZaMwI3QZ2leS4SOmuxyrok8SS5Kz1Gq3Izobzh/ugb 6kkX3AcAzPFR+3ITkEsRtrb0pxvu7yxVs9Pmn+uW/FXcerVm/k2W3/KVnZi5EHEuydEU OINLJ8s6pm2vvcUjfI/KDqQxl5vPOb59wPkUO7LkAMf4xB3zzjp71r3hpFOBhIKDPFAv z87RFZ5r3Qqws6fJLm1x0SXCdZz9Ap3e1hWXWqAdTLGwdqyJyBBbgdx3IjFPRHOygyZN l6AbnuN4MC6hIE+6t6o396JFt7tNDKU6Ab0rZRveWcJ9COFIFAY0dn6FmXZiB/5tH+Um L+Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716420698; x=1717025498; 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=udSgRUpFNyiKR51hBGxj2miB/YWXrjw6MgLLrb8ORc8=; b=XLMfls9mKMecJJLMCCOFOC0Y0m9dX6IRUr4RRzEfEACZGimWFTzRfNr3tsALaCxVGL q6M23fPyK46Xgui8rvCgL52YOnc/fzh+qZUExCRUg8WW1E3GSr4sIsbGTNM5yqR9FVrl MSn0S8ZyEjBHkrQnTHhj30zfKnkwkjaACkt6TPAWsJxeDUptEqM2WXdri26OYOW7kAvv OG09BEpuqc/oEz9WDthu6NMX25yU9ZnKNHS4wXY7c563XNQ8VCLNhWao2XSiz4hdeXyA B9yoUCduQTElz+vkvFOvOsqKnGfXZBoqiBxjd62apbHM7UBIkWxPKP2xARy0MIthZ5AI OpGQ== X-Forwarded-Encrypted: i=1; AJvYcCX0ECvRKJEp+DooTj1KoK9+JhsCGoYAxerxhmT7beQj3H4QvAB814z5F7IkpSa+USkCG+Wm+2QODTFB9/3zRST32axMAA== X-Gm-Message-State: AOJu0YyWPB1nfPVBirQADYyki8ucfbW9Ehg1HFhQq7gpidPHLbxyxIMK 4uGCD6f30SjcRtTcR0fFqYZqp4mdxuPJYdEyDnM6RAGk+TuLMKAkeLBCN/TxoVA= X-Received: by 2002:a05:6808:171b:b0:3c9:6aea:ee5c with SMTP id 5614622812f47-3cdb528d264mr4062008b6e.15.1716420698386; Wed, 22 May 2024 16:31:38 -0700 (PDT) Received: from localhost ([136.62.192.75]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3cab0f3ea47sm1388635b6e.50.2024.05.22.16.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 16:31:38 -0700 (PDT) From: Sam Protsenko To: Tom Rini , Minkyu Kang , Peng Fan , Jaehoon Chung , Simon Glass Cc: 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 03/42] mmc: dw_mmc: Move struct idmac to dw_mmc.c Date: Wed, 22 May 2024 18:30:56 -0500 Message-Id: <20240522233135.26835-4-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240522233135.26835-1-semen.protsenko@linaro.org> References: <20240522233135.26835-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 --- 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);