mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] spi: hisi-kunpeng: Set verification for speed_hz and max_frequency
@ 2024-07-30  3:20 Devyn Liu
  2024-07-30  3:20 ` [PATCH 1/2] spi: hisi-kunpeng: Add validation for the minimum value of speed_hz Devyn Liu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Devyn Liu @ 2024-07-30  3:20 UTC (permalink / raw)
  To: f.fangjian, broonie
  Cc: linux-spi, linux-kernel, jonathan.cameron, salil.mehta,
	shameerali.kolothum.thodi, shiju.jose, liuyonglong, yangyicong,
	yisen.zhuang, kong.kongxinwei, liudingyuan

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-07-30 16:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-30  3:20 [PATCH 0/2] spi: hisi-kunpeng: Set verification for speed_hz and max_frequency Devyn Liu
2024-07-30  3:20 ` [PATCH 1/2] spi: hisi-kunpeng: Add validation for the minimum value of speed_hz Devyn Liu
2024-07-30  3:20 ` [PATCH 2/2] spi: hisi-kunpeng: Add verification for the max_frequency provided by the firmware Devyn Liu
2024-07-30 16:03 ` [PATCH 0/2] spi: hisi-kunpeng: Set verification for speed_hz and max_frequency Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®