Paul Kocialkowski b3fe2e5167
spi: core: Only check bits_per_word validity when explicitly provided
On SPI device probe, the core will call spi_setup in spi_add_device
before the corresponding driver was probed. When this happens, the
bits_per_word member of the device is not yet set by the driver,
resulting in the default being set to 8 bits-per-word.

However some controllers do not support 8 bits-per-word at all, which
results in a failure when checking the bits-per-word validity.

In order to support these devices, skip the bits-per-word validity
check when it is not explicitly provided by drivers.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Link: https://lore.kernel.org/r/20220412122207.130181-1-paul.kocialkowski@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-04-12 17:17:21 +01:00
..
2022-03-25 13:35:34 -07:00
2022-01-04 14:59:40 +00:00
2022-01-07 13:36:37 +00:00
2021-07-20 13:34:05 +01:00
2021-12-23 13:38:38 +00:00
2021-12-23 13:38:39 +00:00
2021-09-01 15:25:28 -07:00
2021-09-13 02:00:26 +01:00
2022-03-25 13:35:34 -07:00
2022-04-04 08:48:37 +01:00
2022-03-08 20:07:09 +00:00
2021-08-26 12:09:38 +01:00
2022-03-15 12:03:58 +00:00