From patchwork Thu Nov 30 06:15:11 2023 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: 13474105 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 8700CC4167B for ; Thu, 30 Nov 2023 06:16:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=kxQYsKa9TV61EUlxG60oM3DRsmXzoQm8uA+24Ky6RCA=; b=U2qtclLdd1x7P9GZbgcWr9qwRD 3MeQA75L5MCUBnxOW16n37ORtVg58RF5O2AhYG0HcyvCMTKvC/NBbQmsf4HLAGsLobgD6lFZV+42N AdFml84pyDf6HfRfHHb6yNdR8bd4KchmxDHQsCdwLDXxwCKmlVxzMm0ViPZ6rbReO9xdGX+cY1FVr 2w0tx2Qc6GOFvGg1SfTv4aJrDSp5y2m1M21sidt/fX9dMZn4iaW8ecfbhCKqSVO16Yih0a5Fokl0S JaCdPkCe/pXcJti8i8igEuTWTqJJEHATMRsnZ7DrMn5Z6fCdNmtNGf6qoI2z5q/eRrelgtLH1P2sf H/07B1dg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r8aLA-00A0eu-1V; Thu, 30 Nov 2023 06:16:00 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r8aL7-00A0e3-38; Thu, 30 Nov 2023 06:15:59 +0000 X-UUID: ea60dc2a8f4711ee86758d4a7c00f3a0-20231129 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=kxQYsKa9TV61EUlxG60oM3DRsmXzoQm8uA+24Ky6RCA=; b=sUruE0R7KbAW3IhwkB854DayIBVfEA/uKGJ1AbqwLucMd33bYuTToAWTSbMtNJBz/1+uAEGrOhzao/+wya8qTb9FIyIVlMLliY6q70FQVtPI0BYSJLqkXu035axxtdu+kpJNHEbitiijrA5p571XL2Gq2TySK4Dh0NjHeM25Wwk=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.34,REQID:70c96c74-1d22-4206-814e-ae099d24fd88,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:abefa75,CLOUDID:9ec73d73-1bd3-4f48-b671-ada88705968c,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: ea60dc2a8f4711ee86758d4a7c00f3a0-20231129 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1626838265; Wed, 29 Nov 2023 23:15:53 -0700 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 30 Nov 2023 14:15:17 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 30 Nov 2023 14:15:16 +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 v3 0/2] mmc: mediatek: add support for 64-steps tuning Date: Thu, 30 Nov 2023 14:15:11 +0800 Message-ID: <20231130061513.1296-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-20231129_221558_013319_F646C326 X-CRM114-Status: GOOD ( 10.00 ) 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 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 | 155 ++++++++++++------ 2 files changed, 116 insertions(+), 48 deletions(-)