From patchwork Fri Sep 17 12:38:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?V2VuYmluIE1laSAo5qKF5paH5b2sKQ==?= X-Patchwork-Id: 12501933 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C81CC433F5 for ; Fri, 17 Sep 2021 12:40:29 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id DA0EF610C9 for ; Fri, 17 Sep 2021 12:40:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DA0EF610C9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=Bw60hR3iG2lqdR/+vm5O/otFH+WLnO5NZ2QQVxj1/kA=; b=Na4Qfx8dGuZMUr wAgWdag/EPRSLYctONdc7xU0tcCxcyKfN6NR9552oG+3/qBc9G97zNtDBaTI0q8kbbuNGskSxPFid 27tvMc+UvODkMh5PlWYNNA0j9YY4iCdT17d8ypC6S/JNiJAkdUb1qFirn3zUr1Ayku1KeZ2HJgy2e PF5GAIHS4PbWcEyMtw34R4aSLcvE0HAiC0LrtMKfzdFYySuVQ2UGRjoMJZ9E6IBmYlb9XF/RTF+df HyQPStEGLwBDTtSAvGOV3O2CPDfgDLxy73zZ/dIIQh/cFQht/0KYRhNrd93eCJctOd6U8TgWf6V1y YhOyzULihnE3H7uEmwXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mRD8y-00E7mU-Nh; Fri, 17 Sep 2021 12:39:04 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mRD8s-00E7ke-Lw; Fri, 17 Sep 2021 12:39:01 +0000 X-UUID: 7ae1c92ac16943c19b26579e7c7b1768-20210917 X-UUID: 7ae1c92ac16943c19b26579e7c7b1768-20210917 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1855769520; Fri, 17 Sep 2021 05:38:55 -0700 Received: from mtkmbs10n1.mediatek.inc (172.21.101.34) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 17 Sep 2021 05:38:53 -0700 Received: from mtkcas07.mediatek.inc (172.21.101.84) 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, 17 Sep 2021 20:38:52 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 17 Sep 2021 20:38:50 +0800 From: Wenbin Mei To: Ulf Hansson , Rob Herring , Matthias Brugger CC: Chaotian Jing , Avri Altman , Wenbin Mei , Wolfram Sang , Yoshihiro Shimoda , Linus Walleij , Yue Hu , Bean Huo , Adrian Hunter , , , , , Subject: [PATCH v4 0/3] mmc: mediatek: Add HS400 online tuning support Date: Fri, 17 Sep 2021 20:38:48 +0800 Message-ID: <20210917123851.22741-1-wenbin.mei@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-20210917_053858_780165_56CD8F3C X-CRM114-Status: GOOD ( 12.68 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Change in v4: - split driver patch into a core patch and a mtk-sd patch - use mmc_get_ext_csd function - move mmc_get_ext_csd() to include/linux/mmc/host.h - modify some commit message. Change in v3: - add detail descripthion for hs400 dly3 Change in v2: - remove the check "mmc_can_ext_csd" - change the hs400 tuning condition for "msdc_cmd_done" function and "msdc_cmd_next" function - use "-EIO" instead of "-ERANGE" Wenbin Mei (3): dt-bindings: mmc: mtk-sd: add hs400 dly3 setting mmc: core: add tuning support for HS400 mode mmc: mediatek: Add HS400 online tuning support .../devicetree/bindings/mmc/mtk-sd.yaml | 12 +++ drivers/mmc/core/mmc.c | 8 ++ drivers/mmc/core/mmc_ops.h | 1 - drivers/mmc/host/mtk-sd.c | 79 ++++++++++++++++++- include/linux/mmc/host.h | 4 + 5 files changed, 101 insertions(+), 3 deletions(-) --- 2.25.1