From patchwork Thu Sep 2 01:52:35 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: 12470719 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,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 E50CFC432BE for ; Thu, 2 Sep 2021 01:56:58 +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 A7275610A4 for ; Thu, 2 Sep 2021 01:56:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A7275610A4 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=9wK9vy541hMhB6uD95naLarcUmhaY59+K8WevJMUWhU=; b=kun+fB5AinoDCK fnJtMlWv7volXmW17bHZwNn/sqeBpgedp4g/pzFtcaZrlz57eQx0LqDVsGboZZX6Bp88sNSGgUsRQ QIG1x4DY7CUXNltxwSroMrtbmSnl2bIQybU6JfGWKV5i4RQEcd2wDYhkVqEzV4dzItwKEpviT2yDc RaoSDoETX7ZbEILcp7TC3RJbQkppe1AQUaYZ3Lhv6C2rTOG/w/0oZ+2PByqK+hQ0usIraCuLpKZLk hud5It6Oa0b8EXtuuG/6A2VF9QXAfAqxQ8Vqhb6cCZ/ajmr93KC5YunIbJv0ntQOT0DGrQkmJMMOO sDsbJ/EqjalA5B4PkerQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mLbwf-0088Rb-4t; Thu, 02 Sep 2021 01:55:13 +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 1mLbwY-0088Ny-1e; Thu, 02 Sep 2021 01:55:09 +0000 X-UUID: 188418bdf41c448c8c76170886fde072-20210901 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=DwyI9Au6k7GQduGzqoa4f8TCrO187rnsf66zCE+KXHw=; b=FGRdB4bPCBiRiqbbscjjJ8vQc+7WJYYr3DTTfgB3SPZGdiZZo/coEZTuSMrn7SegV8NvptdBBNszyg39t9brErh3jvQqhWiL4bNh/JMAWsqa9nsE7+95VsV9wyIoFR3w44VRY9BMa0O4w4+KYRgAA+NieguXXIrvMXxdR/2/eUk=; X-UUID: 188418bdf41c448c8c76170886fde072-20210901 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 491691642; Wed, 01 Sep 2021 18:55:04 -0700 Received: from mtkmbs07n1.mediatek.inc (172.21.101.16) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 1 Sep 2021 18:52:41 -0700 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 2 Sep 2021 09:52:40 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 2 Sep 2021 09:52:38 +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 v2 0/2] mmc: mediatek: Add HS400 online tuning support Date: Thu, 2 Sep 2021 09:52:35 +0800 Message-ID: <1630547557-1573-1-git-send-email-wenbin.mei@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210901_185506_140274_90F3F0E0 X-CRM114-Status: GOOD ( 10.98 ) 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 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 (2): dt-bindings: mmc: mtk-sd: add hs400 dly3 setting mmc: mediatek: Add HS400 online tuning support .../devicetree/bindings/mmc/mtk-sd.yaml | 7 ++ drivers/mmc/core/mmc.c | 8 ++ drivers/mmc/host/mtk-sd.c | 118 +++++++++++++++++- include/linux/mmc/host.h | 3 + 4 files changed, 134 insertions(+), 2 deletions(-) --- 2.17.1