Loading
spi: hisi-kunpeng: Add validation for the minimum value of speed_hz
driver inclusion category: cleanup bugzilla: https://gitee.com/openeuler/kernel/issues/I9QOAJ CVE: NA ----------------------------------------------------------------- We get the configuration of max_frequency from the firmware, which is used to calculate the clk_div together with the set speed. If the speed set by the user is too small, it may cause the clk_div to be too large to exceed the variable range. Therefore, we limit the minimum value of the speed configuration to the value obtained by (master->max_speed_hz/CLK_DIV_MAX). Signed-off-by:Devyn Liu <liudingyuan@huawei.com> Signed-off-by:
hongrongxuan <hongrongxuan@huawei.com>