From patchwork Tue Jan 11 01:40:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?QXhlIFlhbmcgKOadqOejiik=?= X-Patchwork-Id: 12709403 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 26C85C433F5 for ; Tue, 11 Jan 2022 01:41:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :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=8rIC3L+xS1MeeWd8AkH9Y3KJRRrr/9WflizSkhz8oOE=; b=3rGnOSiKlbAC+4 1VEFz+N7Lwbu0LH8yX1pui201twwTrJmIjDoKK0dCMOn3f0nq6ClzfIJnUWDPdbcOdDA19VGEMcJ8 iC4Z8mishnzWY/eFArpGmc82FGX0/0WlaG1wNkdScv/gWyqyya53gDH3v+A4TRw3sOsunNy4Lf4a+ 6eGn55SiLQLz4G+Q46uG8OZUf4Ceb3n02IZMgmctQlPLszTm9E6iBvUvg940UwLWZbxPYXBUAOpC4 r1CKeALIK/dBDLm/pAi9PAfH2FiTmQF67MfojfybjCs9uPUDvZWv9xx2N9mPdCuf8WLroIZYow9pl WWKnBKnJS5YwhIpzHcGA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n76AK-00EDzu-Da; Tue, 11 Jan 2022 01:41:36 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n769r-00EDtH-Tx; Tue, 11 Jan 2022 01:41:09 +0000 X-UUID: 7967cf8d760f4879b1d979fd72e2c634-20220110 X-UUID: 7967cf8d760f4879b1d979fd72e2c634-20220110 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 611606805; Mon, 10 Jan 2022 18:41:04 -0700 Received: from mtkexhb01.mediatek.inc (172.21.101.102) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 Jan 2022 17:41:03 -0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 11 Jan 2022 09:40:50 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 11 Jan 2022 09:40:49 +0800 From: Axe Yang To: Ulf Hansson , Rob Herring , Chaotian Jing , Matthias Brugger , Adrian Hunter CC: Yoshihiro Shimoda , Satya Tangirala , Andy Shevchenko , Wolfram Sang , Axe Yang , Lucas Stach , Eric Biggers , Andrew Jeffery , Stephen Boyd , Kiwoong Kim , Yue Hu , Tian Tao , , , , , Subject: [PATCH v2 0/3]mmc: mediatek: add support for SDIO async irq Date: Tue, 11 Jan 2022 09:40:43 +0800 Message-ID: <20220111014046.5864-1-axe.yang@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220110_174107_998891_86711B83 X-CRM114-Status: GOOD ( 10.13 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Change in v2: - change flag name from 'cap-sdio-async-int' to 'cap-sdio-async-irq' - change corresponding macro names from xxx_INT to xxx_IRQ - resort new member in msdc_host structure - refine function msdc_request_dat1_eint_irq() - rename msdc_{suspend,resume} function names, add suffix '_noirq' - add MMC_CAP2_NO_SDIO judgement before parse eint related pin setting Axe Yang (3): dt-bindings: mmc: add cap-sdio-async-irq flag mmc: core: Add support for SDIO async interrupt mmc: mediatek: add support for SDIO eint irq .../bindings/mmc/mmc-controller.yaml | 5 + drivers/mmc/core/host.c | 2 + drivers/mmc/core/sdio.c | 17 +++ drivers/mmc/host/mtk-sd.c | 124 ++++++++++++++++-- include/linux/mmc/card.h | 3 +- include/linux/mmc/host.h | 1 + include/linux/mmc/sdio.h | 5 + 7 files changed, 148 insertions(+), 9 deletions(-)