]> git.baikalelectronics.ru Git - kernel.git/commit
spi: img-spfi: fix support for speeds up to 1/4th input clock
authorSifan Naeem <sifan.naeem@imgtec.com>
Thu, 18 Jun 2015 12:50:54 +0000 (13:50 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 22 Jun 2015 15:19:31 +0000 (16:19 +0100)
commitd131c9c5c7ad92dc307224228d0011383b11421e
tree7ad49fc3971861c2df6fb53fd863db1431a34417
parentce88222e1fb53c38d3b94c3b5ceebe1d2ab4956d
spi: img-spfi: fix support for speeds up to 1/4th input clock

Setting the Same Edge bit indicates to the spfi block to receive and
transmit data on the same edge of the spfi clock, which in turn
doubles the operating frequency of spfi.

The maximum supported frequency is limited to 1/4th of the spfi input
clock, but without this bit set the maximum would be 1/8th of the
input clock.

The current driver calculates the divisor with maximum speed at 1/4th
of the input clock, this would fail if the requested frequency is
higher than 1/8 of the input clock. Any requests for 1/8th of the
input clock would still pass.

Fixes: 71389dba44a3 ("spi: img-spfi: Limit bit clock to 1/4th of input clock")
Signed-off-by: Sifan Naeem <sifan.naeem@imgtec.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: <stable@vger.kernel.org>
drivers/spi/spi-img-spfi.c