Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1464187rdb; Wed, 6 Dec 2023 22:36:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKp/dQwYUxjMtLMi4YAU3cRX4bEaF74kNqshIn63v1+M1pLF9tZkQ0Sfa/OxuAFwcF1BoO X-Received: by 2002:a17:902:e88f:b0:1d0:8383:742c with SMTP id w15-20020a170902e88f00b001d08383742cmr1975645plg.39.1701930966712; Wed, 06 Dec 2023 22:36:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701930966; cv=none; d=google.com; s=arc-20160816; b=TiGSuBSe1I6AN3Cto2G1FvyynhtT8VD6ax07UqCz+ukfZ4gzW/PfbKcYjRc5G3idgx zBDYGwgrTFHCEaZnz9SGcLsEhCdzDo9GTPqI2Vscz6Gw0/H/xrxODvOyP6ifwhnWV7LO 4vE/971Ba0iZwfAB5qhWXIEDSCxO/QxHGcTKBUUnWhbxm7q0Rva31aFGUvG5Jw3nnq6s cORN4TRpg49jHnITEK3DXI1Q7gh1h9loq5Q0LDUL8LjrtfYAA2DUpgTVECV+FDzmCoQq H7GwZHOoyhWOJ7JFNn4+ZPNrjNorZIa4Lpi1yEKjJJw+13A4xNRxNcwi6g21EpJKZskw xG6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1Upr25vEguertkhwfGF+tea8+auuicN+7Yo0Ew+WXUc=; fh=oRrmGfx/u/4rRz62AKAWt2k01WzLe2Ik5C4Nt4S87as=; b=nLg2hPdowYcySoUH2iyu8MaPGN2cvn8/8mpoXhFcU3wksMrj1FWQvk+3r12OYtSj2V IUewV8/XTpilqJeueM8kTJaTvHABf8YlOcS7wmM8vNX8HgZ/d7fOmIet37culNSnkrkV /OEjj141bNGDnwxvoU6229ZuR2tA5qD6XENy78tkOcEdMvyOmtb5RuWW7uhs1hz0V2sh oeAGxrEywWaokAd5bw4y4/4EiFy6a0WnJ8K9POGf5gIJ5g24htNmD7ucZmi2JKh/c2g4 xVYA4OLyDguWQf2lzWQdY6F3s4HdtMcBWdFiPqM+7OPL6G47cDbrFO/H+9pi4GRPIGpF Hzfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=VNDOLM4u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id e4-20020a170902744400b001d0c7c691a4si583467plt.365.2023.12.06.22.36.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 22:36:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=VNDOLM4u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 2144984AA9F1; Wed, 6 Dec 2023 22:36:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377524AbjLGGfq (ORCPT + 99 others); Thu, 7 Dec 2023 01:35:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229765AbjLGGfn (ORCPT ); Thu, 7 Dec 2023 01:35:43 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADB67D7E; Wed, 6 Dec 2023 22:35:48 -0800 (PST) X-UUID: d6cc320894ca11eeba30773df0976c77-20231207 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=1Upr25vEguertkhwfGF+tea8+auuicN+7Yo0Ew+WXUc=; b=VNDOLM4uq5kOIFzxKkumbHtgXBYuLh9E8Zm6FzSSDoOQpT8w6gLv8cfhuzVnhxPbzCyGSkv2dma4IMWqBCiuLajiNeYhuLq+rtlHzKO+rZWqsGHYQVUifP6YzpdBNZ0ZEtSkEiB4lasqRVEliiEkMFDofmhSY752IdQBv+VLFHM=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:eba906a8-d548-4db8-b82f-4e39ebeed144,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:5d391d7,CLOUDID:0beae4bc-2ac7-4da2-9f94-677a477649d9,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO, DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: d6cc320894ca11eeba30773df0976c77-20231207 Received: from mtkmbs13n2.mediatek.inc [(172.21.101.108)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1076372996; Thu, 07 Dec 2023 14:35:40 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by MTKMBS14N1.mediatek.inc (172.21.101.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 7 Dec 2023 14:35:38 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 7 Dec 2023 14:35:37 +0800 From: Axe Yang To: Chaotian Jing , Ulf Hansson , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , "Wenbin Mei" CC: , , , , , , Axe Yang Subject: [PATCH v4 0/2] mmc: mediatek: add support for 64-steps tuning Date: Thu, 7 Dec 2023 14:35:33 +0800 Message-ID: <20231207063535.29546-1-axe.yang@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--7.560700-8.000000 X-TMASE-MatchedRID: gUuz9Ogq75XyTBeqcpWTVjPDkSOzeDWWc3ewuwbSaG74JyR+b5tvoMIZ XeWgC5H4MNtd4b5keZYEoCN5ygO+keG9zoNFX6PtcFEiuPxHjsXizg6lQ0NagVwpnAAvAwazYjN VHAF7/x2VMlcqqHWd7aBVvEjzNBpCHxPMjOKY7A+Wlioo2ZbGwdmzcdRxL+xwKrauXd3MZDWCtu rRWuLXZFTRjqgjX5vkHnbm84W0zu1SxdSdZ8QKZ+kY/8nj1oos X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--7.560700-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 9B3128BC62A2FEE6AE006376D6BA995C3A25A8BBC567435E09939EC57DB75A0F2000:8 X-MTK: N X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 06 Dec 2023 22:36:04 -0800 (PST) Change in v4: - for SD/SDIO, tune 64 steps by default - reduce some breaks to improve code readability Change in v3: - use BIT_ULL() instead of BIT() to avoid potential left shift operations that could cause exceed boundary problem on 32-bit platforms Change in v2: - move the change made to document to the front - change mediatek,tune-step dts property type to enum for better scalability Axe Yang (2): dt-bindings: mmc: mtk-sd: add tuning steps related property mmc: mediatek: extend number of tuning steps .../devicetree/bindings/mmc/mtk-sd.yaml | 9 + drivers/mmc/host/mtk-sd.c | 158 ++++++++++++------ 2 files changed, 119 insertions(+), 48 deletions(-) -- 2.18.0