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 EB377348C6B; Wed, 30 Sep 2026 19:24:21 +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=1790796263; cv=none; b=fWsbP4lXamCBM+wF4saC45MTe0aiRNGfPRLP0sWEkQ8SlezB67jpkvyk1wETz+L4d7JR8dlswZTyGiM2qelKZ/lPIbMZAdZWXxDjxL+8/vhY64CPz7/fxUp3lzMw/rf4Yh80+yCYJ0PrJ91lz5vRfl90xyC91WmkS35MqRlwDvg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790796263; c=relaxed/simple; bh=3ZgLpugQavT+faeHk18wlCK1SMDt+DZQSvKYEjlhZEI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=V0DDMfyXjuYsuzkzVPm+1wzgi15Juz39tXAMsmpjk8UO3dpsROTk7Qp3dpdOeMQm9GgFm4h4crflk2y55vK2i45gRsdRF0bmA59rPfqRjrjytxtBvN+2abj4bfzexiQ3OmxS1c1iKexGepOSDoj5gpLJxlG7V8HRwHcol2BE53E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L5dIW5JH; 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="L5dIW5JH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5348A1F000FF; Wed, 30 Sep 2026 19:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790796261; bh=HUFXbALmjpv2iFsLkhuG9/nwSLCgwcif9QE9dKfBigc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=L5dIW5JHAlRpb6zLo5T9Sb1MvGJeeho5yIHniJOIHerhFZ7M3zV2JfmZLs9+Mx5bb EiwemceyDbU0bGrlwDCsN1edQO1sJhZzfpNzi6HayATEg9EayIkxne+5NcWP/kXLx3 /4Oh7rpQ7wI4chpfUObQPJj+VHbrFbwtKawnE6M0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Koichiro Den , Geert Uytterhoeven Subject: [PATCH 6.6 0849/1193] arm64: dts: renesas: r8a779f0: Set UFS lane count Date: Wed, 30 Sep 2026 17:25:33 +0200 Message-ID: <20260930152453.098867859@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152434.301151190@linuxfoundation.org> References: <20260930152434.301151190@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.6-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 @@ -733,6 +733,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";