[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240730032040.3156393-1-liudingyuan@huawei.com>
Date: Tue, 30 Jul 2024 11:20:38 +0800
From: Devyn Liu <liudingyuan@...wei.com>
To: <f.fangjian@...wei.com>, <broonie@...nel.org>
CC: <linux-spi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<jonathan.cameron@...wei.com>, <salil.mehta@...wei.com>,
<shameerali.kolothum.thodi@...wei.com>, <shiju.jose@...wei.com>,
<liuyonglong@...wei.com>, <yangyicong@...wei.com>, <yisen.zhuang@...wei.com>,
<kong.kongxinwei@...ilicon.com>, <liudingyuan@...wei.com>
Subject: [PATCH 0/2] spi: hisi-kunpeng: Set verification for speed_hz and max_frequency
The speed_hz is specified by user, while the max_frequency is a
firmware-provided parameter for the SPI controller. Both are used
in the calculation of clk_div. To avoid calculation results outside
of a reasonable range and to prevent division by zero errors,
configuration for validation of speed_hz and max_frequency is added
in the code.
Devyn Liu (2):
spi: hisi-kunpeng: Add validation for the minimum value of speed_hz
spi: hisi-kunpeng: Add verification for the max_frequency provided by
the firmware
drivers/spi/spi-hisi-kunpeng.c | 4 ++++
1 file changed, 4 insertions(+)
--
2.33.0
Powered by blists - more mailing lists