From patchwork Fri Apr 26 07:46:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ludovic BARRE X-Patchwork-Id: 10918727 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 25D3014C0 for ; Fri, 26 Apr 2019 07:47:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1601928CF5 for ; Fri, 26 Apr 2019 07:47:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 086C128CFB; Fri, 26 Apr 2019 07:47:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 88ED028CF5 for ; Fri, 26 Apr 2019 07:47:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=nrqPAPkroHe7iN+fqtKvPd6IOM1TJSoNJNack6iPSp8=; b=s3mRCDaeUv/SmU x0zi7IrQRjKnPe8V8JeqUHVbKJwdRxrQFpVVaEg2zXkZ7juoHvK/Q9I9ghHgHEOWRw6VpfmU0Algl 90ANvJ6/PCNsopNxYwHcSFr7YL+KFk2SquJAOi2BPFFJw+NRAFOHuB9kqbzt9f6VZEB9/TXEBwm9s otciYVkFVSzhz0ot1hQegGun7g8M4tjBIwpJsApDZiK1vJkQVuZkxfHFXH40fV0L/bTr/sqI1WVzA bJqFiLVRx6tPQT+KgCCgcBXgOqKB9zNoNxa4m4BZHOP/KHq0YlkT6XOktC3hP9+c4ixs/go/ai0lC pRugZgXYL84c0Jgkr0FQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJvZW-0007oV-RZ; Fri, 26 Apr 2019 07:47:02 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJvZU-0007mf-3U for linux-arm-kernel@lists.infradead.org; Fri, 26 Apr 2019 07:47:01 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3Q7fqWA006575; Fri, 26 Apr 2019 09:46:49 +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=qG1VfsI3fxdSj6pt9TWh5gXyJBxhTVY7G8wRmG7VLxI=; b=uHDrqvgR2tJiKspUjumvUdrt86Bh1P5O5Nj51TrrlE0VwP+yytnz87AoKyg4kmVZ1mZL SdEfGTHO+tTLSiHSIXtXSfBpzZ+NXSCAbdUE7yZqO8UeisOLXMcDDQG2OyFkLgAjWSiP 7aTHewjXlcnJKVNnvQO1rEFnXoDvxrVZTPRS7GJZUaz9CelGDwonGnoSgWvLa7Q6Pfll jeJ16f+ubsD5ZnZLB7lOi7HQ7wcgKgRaCer0kWJqpq+lK7I+4VLIhTofJAqbQJJvLwx9 8FluNObS9p0Niu1NOXFQOenHE47ogg78Q+LBg8yI9jgeg59vkfLMkciMa+PEwQNW9fgR QA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2rytadjmmw-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 26 Apr 2019 09:46:49 +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 F3A163D; Fri, 26 Apr 2019 07:46:47 +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 CE7CE130F; Fri, 26 Apr 2019 07:46:47 +0000 (GMT) Received: from SAFEX1HUBCAS24.st.com (10.75.90.95) by Safex1hubcas22.st.com (10.75.90.92) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 26 Apr 2019 09:46:47 +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; Fri, 26 Apr 2019 09:46:47 +0200 From: Ludovic Barre To: Ulf Hansson , Rob Herring Subject: [PATCH V2 0/5] mmc: mmci: add busy detect for stm32 sdmmc variant Date: Fri, 26 Apr 2019 09:46:33 +0200 Message-ID: <1556264798-18540-1-git-send-email-ludovic.Barre@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.48.0.237] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-26_05:, , signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190426_004700_630842_8EF2C228 X-CRM114-Status: GOOD ( 11.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Alexandre Torgue , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, srinivas.kandagatla@linaro.org, Ludovic Barre , Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ludovic Barre This patch series adds busy detect for stm32 sdmmc variant. Some adaptations are required: -Avoid to check and poll busy status when is not expected. -Clear busy status bit if busy_detect_flag and busy_detect_mask are different. -Add hardware busy timeout with MMCIDATATIMER register. 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 (5): mmc: mmci: cleanup mmci_cmd_irq for busy detect feature mmc: mmci: avoid fake busy polling in mmci_irq mmc: mmci: fix clear of busy detect status mmc: mmci: add hardware busy timeout feature mmc: mmci: add busy detect for stm32 sdmmc variant drivers/mmc/host/mmci.c | 61 ++++++++++++++++++++++++++++++++++++++----------- drivers/mmc/host/mmci.h | 3 +++ 2 files changed, 51 insertions(+), 13 deletions(-)