]> git.baikalelectronics.ru Git - kernel.git/commit
spi: sh-msiof: Restrict bits per word to 8/16/24/32 on R-Car Gen2/3
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 28 Feb 2019 11:05:13 +0000 (12:05 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 4 Mar 2019 00:02:28 +0000 (00:02 +0000)
commit9eb088bb198a3d0f98c08f00e9f0d1cbfcf06d32
tree3df4c9edc1e22522291c871d4508ad4c54344e20
parent1f692cf435f2675b1b3b8e1892f9c158241b2e09
spi: sh-msiof: Restrict bits per word to 8/16/24/32 on R-Car Gen2/3

While the MSIOF variants in older SuperH and SH/R-Mobile SoCs support
bits-per-word values in the full range 8..32, the variants present in
R-Car Gen2 and Gen3 SoCs are restricted to 8, 16, 24, or 32.

Obtain the value from family-specific sh_msiof_chipdata to fix this.

Reported-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sh-msiof.c