Skip to content
Unverified Commit f276aacf authored by Janne Grunau's avatar Janne Grunau Committed by Mark Brown
Browse files

spi: Use a 32-bit DT property for spi-cs-setup-delay-ns



65us is not a reasonable maximum for this property, as some devices
might need a much longer setup time (e.g. those driven by firmware on
the other end). Plus, device tree property values are in 32-bit cells
and smaller widths should not be used without good reason.

Also move the logic to a helper function, since this will later be used
to parse other CS delay properties too.

Fixes: 33a2fde5 ("spi: Introduce spi-cs-setup-ns property")
Signed-off-by: default avatarJanne Grunau <j@jannau.net>
Signed-off-by: default avatarHector Martin <marcan@marcan.st>
Link: https://lore.kernel.org/r/20230113102309.18308-2-marcan@marcan.st


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e0fe6a31
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment