Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5327845imm; Tue, 12 Jun 2018 06:18:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJBXPSynpQkWagN72DU9sfMzPID59IPrAzzhyxlTL71f2G9334NsJdcdmxsibagJbg4FQvQ X-Received: by 2002:a17:902:14b:: with SMTP id 69-v6mr414941plb.184.1528809523196; Tue, 12 Jun 2018 06:18:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528809523; cv=none; d=google.com; s=arc-20160816; b=hU2pwSR/z/pv/3N/BIGt7jrkboqGshuuZyLsWs/v9G6Xv91Lnka2acKSh091/rC/4m rr92Y5l+UeCVcc3KkOl+cdzJYIE4ZWnTYkzMPyMgGFWTY5Opx63m9t1oZkU49K/i0f7t QCTUvX1gS9Ulwcr3o2L1lcv/UkJ6e4HDmAI75T4aZ1/RvjhjTCSb0RJg1Saubn5whhgv 4JrrEOfyT9uq1wzQH7Ne+fpEw+fRR/euB5/4N/DhoEGmkh9hNFTie77CNbyM9/JJJOoo aSVjjauEXdQjoGCg3M7VPcHD6y5MHOQ2ZMA40mICkS7qlCAMooH1Ihl1dqU0YdC0I7do EbWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=JOLWrBb6vMTI1dPMCiRJTUPWX2LjcYHiOrK5zSOt+LI=; b=bvQ6+3hXzrAT7TKoudr2JomAVmZFL9fd7pMRNmQ2ev9HQvya/lB/H/GA7im1dNldtP m0QggGreE02QlXji+xC9Z14dOUBNWo7cgjVwLyOuwZpyImlIUZSvxg+v4+ldBQ4Wpcpa 6oW98CGu52hDLYDIQCqPYMkhaUWRNyt0UAU2C5xoDSe4bK4ErZ56KN6Y4zc7O6XYeZLk PBU9cWnxITESn/3/Cw3DgTx9zWl5Ei9Q9dK0iPLd25GGEcMiWD+Gnvq7kFV7dfp9Dbl8 xabPWxIXspHdow8bQC+C9/TTMyx6fHKeziKznKho/IYfQnw57hTDkcJfwnHlIGFDlCAX B/Kw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w14-v6si114539plp.31.2018.06.12.06.18.28; Tue, 12 Jun 2018 06:18:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933896AbeFLNQm (ORCPT + 99 others); Tue, 12 Jun 2018 09:16:42 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:57495 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933864AbeFLNQj (ORCPT ); Tue, 12 Jun 2018 09:16:39 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w5CDE5IF017839; Tue, 12 Jun 2018 15:15:54 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2jjegrr42r-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 12 Jun 2018 15:15:54 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C28E33F; Tue, 12 Jun 2018 13:15:49 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas22.st.com [10.75.90.92]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 94A2AA54A; Tue, 12 Jun 2018 13:15:49 +0000 (GMT) Received: from SAFEX1HUBCAS21.st.com (10.75.90.44) by Safex1hubcas22.st.com (10.75.90.92) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 12 Jun 2018 15:15:49 +0200 Received: from lmecxl0923.lme.st.com (10.48.0.237) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 12 Jun 2018 15:15:47 +0200 From: Ludovic Barre To: Ulf Hansson , Rob Herring CC: Maxime Coquelin , Alexandre Torgue , Gerald Baeza , , , , , Ludovic Barre Subject: [PATCH 00/19] mmc: mmci: add stm32 sdmmc variant Date: Tue, 12 Jun 2018 15:14:21 +0200 Message-ID: <1528809280-31116-1-git-send-email-ludovic.Barre@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.48.0.237] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-12_01:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ludovic Barre This patch series adapts mmci driver to add support for stm32 sdmmc variant. stm32h7 SoC integrates the first revision of stm32 sdmmc. This series is composed of 3 parts: -Prepare mmci driver to manage dma interfaces by adding property. New mmci dma API is defined according to the legacy needs. -Adapt mmci driver to dedicated constraints of stm32 sdmmc variant, defined under some specific properties. -Add stm32 sdmmc variant. As Internal DMA way satisfies data transfer, the mmci driver hasn't been modified for pio_read/write. Specific adds-ons to stm32 sdmmc: + registers + clk/power functions + idma interface Ludovic Barre (19): mmc: mmci: regroup and define dma operations mmc: mmci: merge qcom dml feature into mmci dma mmc: mmci: add datactrl block size variant property mmc: mmci: expand startbiterr to irqmask and error check mmc: mmci: allow to overwrite clock/power procedure to specific variant mmc: mmci: add variant properties to define cpsm & cmdresp bits mmc: mmci: add variant property to define dpsm bit mmc: mmci: add variant property to define irq pio mask mmc: mmci: add variant property to write datactrl before command mmc: mmci: add variant property to allow remain data mmc: mmci: add variant property to check specific data constraint mmc: mmci: add variant property to request a reset mmc: mmci: send stop cmd if a data command fail mmc: mmci: add clock divider for stm32 sdmmc mmc: mmci: add stm32 sdmmc registers mmc: mmci: add DT bindings for STM32 sdmmc mmc: mmci: add stm32 sdmmc idma support mmc: mmci: add specific clk/pwr procedure for stm32 sdmmc mmc: mmci: add stm32 sdmmc variant Documentation/devicetree/bindings/mmc/mmci.txt | 11 + drivers/mmc/host/Makefile | 3 +- drivers/mmc/host/mmci.c | 846 +++++++++++-------------- drivers/mmc/host/mmci.h | 237 ++++++- drivers/mmc/host/mmci_dma.c | 780 +++++++++++++++++++++++ drivers/mmc/host/mmci_dma.h | 33 + drivers/mmc/host/mmci_qcom_dml.c | 177 ------ drivers/mmc/host/mmci_qcom_dml.h | 31 - 8 files changed, 1410 insertions(+), 708 deletions(-) create mode 100644 drivers/mmc/host/mmci_dma.c create mode 100644 drivers/mmc/host/mmci_dma.h delete mode 100644 drivers/mmc/host/mmci_qcom_dml.c delete mode 100644 drivers/mmc/host/mmci_qcom_dml.h -- 2.7.4