Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp881125pxb; Wed, 13 Jan 2021 19:17:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpldJjxk0ldeOL70oJCZqaZg8rR7UIDvzigS9lUqQPsCYCm7gdZ+JX3oOSl+kd0PWJQt9Z X-Received: by 2002:a17:906:934c:: with SMTP id p12mr3845428ejw.361.1610594244188; Wed, 13 Jan 2021 19:17:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610594244; cv=none; d=google.com; s=arc-20160816; b=zSgNcmHFNf+5vA8yX9OGuKJc30gu7kOLhQgqaWvPfLCyXmhbXEgW15wONKPvshhrJY zHkv4bd+e+F5MJGxLswGAyUN3kC3Tq1lNIXp91+VL328zPIprnFXp+dH79ttblGTto+X dL2ieXnGFDHw7cFP6fJw5g6Yc0kxpsrEEfVmY0NZjjd0V2baFa1qUoNhiAPJL4IiadCI JRyoZjzVIJODmLSEu7yyZNICGIbLXuLl0IjmpB19y78VJDRqiajasOLb84xxMS2kbeE4 R9QO2RCt27vwhc10vKMBOQR/TMjI+Vd9zFAcmemGIp2hSoFourfXHg22DcAuQa1RlaVB 8aPQ== 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=XoOzQyq8r+J+/QRDndikLwkl6sZOoTHhqppNgPXoevU=; b=rGV6OoLY0NATNjzzpzTtdnN3wX9N+ytMxmr/9L4m/6VrGU5tofDLCcLSYcqo5My6/9 B5J7gTw9sP7nX2KsE0HOT2gx1g6MDxfjoZuX9PKoNot5NCOelnrXgCCou8eGB2y/o88r T4nX3rYFufya3wcM7/zIwZbH08W90RC1nndbncmTux8NmgZLZd32vAeIXN/8PyXDZdyo 2q4jkC2TZNh5SrC1OoREur+hdEePdfqnhe20iT7Ih3zC/4XJbdm8PCk2mhxnNpFoH4Us NGKedVB+mbW8pHVQ8kvE0HaHwyJnNT90zPaC5B7u+uq5JfuTvtWpQNSLn4LPwnr/hEfj CLYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm1 header.b=UBHJKtHU; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=Ok63H03H; 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 gr19si1798546ejb.610.2021.01.13.19.17.00; Wed, 13 Jan 2021 19:17:24 -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=UBHJKtHU; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=Ok63H03H; 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 S1727728AbhANDPx (ORCPT + 99 others); Wed, 13 Jan 2021 22:15:53 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:34409 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725871AbhANDPw (ORCPT ); Wed, 13 Jan 2021 22:15:52 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id A9F205C01EE; Wed, 13 Jan 2021 22:14:45 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 13 Jan 2021 22:14:45 -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=XoOzQyq8r+J+/QRDndikLwkl6s ZOoTHhqppNgPXoevU=; b=UBHJKtHUDXgkUai/PtA8gu7oTanN3OWM5YAC+RVCOr 7NFzNPTnp9LmG8oDdBD3mX32TRwHfMZ6I5XrPCJAa9/A/9CsNEh+5p0rJ8BcnGdn LlRmpfCaUpkC7RMhFZPxsQHPsylcSPYnldxuxkSvrrRpOuO65icFsrXcVSYNY533 5AO/Ze6JF8XNFMHdBdsg47HUWelrePeurn31KrP7KEELcz7w7TsHCHm0W8GvZIYI l0xO0pOSIPqbpvC6rVSKkjcmJR2B7AE5lLHZ8+i4mB8uZkW8DR/ei1P4qD0xLHNU pvnMM/E/+4E3lptiRh0fHIZZf/fzYR2rZcZ+hzJRkFrw== 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=XoOzQyq8r+J+/QRDn dikLwkl6sZOoTHhqppNgPXoevU=; b=Ok63H03HL9rGeiuzlM2TsCaXexYGhoWOD q+/3FWObErqnoE2msODrP+4gYr5EzTxZM+yViMGl4BBkac+3i+5/p9I3DW6REmVB z3tAD+2HSObrtdj2YL/0r91EKSWUX28pr9x3f+Y2Yyxjk/4qwsAP6gN1gBPGY8EO rfpSJfAguTLWgiGFKsHxsfqLGDoKZaWA7/vP61wZCaaQOjhnTv75utUn0Nv3a/DF zsVhCKd4SyBsvvTcb6hibKG0R9at7auaUDj1j1RRoa58j28CgxIKOJaBzKFY+R26 Mw28NpnSOExM/jWFHzPJk0p0g/dF4YpYGN08yRC/hXvEbGjswtEVg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedukedrtdeggdehjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpeetnhgurhgvficulfgvfhhfvghrhicuoegrnhgurhgvfiesrghjrdhi ugdrrghuqeenucggtffrrghtthgvrhhnpeeiteehudevlefhvddvjeeluefhleetveehff fgiedtfeegkeejfeeivefgheehgfenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecu kfhppeduudekrddvuddtrddujeefrdegkeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvfiesrghjrdhiugdrrghu X-ME-Proxy: Received: from localhost.localdomain (ppp118-210-173-48.adl-adc-lon-bras34.tpg.internode.on.net [118.210.173.48]) by mail.messagingengine.com (Postfix) with ESMTPA id B254124005C; Wed, 13 Jan 2021 22:14:41 -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 v7 0/6] mmc: sdhci-of-aspeed: Expose phase delay tuning Date: Thu, 14 Jan 2021 13:44:27 +1030 Message-Id: <20210114031433.2388532-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. v7 is just a small change to the the kunit testing in response to Adrian's feedback. I've just done a quick build test of v7 given the small change and more extensive testing done with v5. v6 can be found here: https://lore.kernel.org/linux-mmc/20201218035338.1130849-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/sdhci-of-aspeed-test.c | 98 +++++++ drivers/mmc/host/sdhci-of-aspeed.c | 255 ++++++++++++++++++- include/linux/mmc/host.h | 13 + 7 files changed, 423 insertions(+), 11 deletions(-) create mode 100644 drivers/mmc/host/sdhci-of-aspeed-test.c -- 2.27.0