fsi: Add mechanism to set the tSendDelay and tEchoDelay values
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 29 May 2018 05:01:07 +0000 (15:01 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 12 Jul 2018 01:59:13 +0000 (11:59 +1000)
commita2e7da86cc392417b0d9f605b28038aae80b002f
tree67055b97934d16fe02af373a2178a52b66eca24a
parent935f9636389f0acd96e6ebcbc7d97425b84163b5
fsi: Add mechanism to set the tSendDelay and tEchoDelay values

Those values control the amount of "dummy" clocks between commands and
between a command and its response.

This adds a way to configure them from sysfs (to be later extended to
defaults in the device-tree). The default remains 16 (the HW default).

This is only supported if the backend supports the new link_config()
callback to configure the generation of those delays.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
---
drivers/fsi/fsi-core.c
drivers/fsi/fsi-master.h