diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2019-11-08 15:07:43 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-11-08 18:44:49 +0100 |
commit | 8f16292d8b492ca6b0d58ac0769de1c1a7bbb544 (patch) | |
tree | 8b31146a9b943671949b6b999d3c6372a7a7754a /drivers/spi/spi-butterfly.c | |
parent | spi: zynq-qspi: Clarify the select chip function (diff) | |
download | linux-8f16292d8b492ca6b0d58ac0769de1c1a7bbb544.tar.xz linux-8f16292d8b492ca6b0d58ac0769de1c1a7bbb544.zip |
spi: zynq-qspi: Do the actual hardware initialization later in the probe
Supporting more than one CS will need some tweaking of the linear
configuration register which is (rightfully) initialized in the
hardware initialization helper. The extra initialization needs the
knowledge of the actual number of CS, which is retrieved by reading
the value of the num-cs DT property.
As the initialization helper is called pretty early and might be
called much later in the probe without side effect, let's delay it a
bit so that the number of CS will be available when running this
helper. This way, adding support for multiple CS lines in a next patch
will be eased.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20191108140744.1734-7-miquel.raynal@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-butterfly.c')
0 files changed, 0 insertions, 0 deletions