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 2B2FF531625; Wed, 23 Sep 2026 14:25:18 +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=1790173519; cv=none; b=oXAWhLm6fExO5SOhU7hBY/c/gjmLTZGSejt8hHp/ReD35uAJX+R14PMaQnskmq2QTMuuuIFbLlxnvRncxlPUb8TVKXdsNruWvoWmkrl09ipmJ/gbA7wC+YAK2NT/e2tOvnpSfJRhQF2OkP8aVKm//UaEPc02fFRDaqdM/1JBDDU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790173519; c=relaxed/simple; bh=svSFhoOk6sjiubP24DoBSSEAT721/Wz0bNG/3wkhC8Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fime6t6QDL4wZ8xscGcvclqHnZzoufMU2kvX8AhYk7sww3qa8kuXQxX7Hjg2/AY8r/lw4BAbpx5mpq+lP8R1oPD4glCq8Wgho2hyXnVjAtRNmOHd6SMFbMj6VqARCPSN1Gfu9TAnZpyI7FZ9SH65thIyTZhKjvorsD+yWtJvVS8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=v4WwFCox; 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="v4WwFCox" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BF771F000FF; Wed, 23 Sep 2026 14:25:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790173518; bh=o8/DkhJhZZ6o4pSswev5qu1+uJEgi36xNMv9OYq/FEc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=v4WwFCoxNZwa2pMzWPhxix8j5EUcg+KzzDEVN2Slrh0VfuoHk+25ZUpHA43Kct3e+ 7dR1/+pj8FxIqpSRQxwA+vn8X63tOTlZulCkyk7I47E4OL1gS7THu1CocrYLOv1wzD rIuW2CbvaDSFo1CszGqZZnwqwW9ZuYVVUSN6GLC4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Koichiro Den , Geert Uytterhoeven Subject: [PATCH 7.2 272/438] arm64: dts: renesas: r8a779f0: Set UFS lane count Date: Wed, 23 Sep 2026 16:04:53 +0200 Message-ID: <20260923140651.817549859@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260923140644.756254324@linuxfoundation.org> References: <20260923140644.756254324@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 7.2-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 @@ -901,6 +901,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";