Loading
i2c: synquacer: Deal with optional PCLK correctly
stable inclusion from stable-v6.6.55 commit c7e0da7449326a0766ff9d651944dcf127c56a5d category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IB0MX4 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c7e0da7449326a0766ff9d651944dcf127c56a5d -------------------------------- [ Upstream commit f2990f8630531a99cad4dc5c44cb2a11ded42492 ] ACPI boot does not provide clocks and regulators, but instead, provides the PCLK rate directly, and enables the clock in firmware. So deal gracefully with this. Fixes: 55750148e559 ("i2c: synquacer: Fix an error handling path in synquacer_i2c_probe()") Cc: stable@vger.kernel.org # v6.10+ Cc: Andi Shyti <andi.shyti@kernel.org> Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by:Ard Biesheuvel <ardb@kernel.org> Signed-off-by:
Andi Shyti <andi.shyti@kernel.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> (cherry picked from commit c7e0da7449326a0766ff9d651944dcf127c56a5d) Signed-off-by:
Wentao Guan <guanwentao@uniontech.com>