Re: [PATCH v4 1/2] ufs: core: Configure only active lanes during link
From: Bart Van Assche
Date: Fri Apr 17 2026 - 12:34:06 EST
On 4/16/26 9:56 PM, palash.kambar@xxxxxxxxxxxxxxxx wrote:
The number of connected lanes detected during UFS link startup can be
fewer than the lanes specified in the device tree. The current driver
logic attempts to configure all lanes defined in the device tree,
regardless of their actual availability. This mismatch may cause
failures during power mode changes.
Hence, Add a check during link startup to ensure that only the lanes
actually discovered are considered valid. If a mismatch is detected,
fail the initialization early, preventing the driver from entering
an unsupported configuration that could cause power mode transition
failures.
Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>