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 34AEACCD193 for ; Thu, 23 Oct 2025 19:52:00 +0000 (UTC) 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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=e5hWezMZGPvgY7sQgQkhV5bF5MV0heACJvzCDXAqJe8=; b=DuAVCWl68J/02O C51rd+P5lrt9iFOziyOLfO0t00JF0D33yLzVb+N1cmGTT7NiktRgb/33TagPKrdlytm/qCAv3Y0yX x7U8UUHjrFEBlCicdpPwbX4llhqoq8NM63HFEa7ONG96boknV21FpghtTMYgwVpUoSzKoblokxPnQ M9WNLIHAXBOYuNlB0c/7FtFXs+3Bbo6imidl69SpDoo5680etW/P14vtcAEJzcv9ysS+kBM4prLFt ZuDX8/+e7p5Sb2zGCnXyAOvac2571lStMGrkie7iLCYGVkn36v1n58YX3sEAUwIxGXUEXrVkrG3YB l6pXk3RY583cPPVbKfJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vC1Lr-00000007Qhb-3gyC; Thu, 23 Oct 2025 19:51:59 +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 1vC1Lm-00000007QZn-0I0M; Thu, 23 Oct 2025 19:51:55 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1761249102; cv=none; d=zohomail.com; s=zohoarc; b=UCx4NZ14cwKMBXH6Al22riO2hfLQML5qkDq9x839iL8Tgq5u/Mm8s0ayG5jscxpx/y6FVPRffucm2w7g0YljA9ZbaJkRtSBu94pRq1y5ibMPfo4lsA6Y7LTmSPdWPmBky6IBRMVccLCfcGkvQCaHBRj2jV2jDUyothaz1+W4M+I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761249102; 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=o589LR6+X8FWTmM/cB7UMVmp06chy9uKAy4nz1x3QK4=; b=JgFhN+AE/go2+nbE70kzw2ffIxJdw6xmTWPyp/EG78W47w79epovUc7rVxVNCuc5EPM8EaouiW5xxAtobOQZpjEnPXMF/73ZTly3cIysRLAQUa3dvDCa4sr6tSOkTlJU7qww7xpMrH3vrxGyp6/+DFDB0agO7Jnn6/eEV/wRxjg= 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=1761249102; s=zohomail; d=collabora.com; i=nicolas.frattaroli@collabora.com; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:References:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=o589LR6+X8FWTmM/cB7UMVmp06chy9uKAy4nz1x3QK4=; b=FcMoOpAW83BHo/qaC6gDzKy1Z4N2i+iz7SPBcODKhwEJ03f2ekFoJzCvz/JtaAqg fB26bjfPpmxIa6kl+uhDNxxfV0K/2VSLzKqBEIdrhdWO0sYjQ9jMTzKn6vIR7GqvdpF kNJXUjvAgsrYLiAOy62irD+gDtZy2JT2Gl5V4zjo= Received: by mx.zohomail.com with SMTPS id 1761249100086437.55374163067677; Thu, 23 Oct 2025 12:51:40 -0700 (PDT) From: Nicolas Frattaroli Date: Thu, 23 Oct 2025 21:49:32 +0200 Subject: [PATCH v3 14/24] scsi: ufs: mediatek: Remove mediatek,ufs-broken-rtc property MIME-Version: 1.0 Message-Id: <20251023-mt8196-ufs-v3-14-0f04b4a795ff@collabora.com> References: <20251023-mt8196-ufs-v3-0-0f04b4a795ff@collabora.com> In-Reply-To: <20251023-mt8196-ufs-v3-0-0f04b4a795ff@collabora.com> To: Alim Akhtar , Avri Altman , Bart Van Assche , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Chunfeng Yun , Vinod Koul , Kishon Vijay Abraham I , Peter Wang , Stanley Jhu , "James E.J. Bottomley" , "Martin K. Petersen" , Philipp Zabel , Liam Girdwood , Mark Brown Cc: Louis-Alexis Eyraud , kernel@collabora.com, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, Nicolas Frattaroli X-Mailer: b4 0.14.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251023_125154_186794_B89BA428 X-CRM114-Status: GOOD ( 10.18 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org This flag property was never described in the binding, and its capability wrapper seems pointless. If one of the MediaTek SoCs needs the ufshcd quirk applied, then this can be done per-compatible, without needing to give the device tree author the option to forget to set it. Remove it and the associated capability flag wrapping code. Signed-off-by: Nicolas Frattaroli --- drivers/ufs/host/ufs-mediatek.c | 5 ----- drivers/ufs/host/ufs-mediatek.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/drivers/ufs/host/ufs-mediatek.c b/drivers/ufs/host/ufs-mediatek.c index 427e6bc3a476..44676ba4c392 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 |= UFS_MTK_CAP_RTFF_MTCMOS; - if (of_property_read_bool(np, "mediatek,ufs-broken-rtc")) - host->caps |= UFS_MTK_CAP_MCQ_BROKEN_RTC; - dev_info(hba->dev, "caps: 0x%x", host->caps); } @@ -1172,8 +1169,6 @@ static int ufs_mtk_init(struct ufs_hba *hba) hba->quirks |= UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL; hba->quirks |= UFSHCD_QUIRK_MCQ_BROKEN_INTR; - if (host->caps & UFS_MTK_CAP_MCQ_BROKEN_RTC) - hba->quirks |= UFSHCD_QUIRK_MCQ_BROKEN_RTC; hba->vps->wb_flush_threshold = UFS_WB_BUF_REMAIN_PERCENT(80); diff --git a/drivers/ufs/host/ufs-mediatek.h b/drivers/ufs/host/ufs-mediatek.h index 4e6a34f4ac39..9c377745f7a0 100644 --- a/drivers/ufs/host/ufs-mediatek.h +++ b/drivers/ufs/host/ufs-mediatek.h @@ -138,8 +138,6 @@ enum ufs_mtk_host_caps { UFS_MTK_CAP_DISABLE_MCQ = 1 << 8, /* Control MTCMOS with RTFF */ UFS_MTK_CAP_RTFF_MTCMOS = 1 << 9, - - UFS_MTK_CAP_MCQ_BROKEN_RTC = 1 << 10, }; struct ufs_mtk_crypt_cfg { -- 2.51.1.dirty -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy