mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
scsi: ufs: host: mediatek: Fix UniPro setting for MT6989
Set the UniPro attribute 0xD09E[4] bit to enable the 1144 functions specifically for the MT6989 platform. This adjustment ensures proper functionality and compatibility with the MT6989 hardware. Signed-off-by: Peter Wang <peter.wang@mediatek.com> Link: https://lore.kernel.org/r/20250811131423.3444014-9-peter.wang@mediatek.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
f1617ecf18
commit
bacb96ce06
|
|
@ -1475,6 +1475,7 @@ static int ufs_mtk_pre_link(struct ufs_hba *hba)
|
|||
{
|
||||
int ret;
|
||||
u32 tmp;
|
||||
struct ufs_mtk_host *host = ufshcd_get_variant(hba);
|
||||
|
||||
ufs_mtk_get_controller_version(hba);
|
||||
|
||||
|
|
@ -1500,6 +1501,16 @@ static int ufs_mtk_pre_link(struct ufs_hba *hba)
|
|||
|
||||
ret = ufshcd_dme_set(hba, UIC_ARG_MIB(VS_SAVEPOWERCONTROL), tmp);
|
||||
|
||||
/* Enable the 1144 functions setting */
|
||||
if (host->ip_ver == IP_VER_MT6989) {
|
||||
ret = ufshcd_dme_get(hba, UIC_ARG_MIB(VS_DEBUGOMC), &tmp);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
tmp |= 0x10;
|
||||
ret = ufshcd_dme_set(hba, UIC_ARG_MIB(VS_DEBUGOMC), tmp);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
static void ufs_mtk_post_link(struct ufs_hba *hba)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user