Message ID | 20231218133917.78770-1-y.oudjana@protonmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-3758-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp1247713dyi; Mon, 18 Dec 2023 05:43:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IGE+UOlUblxz8bX8OUA8YW/Nvz9U9jLAkdq2n6SX7GnFad/D8yqlvlneru1Vb8lYHF4ILDc X-Received: by 2002:a05:6a21:339b:b0:190:228e:4c2b with SMTP id yy27-20020a056a21339b00b00190228e4c2bmr21219062pzb.71.1702907022257; Mon, 18 Dec 2023 05:43:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702907022; cv=none; d=google.com; s=arc-20160816; b=orG2S8U73uGbWlkJQle15tRdu4o4893wgEmxmrs2PuXPP68n0ihkDvo80zpAl+BcSu Wra8Bk+zfRDXzSkrAaWUjh65SEJyATNRwtYjxpMY9gub+OuagS3XJuBN3ETykWrmFK+A uAjtfyPwKfv32KPPB7LUuiSm5y6ox2NX1LHrLRU3fJ6GzFKDjh/Cz2X16IVTCOSeX8zE pFsuyct9ERHm6txoGjqK8Gzy2u8T19Km4g37RSDgoEr6ZzhIZ2aNWE9dSGoTUm2QEv3r c7dZBCy7URQiFg0024HlpLFtUTZc2szs1udURKZOBGvRLhZ+zyHnPaNXYQ9cnSxan2Gh p8Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:feedback-id:message-id:subject:cc :from:to:date:dkim-signature; bh=oFxiJsLYp9oMwSWHBY7gyKETjQXSFfN8A+P1KnZ/vZI=; fh=2ECscP0eGkByHILw7BCJeUoc6XhSu6Hb+xPcafvFwQ8=; b=ISuEj3p5NPR7i3L/aEMjkKOWW8q/RQ9CUL+vDHxUOJjQM8IEEtb2ZOV5c4XojiRgq5 sISjLyN20OZH7vU2g2oqmlg5jndLSpTlqxNot9x3WI4zMPlssKpapPgnxeWFGszut4os wqz6yGs4AdgXM4y4laa4O8sIzBnLZPatRs7NZaWIhPi5S3BuPMkiMAdnFSV08GT1JefT DfTSN5RAEQAvyaiHcBBC8gcAcbwaBIqvlJ+p1R3DYIFCq3+wOtwvAsjOiC8tm+tlmLZb lanV4Aoh3+KakGTXlZJ29LH8DReRAr2lePMcBOzNIWek5k/2TSGHTtn56ufMdJTz1tCn PXzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=PC6JJ39J; spf=pass (google.com: domain of linux-kernel+bounces-3758-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3758-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c17-20020a631c51000000b005c657587706si17633629pgm.228.2023.12.18.05.43.41 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 05:43:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3758-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=PC6JJ39J; spf=pass (google.com: domain of linux-kernel+bounces-3758-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3758-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 176ADB221A3 for <ouuuleilei@gmail.com>; Mon, 18 Dec 2023 13:40:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D562C1D134; Mon, 18 Dec 2023 13:40:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="PC6JJ39J" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-0301.mail-europe.com (mail-0301.mail-europe.com [188.165.51.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 71290129EC2 for <linux-kernel@vger.kernel.org>; Mon, 18 Dec 2023 13:40:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1702906789; x=1703165989; bh=oFxiJsLYp9oMwSWHBY7gyKETjQXSFfN8A+P1KnZ/vZI=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=PC6JJ39JhDa6cJ6u4SaoAzug2jN0BUgwIF1DovUZLNPXNDVY/f42/FHiI+KsAu/Nn BIVOCG4MsnvTumx/MGrlexVwCaCobnkPRlz5Okpqfho6N3G9I9H7bkyUTWVGLkRXYU 3NwMHnnYX0GrwgiYzycnvDCzpSDexNSTOccIhwAiraEzOssfYP8SwhMtJoSNxjVY2D 4W6tJk9L+2pO3lmS0xoX0iHI90OLwxlUCAQx9cuTSPI2ZK6xTXhwzcOicdOtDHz6xq NwINVDY1n8nXAqKwTA3iP6F8RaIsjQ92eM1oL7TjwQfGuVRp3UFEveOnCwrXOxuoed lnzbi0e9BHJKw== Date: Mon, 18 Dec 2023 13:39:42 +0000 To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> From: Yassine Oudjana <y.oudjana@protonmail.com> Cc: Yassine Oudjana <y.oudjana@protonmail.com>, Yassine Oudjana <yassine.oudjana@gmail.com>, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: qcom: msm8996: Define UFS UniPro clock limits Message-ID: <20231218133917.78770-1-y.oudjana@protonmail.com> Feedback-ID: 6882736:user:proton Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785627433543805690 X-GMAIL-MSGID: 1785627433543805690 |
Series |
arm64: dts: qcom: msm8996: Define UFS UniPro clock limits
|
|
Commit Message
Yassine Oudjana
Dec. 18, 2023, 1:39 p.m. UTC
These limits were always defined as 0, but that didn't cause any issue
since the driver had hardcoded limits. In commit b4e13e1ae95e ("scsi: ufs:
qcom: Add multiple frequency support for MAX_CORE_CLK_1US_CYCLES") the
hardcoded limits were removed and the driver started reading them from DT,
causing UFS to stop working on MSM8996. Add real UniPro clock limits to fix
UFS.
Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
---
arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 18.12.2023 14:39, Yassine Oudjana wrote: > These limits were always defined as 0, but that didn't cause any issue > since the driver had hardcoded limits. In commit b4e13e1ae95e ("scsi: ufs: > qcom: Add multiple frequency support for MAX_CORE_CLK_1US_CYCLES") the > hardcoded limits were removed and the driver started reading them from DT, > causing UFS to stop working on MSM8996. Add real UniPro clock limits to fix > UFS. > > Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com> > --- Fixes: 57fc67ef0d35 ("arm64: dts: qcom: msm8996: Add ufs related nodes") Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad
On Mon, Dec 18, 2023 at 01:39:42PM +0000, Yassine Oudjana wrote: > These limits were always defined as 0, but that didn't cause any issue > since the driver had hardcoded limits. In commit b4e13e1ae95e ("scsi: ufs: > qcom: Add multiple frequency support for MAX_CORE_CLK_1US_CYCLES") the > hardcoded limits were removed and the driver started reading them from DT, > causing UFS to stop working on MSM8996. Add real UniPro clock limits to fix > UFS. > Such driver changes are not acceptable, as they break backwards compatibility with existing DeviceTree. Can you please try to fix the driver to handle this case? After that is done, I'd be happy to take this patch. Thanks, Bjorn > Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com> > --- > arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi > index 13667886f50a..4f9939b13c3c 100644 > --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi > @@ -2064,7 +2064,7 @@ ufshc: ufshc@624000 { > <0 0>, > <0 0>, > <150000000 300000000>, > - <0 0>, > + <75000000 150000000>, > <0 0>, > <0 0>, > <0 0>, > -- > 2.43.0 > >
On Mon, 18 Dec 2023 13:39:42 +0000, Yassine Oudjana wrote: > These limits were always defined as 0, but that didn't cause any issue > since the driver had hardcoded limits. In commit b4e13e1ae95e ("scsi: ufs: > qcom: Add multiple frequency support for MAX_CORE_CLK_1US_CYCLES") the > hardcoded limits were removed and the driver started reading them from DT, > causing UFS to stop working on MSM8996. Add real UniPro clock limits to fix > UFS. > > [...] Applied, thanks! [1/1] arm64: dts: qcom: msm8996: Define UFS UniPro clock limits commit: 68c4c20848d71b0e69c3403becb5dd23e89e5896 Best regards,
diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 13667886f50a..4f9939b13c3c 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -2064,7 +2064,7 @@ ufshc: ufshc@624000 { <0 0>, <0 0>, <150000000 300000000>, - <0 0>, + <75000000 150000000>, <0 0>, <0 0>, <0 0>,