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 BACBEFD375E for ; Wed, 25 Feb 2026 12:52:13 +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:References:In-Reply-To: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:List-Owner; bh=T70ySPmQ1GqRu+gzswXj2+yT3BqSZsUEEsLuHeI35co=; b=i8pCYHeuKVwDFnBxhAaNIDGb8y bCizZG0APl4WAsKHu9Hlfl7nltI9oYsQGauoohBRTYW5XqZJUmcQ3vVTQxud28dQtr6+LHKr7VQwC aEadUPhUhaim1jy0WnmvRx+LBHFg+X2a4YxEmBs+5oTgNCbBQLroGwmBYBYDRofJ1u3shovlnJgAI 0shvrAxy+RXAF9VG62Dmkw61EA18L5P4AJmxpaOfgbb4QrYJx2wj5ol5Wrd9ut97NaVqRFfnTsD/b LOR7nLC2r+SA+DnGj5bH5PPt8IKGnkIUJ437ZKl8pIz4ewBjVNrg0qyUs9CrfxCrQa1yknjaUUqNX 2lXGUaJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vvENA-000000041mc-2ZvC; Wed, 25 Feb 2026 12:52:12 +0000 Received: from sender4-pp-f112.zoho.com ([136.143.188.112]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vvEN7-000000041lI-0sk0; Wed, 25 Feb 2026 12:52:10 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1772023918; cv=none; d=zohomail.com; s=zohoarc; b=ICTEfHhyDwLJkhsdDnqW0m6pUOTdJbtZU+i7vtiytvbTDJZv5wHNiLsHIP9QegFSAI1ghfZVLZOplV1gbia6JuQe8RmfFiG69QBoa14HfclhBdamUFMc2BucV25iR8ZRHDMz3mkC+iCPTsXEFmEJjsVMZrkLLok0AZe9Yf0lkLA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772023918; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=T70ySPmQ1GqRu+gzswXj2+yT3BqSZsUEEsLuHeI35co=; b=QHK/4er+tLCtdBvg1RAIKIHElknd71Syfrn0VLgKCF4JurPSJa3MK3aNPOkwa+oUNOgfcllqhHG0L889/m0zoxNbJGYht22ffNrLLbEZRRd26KCII8SiZ3DzFdZD9bLcs51Yf/bWtFUWsvuHGKjfnTLq20XJhJkaUPgfWqBxNJw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=nicolas.frattaroli@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1772023917; s=zohomail; d=collabora.com; i=nicolas.frattaroli@collabora.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Reply-To; bh=T70ySPmQ1GqRu+gzswXj2+yT3BqSZsUEEsLuHeI35co=; b=Z7mEQDq9HC4wHL2/KtkISM6JrMa8Ymly1nhRZFgYFA6bLp+TR1/JhcV/4yorEipU 9UpkbXY7tYpq0mRVXesynsKp0CU5ycg6NSuRBuJcMgNO106uILhZVZ3Vt/W3SipYe25 L0fI3wr0n+YkIDSfSdbwDI154gEHdXaU+MsSWI1I= Received: by mx.zohomail.com with SMTPS id 1772023915403681.8519199142135; Wed, 25 Feb 2026 04:51:55 -0800 (PST) From: Nicolas Frattaroli To: "chu.stanley@gmail.com" , "robh@kernel.org" , Chunfeng Yun =?UTF-8?B?KOS6keaYpeWzsCk=?= , "kishon@kernel.org" , "James.Bottomley@HansenPartnership.com" , "bvanassche@acm.org" , AngeloGioacchino Del Regno , "neil.armstrong@linaro.org" , "conor+dt@kernel.org" , Chaotian Jing =?UTF-8?B?KOS6leacneWkqSk=?= , "lgirdwood@gmail.com" , "vkoul@kernel.org" , "krzk+dt@kernel.org" , "p.zabel@pengutronix.de" , "alim.akhtar@samsung.com" , "matthias.bgg@gmail.com" , "avri.altman@wdc.com" , "martin.petersen@oracle.com" , "broonie@kernel.org" , Peter Wang =?UTF-8?B?KOeOi+S/oeWPiyk=?= Cc: "linux-scsi@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-phy@lists.infradead.org" , "linux-mediatek@lists.infradead.org" , Louis-Alexis Eyraud , "kernel@collabora.com" Subject: Re: [PATCH v7 14/23] scsi: ufs: mediatek: Remove mediatek,ufs-broken-rtc property Date: Wed, 25 Feb 2026 13:51:47 +0100 Message-ID: <3140774.mvXUDI8C0e@workhorse> In-Reply-To: References: <20260216-mt8196-ufs-v7-0-b5f2907c6da7@collabora.com> <20260216-mt8196-ufs-v7-14-b5f2907c6da7@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260225_045209_298404_A7540729 X-CRM114-Status: GOOD ( 14.03 ) 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 On Tuesday, 24 February 2026 13:43:10 Central European Standard Time Peter = Wang (=E7=8E=8B=E4=BF=A1=E5=8F=8B) wrote: > On Mon, 2026-02-16 at 14:37 +0100, Nicolas Frattaroli wrote: > > diff --git a/drivers/ufs/host/ufs-mediatek.c b/drivers/ufs/host/ufs- > > mediatek.c > > index 230e11533eac..424533538b90 100644 > > --- a/drivers/ufs/host/ufs-mediatek.c > > +++ b/drivers/ufs/host/ufs-mediatek.c > > @@ -655,9 +655,6 @@ static void ufs_mtk_init_host_caps(struct ufs_hba > > *hba) > > if (of_property_read_bool(np, "mediatek,ufs-rtff-mtcmos")) > > host->caps |=3D UFS_MTK_CAP_RTFF_MTCMOS; > > =20 > > - if (of_property_read_bool(np, "mediatek,ufs-broken-rtc")) > > - host->caps |=3D UFS_MTK_CAP_MCQ_BROKEN_RTC; > > - > > dev_info(hba->dev, "caps: 0x%x", host->caps); > > } > > =20 > > @@ -1185,8 +1182,6 @@ static int ufs_mtk_init(struct ufs_hba *hba) > > hba->quirks |=3D UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL; > > =20 > > hba->quirks |=3D UFSHCD_QUIRK_MCQ_BROKEN_INTR; > > - if (host->caps & UFS_MTK_CAP_MCQ_BROKEN_RTC) > > - hba->quirks |=3D UFSHCD_QUIRK_MCQ_BROKEN_RTC; > > =20 >=20 > Maybe check the hardware version (host->ip_ver)=20 > and set UFSHCD_QUIRK_MCQ_BROKEN_RTC instead of removing it? I do not have access to a complete list of hardware IP versions that need this quirk applied. No upstream DTs seem to use it. If MediaTek wants the quirk back, you can submit a patch to apply it based on the ip_ver once this series has landed, as you have all the necessary information. >=20 > Thanks > Peter >=20