Loading
!7141 spi: hisi-kunpeng: Add validation for the minimum value of speed_hz
Merge Pull Request from: @lujunhuaHW 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). issue:https://gitee.com/openeuler/kernel/issues/I9O7EH Link:https://gitee.com/openeuler/kernel/pulls/7141 Signed-off-by:Zhang Peng <zhangpeng362@huawei.com>