summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJonas Rebmann <jre@pengutronix.de>2026-09-14 17:35:59 +0200
committerMark Brown <broonie@kernel.org>2026-10-06 17:30:43 +0200
commita3df049084c7277ae55284d5d8a788b5495ffe46 (patch)
tree7c662791c5b1376c72157abed0fd99ea91460396 /include/linux
parentb8f09251da7871fbb9c62bd83516af422641d816 (diff)
spi: spi-sun4i: sun4i_spi_transfer_one(): add error handling at clock setup
Bail out if clk_get_rate() or clk_set_rate() fail during sun4i_spi_transfer_one(). This might happen if the clock isn't known yet or fails to set the requested rate. This also ensures that mclk_rate is nonzero and can be safely divided by in a future commit. Signed-off-by: Jonas Rebmann <jre@pengutronix.de> Link: https://patch.msgid.link/20260914-spi-sun4i-fixes-v3-5-9fe919d5cecf@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions