From patchwork Mon Mar 15 14:59:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 12139777 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90F30C43381 for ; Mon, 15 Mar 2021 15:00:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 66EA964E13 for ; Mon, 15 Mar 2021 15:00:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233145AbhCOPAB (ORCPT ); Mon, 15 Mar 2021 11:00:01 -0400 Received: from www.zeus03.de ([194.117.254.33]:47478 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233166AbhCOO7m (ORCPT ); Mon, 15 Mar 2021 10:59:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=k1; bh=y91h0IZWsPK0uPbTBAGrW3gUb8M gsss0dRGTUdTAbB0=; b=VVN24Sf8zwfuPAz6EIB1YcuszasJAfUkAs4BsvBR1yR 99cyLCkvsjyM61Ia0jrUIwg+bH8NaHLcqbBOGSdOP9tdR6v96sh41jJrc+LUrZql NyHv/Drmkh9IeGDoKCumK6+knDBq4rbuq3ik5gFSi6LHJN/h/7tWtOIF5h1Vt7qM = Received: (qmail 1439212 invoked from network); 15 Mar 2021 15:59:39 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 15 Mar 2021 15:59:39 +0100 X-UD-Smtp-Session: l3s3148p1@2HvAf5S9CosgARa4RYTzARykWRFxRPkz From: Wolfram Sang To: linux-mmc@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Yoshihiro Shimoda , Wolfram Sang Subject: [PATCH v2 0/3] mmc: renesas_sdhi: reset via reset controller Date: Mon, 15 Mar 2021 15:59:35 +0100 Message-Id: <20210315145938.58565-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org This series enables SDHI to be reset via a reset controller. Please let me know about your (and BSP team's) thoughts. The series is based on mmc/next and tested on Salvator-XS with R-Car H3 ES2.0 with what I think I can do locally here. Changes since v1: * Niklas tag added to patch 1 (thanks!) * new patch 2 to factor out SCC reset and make intentions clearer (thanks to Shimoda-san for the review!) * patch 3 re-inits now the SD clock again after the hard reset Wolfram Sang (3): mmc: tmio: abort DMA before reset mmc: renesas_sdhi: break SCC reset into own function mmc: renesas_sdhi: do hard reset if possible drivers/mmc/host/Kconfig | 1 + drivers/mmc/host/renesas_sdhi.h | 2 ++ drivers/mmc/host/renesas_sdhi_core.c | 35 +++++++++++++++++++++------- drivers/mmc/host/tmio_mmc_core.c | 4 ++-- 4 files changed, 32 insertions(+), 10 deletions(-) Reviewed-by: Yoshihiro Shimoda Tested-by: Yoshihiro Shimoda