Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2552277ybh; Mon, 5 Aug 2019 02:58:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzT5vbMKL3fB0uZbsTt7R/s9R+kWJvi1AnuZ2AmWV04d91R3N5JWuzZZro+ZEn+LaqtAMQS X-Received: by 2002:a63:2744:: with SMTP id n65mr122099192pgn.277.1564999123935; Mon, 05 Aug 2019 02:58:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564999123; cv=none; d=google.com; s=arc-20160816; b=uXZzn4nsxAajTCg+Ot9sJZ9u/V4Y7bl7rIvo6u7EKO8vwHAoXas2fJq4Rwy5P250d4 OdlOvyHwxhjGetEnu36xrhKlsgtw0lg7vZXGWMV04m0BDHrXmae6vRT9d45wfuUoCia0 e0KxG25PqGnieHuSjvwIzTsM+tA4jywffTzuphqkAR+UDZHDHkbGxizY6qBVmkUKQC4n NGvGGucDjEgTIHGBkpkmbMdD/RMA/1RBLrsE69C57eKDL0z7pr8woIVtmGYPFCXC0Wyu Jm91tchYHYmWC1BgE8cWY/2mCnQZbnWAdKArTQ7GutaQFV36G4kXnoEH2pdQCCIsrdD/ WHMg== 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:dkim-signature; bh=zJZbElTZ8XMjuV/mB4+St0kC8YSwld+3sVm7VXWPPao=; b=Ny1XaOcf8QvrFs+uGNpPRQWNtZ/3QKK/gbhWBn9OQ4POLzzpIy+zZ3qDu+MZirQnVI tl0FHr85/cie4Cw0LqszWNbmIKfvfftbjgfIP7nvGI11OcLWBYHinl0M/6RQZXj6AAvJ Vb6vQCOEviD458rhs/qnIv58YP27NE5TkVmlyE+9dYmXQqHs0SyuwmxrVdie1/YcWZKN 0Gc52DuVe4NP9cBMwjd9NHHbSi0+uk3ZcIiyM38Wb/nEP4xM8Pg19DXq1rZs4RsV+fAm e9Y3s+t16AcgVuca2Zwu5619UdDmjEOYX6Xa5MmPIV2zamNfr4zkNlqSPj0l8dSTufLC DF6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=E2A1quZk; 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 c18si11871078pjo.105.2019.08.05.02.58.28; Mon, 05 Aug 2019 02:58: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; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=E2A1quZk; 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 S1728249AbfHEJ5K (ORCPT + 99 others); Mon, 5 Aug 2019 05:57:10 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:26906 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727158AbfHEJ5J (ORCPT ); Mon, 5 Aug 2019 05:57:09 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x758adt9030839; Mon, 5 Aug 2019 11:56:59 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=zJZbElTZ8XMjuV/mB4+St0kC8YSwld+3sVm7VXWPPao=; b=E2A1quZkD9TpSlrqXOADLK8s3PoN6tFN6NOTwqqGx22ScNeuNMMy+vOhvRYwp0IkcleS Yc8vUNOro5KMpLW2yihSHCLZvoJOMuot+wFk5mMjEYgvoAktypMsbBt2sQhva6Ox20WT Zs026QYsv06i4RWKB+UHipEEOZYCOglmSqSqyeYLf8p+lLTyfLOkjnXSl5Oa7CHzOLYv +POMeOtpUjmG2CezYnAZ565DkIQ2U6ZeJd4N6E+BkfDssaO2e39HB80hVg7kaOrTGE4/ 7/YXpANlmlsQqDNTbIIrbcmGMgB7Ha3/VStGbed7xwsfuYkcaO9Eg4aGMxd4/WgQsRPJ 5Q== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2u5sd1du6q-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 05 Aug 2019 11:56:59 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C0EB738; Mon, 5 Aug 2019 09:56:58 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas24.st.com [10.75.90.94]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A684E3023DC; Mon, 5 Aug 2019 11:56:58 +0200 (CEST) Received: from SAFEX1HUBCAS23.st.com (10.75.90.47) by Safex1hubcas24.st.com (10.75.90.94) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 5 Aug 2019 11:56:58 +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.439.0; Mon, 5 Aug 2019 11:56:58 +0200 From: Ludovic Barre To: Ulf Hansson , Rob Herring CC: , Maxime Coquelin , Alexandre Torgue , , , , , , Ludovic Barre Subject: [PATCH V4 0/3] mmc: mmci: add busy detect for stm32 sdmmc variant Date: Mon, 5 Aug 2019 11:56:23 +0200 Message-ID: <20190805095626.25998-1-ludovic.Barre@st.com> X-Mailer: git-send-email 2.17.1 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=2019-08-05_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 This patch series adds busy detect for stm32 sdmmc variant. Some adaptations are required: -On sdmmc the data timer is started on data transfert and busy state, so we must add hardware busy timeout support. -Add busy_complete callback at mmci_host_ops to allow to define a specific busy completion by variant. -Add sdmmc busy_complete calback. V4: -Re-work with busy_complete callback -In series, move "mmc: mmci: add hardware busy timeout feature" in first to simplify busy_complete prototype with err_msk parameter. V3: -rebase on latest mmc next -replace re-read by status parameter. V2: -mmci_cmd_irq cleanup in separate patch. -simplify the busy_detect_flag exclude -replace sdmmc specific comment in "mmc: mmci: avoid fake busy polling in mmci_irq" to focus on common behavior Ludovic Barre (3): mmc: mmci: add hardware busy timeout feature mmc: mmci: add busy_complete callback mmc: mmci: sdmmc: add busy_complete callback drivers/mmc/host/mmci.c | 178 +++++++++++++++++----------- drivers/mmc/host/mmci.h | 7 +- drivers/mmc/host/mmci_stm32_sdmmc.c | 38 ++++++ 3 files changed, 151 insertions(+), 72 deletions(-) -- 2.17.1