From mboxrd@z Thu Jan 1 00:00:00 1970 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 730ECCD98C5 for ; Mon, 15 Jun 2026 05:58:43 +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=n0d+L+EIwOsiZbkVNO8KRMyzErfheRgT1ggTaflwX00=; b=sP4vmws7VRHCG9pWpQ/SivE1TY rxzpeKdfBfnecdSCeorJyEKIUPDuBZ5cK5rksrMOhxI//5RT9eHnRc3EHJrxRU/Ozn7C7U2KvqhXO Zw9Q+AVFDH4u1Gd20Y1xib15xPYse2fflw1dTmuCyFM725GRqqa7Y/5FJ6V+4kINs3N6YpCdmoxRk NbfoYiqPV216ydBC4g4S8QfuBJzKnePGoEpPmp2uwDaGX6fndyXo2KiXEaYg5FIgHgzWq8qlNpnh9 W9S1O+buZMA1utbA6/pFAper8hmh+IyGA52ehansb2T926gQv0sl/QzkwwLs5/IA5MqKCYZe+0A0S AS6bL0DA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wZ0LD-0000000DekW-1aGt; Mon, 15 Jun 2026 05:58:35 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wZ0LB-0000000Deio-09FN; Mon, 15 Jun 2026 05:58:34 +0000 X-UUID: 3786a13e687f11f1acbe4559397dec65-20260614 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=n0d+L+EIwOsiZbkVNO8KRMyzErfheRgT1ggTaflwX00=; b=rniTkgdd92VImJa0nV7vzBkWAjxA9lIbkSk4I0XQaUDjcoqBU/2oMbJ5lHGY7T6N0NAGdDzG+M9wn+HdilYkYASYcH7YX1AiO6MFJf2TmKAcY0Uyg5+a6H5ySPaYcK39o6fzqPuluqv0I2HkaOuKJ5coqxNDOG8zfowdoNWSWNM=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.15,REQID:dc4943f0-c5a2-4eb5-84be-98e39277e2c4,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:e276073,CLOUDID:cdd2f3e0-ecbd-446c-abfe-8b1546a39ee8,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102|123|836|865|888|898,TC:-5,Conten t:0|15|50,EDM:-3,IP:nil,URL:0,File:130,RT:0,Bulk:nil,QS:nil,BEC:-1,COL:0,O SI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 2,SSN|SDN X-CID-BAS: 2,SSN|SDN,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-CID-RHF: D41D8CD98F00B204E9800998ECF8427E X-UUID: 3786a13e687f11f1acbe4559397dec65-20260614 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1839185608; Sun, 14 Jun 2026 22:58:22 -0700 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by MTKMBS09N2.mediatek.inc (172.21.101.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Mon, 15 Jun 2026 13:58:20 +0800 Received: from mtksitap99.mediatek.inc (10.233.130.16) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.2562.29 via Frontend Transport; Mon, 15 Jun 2026 13:58:20 +0800 From: To: , , , , , , Matthias Brugger , AngeloGioacchino Del Regno CC: , , , , , , , , Ed Tsai Subject: [PATCH v3 0/3] ufs: Add callback for vendor-specific RTT capability Date: Mon, 15 Jun 2026 13:57:14 +0800 Message-ID: <20260615055802.105479-1-ed.tsai@mediatek.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260614_225833_101452_7CB21F93 X-CRM114-Status: GOOD ( 10.42 ) 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 From: Ed Tsai The first patch adds the get_hba_nortt() callback to the UFS core layer, allowing vendor drivers to provide dynamic, platform-specific RTT capability handling. The second patch implements this callback in the MediaTek UFS driver, distinguishing between legacy platforms (which require the RTT to be limited to 2) and newer MT6995 B0+ platforms (which can use the value from the capability register directly). The third patch removes the max_num_rtt field from ufs_hba_variant_ops as it is now replaced by the get_hba_nortt() callback. Changes in v3: - Fix incomplete v2 that was sent prematurely - now properly removes max_num_rtt field in patch 3 Changes in v2: - Keep max_num_rtt field in patch 1 to maintain bisectability - Split removal of max_num_rtt into a separate patch (patch 3) Ed Tsai (3): ufs: core: Add get_hba_nortt callback for vendor-specific RTT capability ufs: mediatek: Implement get_hba_nortt callback for RTT capability ufs: core: Remove max_num_rtt field from ufs_hba_variant_ops drivers/ufs/core/ufshcd.c | 9 +++++---- drivers/ufs/host/ufs-mediatek.c | 12 +++++++++++- drivers/ufs/host/ufs-mediatek.h | 4 ++-- include/ufs/ufshcd.h | 5 +++-- 4 files changed, 21 insertions(+), 9 deletions(-) -- 2.45.2