From patchwork Fri Jan 21 07:19:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axe Yang X-Patchwork-Id: 534784 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C786C433F5 for ; Fri, 21 Jan 2022 07:19:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348671AbiAUHTv (ORCPT ); Fri, 21 Jan 2022 02:19:51 -0500 Received: from mailgw01.mediatek.com ([60.244.123.138]:51670 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S235247AbiAUHTu (ORCPT ); Fri, 21 Jan 2022 02:19:50 -0500 X-UUID: 42695048824645668bc5d0c9549dad1f-20220121 X-UUID: 42695048824645668bc5d0c9549dad1f-20220121 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 468471931; Fri, 21 Jan 2022 15:19:46 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Fri, 21 Jan 2022 15:19:45 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 21 Jan 2022 15:19:43 +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 v5 0/3] mmc: mediatek: add support for SDIO async IRQ Date: Fri, 21 Jan 2022 15:19:39 +0800 Message-ID: <20220121071942.11601-1-axe.yang@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Change in v5: - resort variables to reversed xmas tree order - restore old copyright year range and add current year back Change in v4: - add MMC_CAP2_SDIO_ASYNC_IRQ judge before lookup eint pinctrl - replace spin_lock_irqsave() variant with spin_lock() in eint irq handler Changes in v3: - correct abbreviations with capital letters in commit message - replace copyright year with 2022 in mtk-sd.c - remove unnessary pointer casting - adjust variable order to reversed xmas tree - remove a redundant blank line - refine if statement, following standard pattern 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 | 123 ++++++++++++++++-- include/linux/mmc/card.h | 3 +- include/linux/mmc/host.h | 1 + include/linux/mmc/sdio.h | 5 + 7 files changed, 147 insertions(+), 9 deletions(-)