]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: tegra114: Don't fail set_cs_timing when delays are zero
authorAaron Kling <webgeek1234@gmail.com>
Sat, 6 Sep 2025 03:37:10 +0000 (23:37 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Sep 2025 16:54:20 +0000 (18:54 +0200)
commit4d75582dff258686e3ece9097c2d881dfca5fed3
treef83b5dc7d516bc7c0a3fbdd152a844e21cd3ab58
parentbb9fd28ef0241f0d42875eb7ebad438377ffe399
spi: tegra114: Don't fail set_cs_timing when delays are zero

[ Upstream commit 4426e6b4ecf632bb75d973051e1179b8bfac2320 ]

The original code would skip null delay pointers, but when the pointers
were converted to point within the spi_device struct, the check was not
updated to skip delays of zero. Hence all spi devices that didn't set
delays would fail to probe.

Fixes: 04e6bb0d6bb1 ("spi: modify set_cs_timing parameter")
Cc: stable@vger.kernel.org
Signed-off-by: Aaron Kling <webgeek1234@gmail.com>
Link: https://patch.msgid.link/20250423-spi-tegra114-v1-1-2d608bcc12f9@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-tegra114.c