Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5069541imm; Tue, 18 Sep 2018 03:58:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZQ7BdDh7FTISPo8+92223rJZYdiA4A8i54QWZzdDQnPK8sk7DX6s8zbr4ZJ92ywB96B4po X-Received: by 2002:a63:904a:: with SMTP id a71-v6mr27094463pge.339.1537268304483; Tue, 18 Sep 2018 03:58:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537268304; cv=none; d=google.com; s=arc-20160816; b=w70cGF8qEg9ziMG/t9p8HPZ5TaYBbuY2s6nZh5UMmEoJwsXtoS058Ko5kf5wbUsgom 9YCzlAuKRDy565W5posNrqoKnokyTM6suhYaGOsuTEk/n0ELwyl2UfD12LLbJoQZ5Hce h0+DrONOoTNBgZ5x+QU3r4HwJK+snulMfFGoppsoIs61GXdDpW10Q2Z3QCKffK/nFIQ7 BBU6FSRx9i/LiqmNP299fMCtmN63bcWqMMQIK/IQuhoMXk/J9him7ZMI6/81PiTgZofU TRKQ9CxSI8wvQYrci52X2Wv4XZyB4hrFNFAECF0pKQbiuILqFwdlXb5xxZOmeeJeJccT asdw== 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; bh=lhDQcuiBg0elTNPGyjuQD31Hh+moISH2/4pvCBx+hCo=; b=D8pTNBZ7AMrkdJrphAHFxCo7S6xgmaIWIyzunFanam0DS6Z5+UQ8LHqyZdt0saO4ja c40CeSFyXJS2NlKGHqsYAhmwR0xo9G9VMmc7HbutOCEQ/5nyPdh2OdZWCpm1/8YXPdO8 z9OTNHyQKRkr0NPi0CDo/rfHbuugFVYg1Hx1GgqJRtHC/JdNOAtW7pjcq+dMmO3ltFhI GsbNFOzopGUbn+CLzZT7ZLEmyZfE6Z30yTRQwBkr1VcCK85zpbWhb+h5rSnKjUEIO17k hb4FcXe4s6sq3EuNAoeUIGYCzq16JIlc+k4rvJNGHZ0nPzyhgkcEI91bMTDlc3KXcxxq sb7g== 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 p9-v6si18283962pgi.553.2018.09.18.03.58.09; Tue, 18 Sep 2018 03:58:24 -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 S1729585AbeIRQ2k (ORCPT + 99 others); Tue, 18 Sep 2018 12:28:40 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:55497 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729361AbeIRQ2j (ORCPT ); Tue, 18 Sep 2018 12:28:39 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w8IAsLKo004527; Tue, 18 Sep 2018 12:56:10 +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 2mgryf0w4y-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 18 Sep 2018 12:56:10 +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 C730534; Tue, 18 Sep 2018 10:56:09 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A16CF2A9D; Tue, 18 Sep 2018 10:56:09 +0000 (GMT) Received: from SAFEX1HUBCAS22.st.com (10.75.90.93) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 18 Sep 2018 12:56:09 +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, 18 Sep 2018 12:56:08 +0200 From: Ludovic Barre To: Ulf Hansson , Rob Herring CC: Maxime Coquelin , Alexandre Torgue , , Gerald Baeza , Loic Pallardy , , , , , , Ludovic Barre Subject: [PATCH V2 00/27] mmc: mmci: add sdmmc variant for stm32 Date: Tue, 18 Sep 2018 12:55:17 +0200 Message-ID: <1537268144-21152-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-09-18_04:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ludovic Barre The goal of this serie is to add support of sdmmc for stm32. Be to able to add this new variant it is needed to do some changes in mmci core: -Internalize specific needs of legacy dmaengine. -Create and setup dma_priv pointer -Create generic callbacks which share some features (like cookie...) and call specific needs change v2: -rename to mmci_prep/unprep_data -rename specific dma engine structure to mmci_dmae_next/priv -follow "_" recommandation -remove dma prefixe of mmci_dmae_priv fields Ludovic Barre (27): mmc: mmci: internalize dma map/unmap into mmci dma functions mmc: mmci: internalize dma_inprogress into mmci dma functions mmc: mmci: convert dma_setup callback to return an int mmc: mmci: introduce dma_priv pointer to mmci_host mmc: mmci: move mmci next cookie to mci host mmc: mmci: merge prepare data functions mmc: mmci: add prepare/unprepare_data callbacks mmc: mmci: add get_next_data callback mmc: mmci: modify dma_setup callback mmc: mmci: add dma_release callback mmc: mmci: add dma_start callback mmc: mmci: add dma_finalize callback mmc: mmci: add dma_error callback mmc: mmci: add validate_data callback mmc: mmci: add set_clk/pwrreg callbacks mmc: mmci: add datactrl block size variant property mmc: mmci: expand startbiterr to irqmask and error check 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 not read datacnt mmc: mmci: add variant property to request a reset 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 variant Documentation/devicetree/bindings/mmc/mmci.txt | 11 + drivers/mmc/host/Kconfig | 10 + drivers/mmc/host/Makefile | 1 + drivers/mmc/host/mmci.c | 646 +++++++++++++++++-------- drivers/mmc/host/mmci.h | 147 +++++- drivers/mmc/host/mmci_qcom_dml.c | 15 +- drivers/mmc/host/mmci_stm32_sdmmc.c | 282 +++++++++++ 7 files changed, 880 insertions(+), 232 deletions(-) create mode 100644 drivers/mmc/host/mmci_stm32_sdmmc.c -- 2.7.4