From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 DF1C253A39F; Wed, 23 Sep 2026 14:46:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790174799; cv=none; b=rmJEs8WFe/L+Q4HkBg/7xCzqjR/8urb8N1WezvrfE1OcqXf906+x7nfIqSaZJmb3sVwk013iFJdtBO35dh4gnE5UOXd90KGLgnvjbwmFFFa5pG2HSNg3l3TmN22umzte3t0VAgOHsdOaCl32MGkh+G2MuJ2s7Xqq8esrCGVOFRM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790174799; c=relaxed/simple; bh=EDItx98sAA+p+XAcct351P/Adupce3wDIIvi6ZQx0k0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PK6SgDwnrJ4m5Lk0wYbJEAxJdPaosnssisBJwHjrfrNmdUYKv8wW1/deysn6yVjmzFrZAhEWekKrlvs40kt/y1PDLy7vQBqMBW3I9J2BsvkvXYnPFaF5U5SqMFK3leR0E9Z0XtRPcfIB0d8jfFVtScqEcoJhyjCt+uqTRHVpsno= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BLRH072v; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="BLRH072v" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 486B21F000FF; Wed, 23 Sep 2026 14:46:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790174797; bh=N2RQcQXsiJpdg3rOxehCsGPi5axnqsAuwAPuwFsRiIk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=BLRH072vxaO8Etmix8d5MFJ0+qWW4Z1VakD4Cf79yvfBIA4CvVq/ZZPOFSoLDKraK AsoxBnszrENdeaXfG5GTYXJjimJaYeJncOiYnjz3fhi6x1EXUxhicwDYwyxxsXUZ8h yTKycF+KP0i9uBqVz0LDijRV49i39gXohF7TO+B8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Koichiro Den , Geert Uytterhoeven Subject: [PATCH 6.18 229/398] arm64: dts: renesas: r8a779f0: Set UFS lane count Date: Wed, 23 Sep 2026 16:05:03 +0200 Message-ID: <20260923140649.354570699@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260923140643.441954610@linuxfoundation.org> References: <20260923140643.441954610@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Koichiro Den commit 8dc2615d5702059b2b71fca6f93c0d7d10ae54cb upstream. Since commit e72323f3b09f ("scsi: ufs: core: Configure only active lanes during link"), the following error is observed on R-Car S4: ufshcd-renesas e6860000.ufs: Tx lane mismatch [config,reported] [2,1] ufshcd-renesas e6860000.ufs: link startup failed -67 ufshcd-renesas e6860000.ufs: error -ENOLINK: Initialization failed with error -67 ufshcd-renesas e6860000.ufs: probe with driver ufshcd-renesas failed with error -67 R-Car S4 has one UFS lane per direction, as described in section 152.1 of its hardware manual. Without lanes-per-direction, the UFS platform driver defaults to two lanes. Previously, the core used PA_CONNECTEDRXDATALANES and PA_CONNECTEDTXDATALANES to configure the link without checking them against lanes-per-direction, so the missing property did not prevent initialization. Explicitly set lanes-per-direction to 1, now that the validation is in place. Fixes: 5235d551779d ("arm64: dts: renesas: r8a779f0: Add UFS node") Cc: stable@vger.kernel.org # 7.2+ Signed-off-by: Koichiro Den Reviewed-by: Geert Uytterhoeven Tested-by: Geert Uytterhoeven Link: https://patch.msgid.link/20260911073058.253000-1-den@valinux.co.jp Signed-off-by: Geert Uytterhoeven Signed-off-by: Greg Kroah-Hartman --- arch/arm64/boot/dts/renesas/r8a779f0.dtsi | 1 + 1 file changed, 1 insertion(+) --- a/arch/arm64/boot/dts/renesas/r8a779f0.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779f0.dtsi @@ -891,6 +891,7 @@ clocks = <&cpg CPG_MOD 1514>, <&ufs30_clk>; clock-names = "fck", "ref_clk"; freq-table-hz = <200000000 200000000>, <38400000 38400000>; + lanes-per-direction = <1>; power-domains = <&sysc R8A779F0_PD_ALWAYS_ON>; resets = <&cpg 1514>; status = "disabled";