From patchwork Tue Nov 10 16:21:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 11894745 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B6166697 for ; Tue, 10 Nov 2020 16:22:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8C3C5207D3 for ; Tue, 10 Nov 2020 16:22:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="Sb21II1e" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726467AbgKJQWA (ORCPT ); Tue, 10 Nov 2020 11:22:00 -0500 Received: from www.zeus03.de ([194.117.254.33]:35228 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726721AbgKJQWA (ORCPT ); Tue, 10 Nov 2020 11:22:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=k1; bh=pgpxEU0eY2aM+p8/OApxv09Xryq dzYsbF4pGvMg7oOU=; b=Sb21II1eZ0h+C2ebLS5ZVKBXZ/9fQs/3QcYsh9guC7C 8CR6ogKW3qrG0Zv6wOZ4de6xqlzqEtLD6Qvk53qhdetzBLM2wdpZtxCWuwvI4CcB z0QHPcW0dG8/oB/3zkXYRxanWGYywor+kORpZw0ycuPPhRX6vy8YHu7Ccfmv0QC4 = Received: (qmail 2226005 invoked from network); 10 Nov 2020 17:21:57 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 10 Nov 2020 17:21:57 +0100 X-UD-Smtp-Session: l3s3148p1@gTLtE8OzSMsgAwDPXxAvAEQD26z+TKuA From: Wolfram Sang To: linux-mmc@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Yoshihiro Shimoda , =?utf-8?q?Niklas_S?= =?utf-8?q?=C3=B6derlund?= , Wolfram Sang Subject: [PATCH 0/3] mmc: renesas_sdhi: refactor SCC reset Date: Tue, 10 Nov 2020 17:21:48 +0100 Message-Id: <20201110162151.37622-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org So, after some preparations, we can take the next step and improve resetting the SCC. Patch #1 is a fix requested by the BSP team to be more robust in case the firmware did something unexpected before. Patches #2 and #3 are cleanups made possible after patch #1. Patches have been tested on a Renesas Salvator-XS (R-Car M3-N) and a Renesas Lager (R-Car H2) board. A note to Shimoda-san: I did not forget that the BSP team also suggested to use the SRCR3 register for a reset in probe(). However, it appears there is more to discuss there. This is why I decided to send out this series first because we want to have it anyhow. I'll send the SRCR3 RFC-patch later this week. This series depends on the just sent out series "[RFC PATCH 0/4] mmc: renesas_sdhi: reset SCC only when available". A branch (with some more extras) can be found here: git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/sdhi/tap_en_v2 All the best, Wolfram Wolfram Sang (3): mmc: renesas_sdhi: clear TAPEN when resetting, too mmc: renesas_sdhi: merge the SCC reset functions mmc: renesas_sdhi: remove superfluous SCLKEN drivers/mmc/host/renesas_sdhi_core.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) Tested-by: Niklas Söderlund Reviewed-by: Yoshihiro Shimoda Tested-by: Yoshihiro Shimoda