From patchwork Thu Aug 8 03:14:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 817666 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e11:0:b0:367:895a:4699 with SMTP id p17csp674609wrt; Wed, 7 Aug 2024 20:15:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU0ftMg2aHfHvcd5XkBmH5d+vX4Q8/YkMm8tbLcGIAx29ZSnJVN7di6omyurQ40UnjGCcraDcEyTIOUMj9G34/r X-Google-Smtp-Source: AGHT+IFedlrotfA/3OrnOL894XsVk61SYyhIaNwhOWD7/ZRc5cJ7XDizPCcogM4Qic3xN+EaN1t6 X-Received: by 2002:a17:906:6a04:b0:a6f:1036:98cf with SMTP id a640c23a62f3a-a8090e8a3fcmr29900666b.54.1723086917445; Wed, 07 Aug 2024 20:15:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723086917; cv=none; d=google.com; s=arc-20160816; b=OvPMQ+lbxakeH/miHZyQOFLn7pk9VKmdVpMToNinuMII3tBD4E7781lo4TTvBkJZp+ dw+R4KCgsK8g5YPRSwoked0DcwXpAzG4+jWT5i/48OgRQ6Rr1fYz2U+xjRvBZJW4y1Zx sT8MlYDbAWxOtiZY5XIQt1h391w5P3vuQpreAAtkPgPx7IGeiVjla5LZL9aqWnwXF9/z lUxLWmUBI1hQDxQH98ZbO0qlq3vNM1Na6XskaMmbvAofCjQUNo2U+N/iW4iMLaoKem8r fj9gfIU1EtUGdC4KLJYIlo/gOrC96RRtj3u0yM7FAobScV7GDkKZLKocreeqdBerlYqd 2C9w== 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=eVLQcVSfl3rm2iwTcFthBnCn85I461ALqaeyLfaSK2k=; fh=LOjEXRfCDWFXhpZu3ruAxD5Hzwz3in0yII+5vdpBDHE=; b=o5mre2QC30M2mWJu/8BN+M7GEO8DDjQPJBXcHDiYunI3kRRmFy/AHsC8cpdnHdRHzL 7Iol8JsND6e+aThgkMyIkmtzDs9H3VNDETpAFqFIEquBzEJ3HMzIuxVd4acYY0oWSF6X EQHC1hW6xS3XiB7ZG3NffDpM6oqrMZrbA9qptizwlprcwRk1PBAyjepRTpjZid/28x+K JGHe0K6utDhOUInQ1tS7WXdHciZoHIT5xhiEOcNcyawQOxFDp1N1cp+ibkCbgxRc/VcY pSqNar7eqLzE2NB/hRQx3Fbmt6xxfF3QzyQFHE37GweXTEf6IfDaN6uOFFPjq2grFfPy NibQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R1RK8ZW0; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id a640c23a62f3a-a7dc9c169a4si753023066b.236.2024.08.07.20.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 20:15:17 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R1RK8ZW0; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A302288A3D; Thu, 8 Aug 2024 05:14:56 +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="R1RK8ZW0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 38D4C88A6D; Thu, 8 Aug 2024 05:14:53 +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-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) (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 3EF698874E for ; Thu, 8 Aug 2024 05:14:50 +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-x32e.google.com with SMTP id 46e09a7af769-7091558067eso254255a34.3 for ; Wed, 07 Aug 2024 20:14:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723086887; x=1723691687; 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=eVLQcVSfl3rm2iwTcFthBnCn85I461ALqaeyLfaSK2k=; b=R1RK8ZW06TBpEO+blvsjhJjAGbdieACxhsaxQYy3opjLbSv6gUS2X/3E/1IFwgBjR8 Tk4lz09tvG6w2P7asx8CCYw2VLeLppoE9YZ+cNi6BCwZx8QVdzLCu1oLhSTiRfXH/e2N UHUE3qEe19Asg7QqTdlRmQrxUwfq7un4xsCzZXOBuXsHSGw4Q3G+nl3QUQMtvKCS1D20 k0U+ZrN8p5rt2THARfUMgUOYHKQOTalcw05YaOVLYH05tfTbFfP+2f3nPRPTdzocVZdO KO7ao2cp21Kqvl4c29bmggjTyHKiJ7wSFSix4peii4Q7tZsEtg2TNxLH9gLGCni4Hm/F UeJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723086887; x=1723691687; 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=eVLQcVSfl3rm2iwTcFthBnCn85I461ALqaeyLfaSK2k=; b=kJ02aR45oSEmsfCiOhhEUYvjGhi+SbkRCYZGNLDL/xwNQqU0FjvkhrUvcMZ5p1JQPU vKXM+h7ndUGVp39NKnxTeOg3DATJYiZ4gIPlwADxdTSNQVpaALVG8wMP86wh06Wso+Wn K6y5MSfaQnSB/nsoiRwPucmWrkZNrWXprKghJJbifFbWx53fh9Qkw0J9AJfDdCO4kFy7 KH1H5l95zgSoC8b7jHa265hHiPr3U30erPg1kkgrgHKuskWL2qP6rDCkpbrc9owrqgV8 8UWca/eJcLRkhkeDJmTwdQt/it1iuc4WcqskelO7a4stFQb1JjB9X+LkuqFybxckhFB9 4FkA== X-Forwarded-Encrypted: i=1; AJvYcCU0L/AysKUn18q4wzzPTuJQ+Jnlfux/IXv7l7ldExIxbrD69iXfo+OhEmdYE3M87dggetYY29lGHvRAibss1YFQqjn+0g== X-Gm-Message-State: AOJu0YxlME8XzZmfxEYWY5bZ/xilsEwOVaL3Yq5Jxfi2gFlt7baXFE3E rhxC58sjXRaXVoonxB8ujYEB98o9QTjlfkEEit4yQmrJwFdIgzLndUCqoYVAaYk= X-Received: by 2002:a05:6830:6989:b0:709:4507:6b37 with SMTP id 46e09a7af769-70b4fcb15a6mr713707a34.31.1723086886782; Wed, 07 Aug 2024 20:14:46 -0700 (PDT) Received: from localhost ([136.62.192.75]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-70a31d9e011sm5154015a34.1.2024.08.07.20.14.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 20:14:46 -0700 (PDT) From: Sam Protsenko To: Minkyu Kang , Minkyu Kang , Jaehoon Chung Cc: Tom Rini , Henrik Grimler , Peng Fan , Simon Glass , 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 v5 02/38] mmc: dw_mmc: Move struct idmac to dw_mmc.c Date: Wed, 7 Aug 2024 22:14:08 -0500 Message-Id: <20240808031444.9619-3-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240808031444.9619-1-semen.protsenko@linaro.org> References: <20240808031444.9619-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 v5: - (none) Changes in v4: - (none) Changes in v3: - (none) 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 f4ecd7422cef..45665e517068 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);