From patchwork Tue Nov 19 13:35:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 11251957 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 0D8C713A4 for ; Tue, 19 Nov 2019 13:42:45 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AAC5E20409 for ; Tue, 19 Nov 2019 13:42:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AAC5E20409 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bp.renesas.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=cip-dev-bounces@lists.cip-project.org Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6B8D085693; Tue, 19 Nov 2019 13:42:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qVuR94xKRedj; Tue, 19 Nov 2019 13:42:43 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id 23F4B854E3; Tue, 19 Nov 2019 13:42:43 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 1C539C07AC; Tue, 19 Nov 2019 13:42:43 +0000 (UTC) X-Original-To: cip-dev@lists.cip-project.org Delivered-To: cip-dev@lists.linuxfoundation.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id A524DC07AC for ; Tue, 19 Nov 2019 13:42:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A10CD8835D for ; Tue, 19 Nov 2019 13:42:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vE+pgGj881Aq for ; Tue, 19 Nov 2019 13:42:40 +0000 (UTC) X-Greylist: delayed 00:05:02 by SQLgrey-1.7.6 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by hemlock.osuosl.org (Postfix) with ESMTP id 3DA2C8835C for ; Tue, 19 Nov 2019 13:42:40 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.68,324,1569250800"; d="scan'208";a="31880879" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 19 Nov 2019 22:37:37 +0900 Received: from be1yocto.ree.adwin.renesas.com (unknown [172.29.43.62]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id E20A44226B10; Tue, 19 Nov 2019 22:37:35 +0900 (JST) From: Biju Das To: cip-dev@lists.cip-project.org, Nobuhiro Iwamatsu , Pavel Machek Date: Tue, 19 Nov 2019 13:35:39 +0000 Message-Id: <1574170570-15179-1-git-send-email-biju.das@bp.renesas.com> X-Mailer: git-send-email 2.7.4 Cc: Biju Das Subject: [cip-dev] [PATCH 4.4.y-cip 00/31] Add RZ/G1C SD/eMMC support X-BeenThere: cip-dev@lists.cip-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: cip-dev-bounces@lists.cip-project.org Sender: "cip-dev" This patch series add SD/eMMC support support for RZ/G1C sbc. RZ/G1C eMMC IP is different from other RZ/G1 SoC's. It is having an internal DMA for data transfer which is similar to R-Car Gen3. Support for internal DMAC is added in 4.14 kernel and support for RZ/G1C added on 4.20 kernel. Backported the relevent patches to linux-4.4.y-cip. This patch series is based on linux-4.4.y-cip and all the patches in this series are cherry-picked from linux rc tree. V1-->V2 * Incorporated pavel's review comments. https://lists.cip-project.org/pipermail/cip-dev/2019-November/003770.html Ai Kyuse (3): mmc: tmio: enhance illegal sequence handling mmc: tmio: Add hw reset support mmc: tmio: Add tuning support Chris Brandt (2): mmc: tmio-mmc: add support for 32bit data port mmc: sh_mobile_sdhi: add ocr_mask option Masaharu Hayakawa (1): mmc: tmio: always get number of taps Simon Horman (5): mmc: tmio: document mandatory and optional callbacks mmc: core: Add helper to see if a host can be retuned mmc: sh_mobile_sdhi: Add tuning support mmc: tmio: drop filenames from comment at top of source mmc: renesas-sdhi, tmio: make dma more modular Ulf Hansson (1): mmc: tmio: Remove redundant check of mmc->slot.cd_irq Wolfram Sang (19): mmc: tmio: fix wrong bitmask for SDIO irqs mmc: tmio: remove SDIO from TODO list mmc: tmio: use SDIO master interrupt bit only when allowed mmc: sh_mobile_sdhi: simplify accessing DT data mmc: sh_mobile_sdhi: improve prerequisite for hw_reset mmc: sh_mobile_sdhi: remove superfluous check in hw_reset mmc: sh_mobile_sdhi: improve prerequisites for tuning mmc: sh_mobile_sdhi: remove superfluous check in SCC error check mmc: sh_mobile_sdhi: remove superfluous check in init_tuning mmc: sh_mobile_sdhi: enable HS200 mmc: host: tmio: drop superfluous exit path mmc: host: tmio: disable clocks when unbinding mmc: host: tmio: refactor calls to sdio irq mmc: host: tmio: SDIO_STATUS_QUIRK is rather SDIO_STATUS_SETBITS mmc: tmio: discard obsolete SDIO irqs before enabling irqs mmc: tmio: ensure end of DMA and SD access are in sync mmc: host: tmio: use defines for CTL_STOP_INTERNAL_ACTION values mmc: host: tmio: don't BUG on unsupported stop commands mmc: host: tmio: fill in response from auto cmd12 drivers/mmc/host/Makefile | 3 +- drivers/mmc/host/sh_mobile_sdhi.c | 267 ++++++++++++++++++++++++++++++++++++-- drivers/mmc/host/tmio_mmc.c | 10 +- drivers/mmc/host/tmio_mmc.h | 102 +++++++++------ drivers/mmc/host/tmio_mmc_dma.c | 86 +++++++----- drivers/mmc/host/tmio_mmc_pio.c | 248 ++++++++++++++++++++++++++++------- include/linux/mfd/tmio.h | 7 +- include/linux/mmc/host.h | 5 + 8 files changed, 588 insertions(+), 140 deletions(-)