Re: [PATCH] scsi: ufs: core: Skip link param validation when lanes_per_direction is unset

From: Martin K. Petersen

Date: Mon Jun 08 2026 - 21:40:26 EST


On Wed, 20 May 2026 16:00:09 +0900, Daejun Park wrote:

> ufshcd_validate_link_params(), added by commit e72323f3b09f ("scsi: ufs:
> core: Configure only active lanes during link"), is called
> unconditionally from ufshcd_link_startup() and fails link startup with
> -ENOLINK when the connected lane count read from the device differs from
> hba->lanes_per_direction.
>
> lanes_per_direction is only set by ufshcd-pltfrm (default 2, or the
> "lanes-per-direction" devicetree property); ufshcd-pci controllers
> (e.g. Intel) leave it 0. As the device always reports >= 1 connected
> lanes, the check can never match and link startup always fails.
> Reproduced with QEMU's UFS device.
>
> [...]

Applied to 7.2/scsi-queue, thanks!

[1/1] scsi: ufs: core: Skip link param validation when lanes_per_direction is unset
https://git.kernel.org/mkp/scsi/c/06a34d9c1f47

--
Martin K. Petersen