Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 833ea2a4 authored by Michal' Potomski's avatar Michal' Potomski Committed by Sayali Lokhande
Browse files

scsi: ufs: Factor out ufshcd_read_desc_param



Since in UFS 2.1 specification some of the descriptor lengths differs
from 2.0 specification and some devices, which are reporting spec
version 2.0 have different descriptor lengths we can not rely on
hardcoded values taken from 2.0 specification. This patch introduces
reading these lengths per each device from descriptor headers at probe
time to ensure their correctness.

Change-Id: I0e1be5b5914e008b0fb09e547b1f8c4ee966efc4
Signed-off-by: default avatarMichal' Potomski <michalx.potomski@intel.com>
Reviewed-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Git-commit: a4b0e8a4e92b1baa860e744847fbdb84a50a5071
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


[sayalil@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: default avatarSayali Lokhande <sayalil@codeaurora.org>
parent a2005826
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment