memory: mtk-smi: Add sleep ctrl function
Sleep control means that when the larb goes to sleep, we should wait a bit until all the current commands are finished. Thus, when the larb runtime suspends, we need to enable this function to wait until all the existed commands are finished. When the larb resumes, just disable this function. This function only improves the safety of bus. Add a new flag for this function. Prepare for mt8186. Signed-off-by: NAnan Sun <anan.sun@mediatek.com> Signed-off-by: NYong Wu <yong.wu@mediatek.com> Reviewed-by: NAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20220113111057.29918-7-yong.wu@mediatek.comSigned-off-by: NKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Showing
想要评论请 注册 或 登录