i2c: meson: Fix wrong speed use from probe
stable inclusion from stable-v5.10.110 commit c483f8002d17dcac65284b920026cf544f022762 bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c483f8002d17dcac65284b920026cf544f022762 -------------------------------- [ Upstream commit cb13aa16 ] Having meson_i2c_set_clk_div after i2c_add_adapter causes issues for client drivers that try to use the bus before the requested speed is applied. The bus can be used just after i2c_add_adapter, so move i2c_add_adapter to the final step as meson_i2c_set_clk_div needs to be called before the bus is used. Fixes: 09af1c2f ("i2c: meson: set clock divider in probe instead of setting it for each transfer") Signed-off-by: NLucas Tanure <tanure@linux.com> Reviewed-by: NNeil Armstrong <narmstrong@baylibre.com> Signed-off-by: NWolfram Sang <wsa@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NYu Liao <liaoyu15@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录