Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1784774pxu; Thu, 17 Dec 2020 19:59:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2PKjEnHKcOBHRwT7Pz0kt6UefIn8oWcNSlG3NuU9cFqFA/Rr9Gu3PwwKvJY+RyhekPnTz X-Received: by 2002:a17:906:1792:: with SMTP id t18mr2120632eje.282.1608263974893; Thu, 17 Dec 2020 19:59:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608263974; cv=none; d=google.com; s=arc-20160816; b=wYsVLIDjkvE2jxZmSAqodYPk3BQCo2c79Y123UgTEhSBGJMGPwoyP11tc733X+6aXa oKUkU3LhGs7aK82vWizVE+vjDeyvobvpV1K+vDlyGYT5wckqEWqNVU+oJDGHq/Omb9VQ QeiGhV7e1kJ5KLBts6Oo8rQtOs4IbPqsNTvjdmN0ICqklAIrQzMmAE30t5FlFzA5VmeI eseC3TqYY6gTvnD1YKmDHY0P01m8BbhQ9ALwkRNWmrZUo1uLeSou+F3j4v/7EopQzFPV a1MPvB2oursoIlOZt9j2EUjjrWT08krhMKrkl9VX3QjqeiXurL4HPjta01v6pVRhhuFm kTnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=wwSwX31MmtwgHkrLnUTYMvcRUTo1S31FFAv1wRLanEM=; b=O9cihpcqHTsycJJHpjnARZ8F7auEHGg/ZqV5OF140wvra3o36FO/u/w9Opy1K0TwXr Ic8SH1xjCY3a9bjgjMrVKPduzCc4tJefoBNcl/8dpJ/cysFfsU/AO83yLfKf3KhhcoWM 4/peel4oXlQZBmStl6qgzr2G81g4nV55J3QK5TpzOCkThE2EBva9j8ua8yh0e+mXKL3o 2xF68GtF9KZkr4fNEIIOcmbBesZcrcXmfQYaM3ijyaGYWyZ801JrdOLhcDdrPac43rZk Jy6njDq+RMFOvxNV8ad4AC0OF3+sV3eXAnO6Ki2B543tnsF47e7O8gqJV2qwZZSY41CM d7DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm1 header.b=GmM7bE4M; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="HdXy/Jgb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z22si4043917ejo.390.2020.12.17.19.59.12; Thu, 17 Dec 2020 19:59:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm1 header.b=GmM7bE4M; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="HdXy/Jgb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731522AbgLRDym (ORCPT + 99 others); Thu, 17 Dec 2020 22:54:42 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:35277 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726789AbgLRDym (ORCPT ); Thu, 17 Dec 2020 22:54:42 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 0779E5C00D1; Thu, 17 Dec 2020 22:53:56 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 17 Dec 2020 22:53:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=wwSwX31MmtwgHkrLnUTYMvcRUT o1S31FFAv1wRLanEM=; b=GmM7bE4MdWMuu7NHmbXTnbvqSphFDOUT2IKU8QPIrp N2wx2iDvc1WHt0n4Jj+fO3X9qdyQm20wMIIQ896U/8rtTyWaj3v/G1Zr6JAQ80C3 X762CtjSX6olhzXK5SKTFXZrii1a5aCUQzAtAgnKG+DI4/6215tDUl+/TImAp2yX nQ7tWXfCk3FMV3VPCLWMb5Yt/QscUCtvPIIm3Ck3KhyrJbdt7Yk5aT9CEiTlUT2m zpNneUiUKsXoCgHNsogkfHmXeejQ1JHZNSGtrGdFg7nH+xcrQyAe/W0ruy6K6zIg cBY/bvhtS5VJTgRF+iqsnLqiKMp6N/x0Wv7V9rtt931A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=wwSwX31MmtwgHkrLn UTYMvcRUTo1S31FFAv1wRLanEM=; b=HdXy/JgbaS0iBcKewhztP4YWr0YXTaCTM 3cO9Ey0U8ynQysCxoBuIDsRH21EylC7ZgkWQYvkivGY/HGkbkIA4IH6TbGj6xDT5 fRQVD+RHqGqKLcmKgr3jOx6ksnhJ0Q35DfsKsKPpu1SLyU88Aa0pePEfCsT2CsDz 9MvASBP/04chEfttMaVQDOxfJV1ENNTCaV2p8fh5UnDzz4zIjE+x0R0OOOnINCE9 AMxcWj1trkkguwAvrNBmNRkvORTS1jQBVtpM7DAgxxf5lbGqJpp7FLqkj7Cxdj7n JLaJ8ApHfGo9Wd+tYvvNhMZDsLqg5qWr7JKRrkvCfRRRIBB5bcqiA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudelhedgieefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomheptehnughrvgifucflvghffhgvrhihuceorghnughrvgifsegrjhdr ihgurdgruheqnecuggftrfgrthhtvghrnhepieetheduveelhfdvvdejleeuhfelteevhe ffgfeitdefgeekjeefieevgfehhefgnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghen ucfkphepuddvtddrvddtrdejjedrvdduudenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvfiesrghjrdhiugdrrghu X-ME-Proxy: Received: from localhost.localdomain (unknown [120.20.77.211]) by mail.messagingengine.com (Postfix) with ESMTPA id 0F28E108005B; Thu, 17 Dec 2020 22:53:49 -0500 (EST) From: Andrew Jeffery To: linux-mmc@vger.kernel.org Cc: ulf.hansson@linaro.org, robh+dt@kernel.org, joel@jms.id.au, adrian.hunter@intel.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, ryan_chen@aspeedtech.com Subject: [PATCH v6 0/6] mmc: sdhci-of-aspeed: Expose phase delay tuning Date: Fri, 18 Dec 2020 14:23:32 +1030 Message-Id: <20201218035338.1130849-1-andrew@aj.id.au> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This series implements support for the MMC core clk-phase-* devicetree bindings in the Aspeed SD/eMMC driver. The relevant register was exposed on the AST2600 and is present for both the SD/MMC controller and the dedicated eMMC controller. v6 simply removes the typedef from v5 in favour of a struct containing the phase array. I've just done a quick build test of v6 given the small change and more extensive testing done with v5. v5 can be found here: https://lore.kernel.org/linux-mmc/20201208012615.2717412-1-andrew@aj.id.au/ Please review! Cheers, Andrew Andrew Jeffery (6): mmc: core: Add helper for parsing clock phase properties mmc: sdhci-of-aspeed: Expose clock phase controls mmc: sdhci-of-aspeed: Add AST2600 bus clock support mmc: sdhci-of-aspeed: Add KUnit tests for phase calculations MAINTAINERS: Add entry for the ASPEED SD/MMC driver ARM: dts: rainier: Add eMMC clock phase compensation MAINTAINERS | 9 + arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 1 + drivers/mmc/core/host.c | 44 ++++ drivers/mmc/host/Kconfig | 14 ++ drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-of-aspeed-test.c | 100 ++++++++ drivers/mmc/host/sdhci-of-aspeed.c | 251 ++++++++++++++++++- include/linux/mmc/host.h | 13 + 8 files changed, 422 insertions(+), 11 deletions(-) create mode 100644 drivers/mmc/host/sdhci-of-aspeed-test.c -- 2.27.0