Thread (13 messages) 13 messages, 6 authors, 2020-02-05

RE: [PATCH RESEND v3 4/4] scsi: ufs-mediatek: gate ref-clk during Auto-Hibern8

From: Stanley Chu <hidden>
Date: 2020-02-01 01:45:27
Also in: linux-mediatek, linux-scsi, lkml

Hi Avri,

On Fri, 2020-01-31 at 18:48 +0000, Avri Altman wrote:
quoted
+static u32 ufs_mtk_link_get_state(struct ufs_hba *hba)
+{
+       u32 val;
+
+       ufshcd_writel(hba, 0x20, REG_UFS_DEBUG_SEL);
+       val = ufshcd_readl(hba, REG_UFS_PROBE);
+       val = val >> 28;
+
+       return val;
+}
A little bit strange that you are relying on debug registers to setup your ref-clock.
Is this this debug info is always available?
Yes, this register is only for this purpose now (query link state) and
always existed in MediaTek UFS host.

Thanks,
Stanley
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help