Message ID | 20240730032040.3156393-2-liudingyuan@huawei.com |
---|---|
State | Accepted |
Commit | c3c4f22b7c814a6ee485ce294065836f8ede30fa |
Headers | show |
Series | spi: hisi-kunpeng: Set verification for speed_hz and max_frequency | expand |
diff --git a/drivers/spi/spi-hisi-kunpeng.c b/drivers/spi/spi-hisi-kunpeng.c index 77e9738e42f6..6910b4d4c427 100644 --- a/drivers/spi/spi-hisi-kunpeng.c +++ b/drivers/spi/spi-hisi-kunpeng.c @@ -495,6 +495,7 @@ static int hisi_spi_probe(struct platform_device *pdev) host->transfer_one = hisi_spi_transfer_one; host->handle_err = hisi_spi_handle_err; host->dev.fwnode = dev->fwnode; + host->min_speed_hz = DIV_ROUND_UP(host->max_speed_hz, CLK_DIV_MAX); hisi_spi_hw_init(hs);