Drivers for 4.11:

 - atmel-ebi: Fix ns <-> cycles conversions
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEl0I5XWmUIrwBfFMm2KKDO9oT4sIFAlh+dvwACgkQ2KKDO9oT
4sJ1CA//YspN0Xv556gwHauQQXgM8uvwb2hF2sVHNEOuAnLaeEi4sOYgsWBN1n6B
/Z/dErjkg/4uCEnhOrxDaoYcwjiayqB+dEFWf7LrONASvbubbOJC4qIpuzs367Do
d6l5Wf1ctOS/yjbLefynCd4cb8omfdTg0uHhLBLWV+ezgjydmuupN7+t84LW4b9b
7VXgAS/IfuWY2+W3Ql752moC0siAfApLMvY2neD80VyXomwEA6YGg8iDt8HUhHJE
5DikU8CK4ooD27W38nAg/jJBGBzE7FUUWlUu8qon0GpRfWfMieFCKt48mj3JqrgE
UhpN0KU+04z3yZiZAzqx/SLMuFYpaec6tKFxnIQqDW+piL6LeWDgpssAJns6gHi9
1Tz5oiRdLiU37cB2SBiMv/QgTyVZzGhwd3bhooYlVIMRr4KvWKUW0KjLDBBbFYRq
6/zhYdMJh2+7uNJvugsd+9B7ad5HgxPssHr/+5RrYmI02jyTRJZD0twc85wKj8ok
FWklEw87nePVdHRT6jEm7AGToPQ+Zpeh/nIoxpAs/oy6qcdNFyqDBkkcwgznZcNu
kkUk8sItl+4A+R881t1Fh0GcAhTM/Ifw/G7VY9vxBeA1xFTwrHOm8D6wKj1lllx/
0lxJ1kqmSwF+cdKeOsF2tl47n+0JtjIBC2j0QlQPnSnYqGR1fxg=
=iuNS
-----END PGP SIGNATURE-----
memory/atmel-ebi: Fix ns <-> cycles conversions

at91sam9_ebi_get_config() is incorrectly converting timings in clock
cycles into timings in nanoseconds by multiplying the cycle values by
the clk rate instead of the clk period.

at91sam9_ebi_xslate_config() has the same problem for the
tdf_ns -> tdf_cycles conversion.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: Chris Leahy <leahycm@gmail.com>
Fixes: 6a4ec4cd0888 ("memory: add Atmel EBI (External Bus Interface) driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
1 file changed