i2c: npcm: Fix timeout calculation
stable inclusion from stable-v5.10.121 commit 06cb0f056ba1414bc13a36884913acfadb1ddc84 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6CQ Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=06cb0f056ba1414bc13a36884913acfadb1ddc84 -------------------------------- [ Upstream commit 288b2044 ] Use adap.timeout for timeout calculation instead of hard-coded value of 35ms. Fixes: 56a1485b ("i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver") Signed-off-by: NTali Perry <tali.perry1@gmail.com> Signed-off-by: NTyrone Ting <kfting@nuvoton.com> Signed-off-by: NWolfram Sang <wsa@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Showing
想要评论请 注册 或 登录