Axel Lin
052eb2d490
spi: core: Set max_speed_hz of spi_device default to max_speed_hz of controller
...
In __spi_validate(), xfer->speed_hz is set to be spi->max_speed_hz if it is not
set for this transfer. However, if spi->max_speed_hz is also not set,
xfer->speed_hz is 0. Some drivers (e.g. au1550, tegra114, tegra20-sflash,
tegra20-slink, etc.) then use below code to avoid setting xfer->speed_hz to 0.
/* Set speed to the spi max fequency if spi device has not set */
spi->max_speed_hz = spi->max_speed_hz ? : tspi->spi_max_frequency;
Let's handle it in spi core.
If spi->max_speed_hz is not set, make it default to spi->master->max_speed_hz.
So In __spi_validate() if both xfer->speed_hz and spi->max_speed_hz are not set,
xfer->speed_hz will be set to spi->master->max_speed_hz.
Signed-off-by: Axel Lin <axel.lin@ingics.com >
Signed-off-by: Mark Brown <broonie@linaro.org >
2014-02-10 12:51:54 +00:00
..
2014-01-29 11:47:18 +01:00
2013-12-09 20:25:20 +00:00
2014-01-24 15:51:02 -08:00
2013-12-26 13:31:34 -05:00
2014-01-25 13:18:00 -08:00
2014-01-30 17:20:32 -08:00
2014-01-31 08:38:18 -08:00
2014-01-08 13:44:29 -05:00
2014-01-31 15:15:13 -08:00
2014-01-30 11:40:10 -08:00
2014-01-30 10:02:54 -08:00
2014-01-28 18:44:53 -08:00
2014-01-31 21:04:01 -08:00
2013-11-14 17:19:20 -05:00
2014-01-31 09:23:52 -08:00
2014-01-29 17:02:24 +11:00
2014-01-23 18:49:36 -08:00
2014-01-29 11:48:23 +01:00
2014-01-29 20:27:23 -08:00
2014-01-20 12:10:27 -08:00
2014-01-17 14:57:29 -07:00
2014-01-09 09:53:30 +09:00
2014-01-20 01:11:13 +01:00
2014-01-27 21:02:40 -08:00
2014-01-23 18:49:36 -08:00
2014-01-29 20:49:12 -08:00
2014-01-31 09:31:14 -08:00
2014-01-27 16:40:45 -08:00
2014-02-02 17:59:07 +01:00
2014-01-29 19:56:20 -08:00
2014-01-28 23:35:09 -08:00
2014-01-24 15:51:02 -08:00
2014-01-22 21:21:55 -08:00
2014-01-31 15:31:23 -08:00
2014-01-24 17:17:30 -08:00
2014-01-29 20:00:13 -08:00
2014-01-31 14:59:28 -08:00
2014-01-25 11:17:34 -08:00
2014-01-28 18:53:01 -08:00
2014-01-27 21:11:26 -08:00
2014-01-23 16:36:53 -08:00
2014-01-30 11:40:10 -08:00
2014-01-31 09:31:14 -08:00
2014-01-23 16:37:04 -08:00
2014-01-30 11:19:05 -08:00
2014-01-25 13:19:10 -08:00
2014-01-29 18:56:27 -08:00
2014-01-26 11:00:41 -08:00
2014-01-30 20:04:09 -08:00
2014-01-30 18:44:44 -08:00
2014-01-09 01:27:20 +01:00
2013-11-26 11:15:12 -08:00
2014-01-25 11:17:34 -08:00
2014-01-20 16:05:23 -08:00
2014-02-01 10:24:31 -08:00
2014-01-22 16:39:28 -08:00
2014-01-25 11:17:34 -08:00
2014-01-23 18:45:38 -08:00
2014-01-29 20:06:01 -08:00
2014-01-12 23:48:18 +01:00
2014-01-25 11:17:34 -08:00
2013-12-22 01:27:51 +01:00
2013-11-13 12:09:35 +09:00
2014-01-15 14:51:22 -08:00
2014-01-27 08:15:51 -08:00
2014-01-25 13:19:10 -08:00
2013-11-22 21:20:36 +01:00
2014-01-23 19:11:50 -08:00
2014-01-31 08:37:32 -08:00
2014-01-28 23:38:23 -08:00
2014-01-31 15:31:23 -08:00
2013-12-07 01:24:33 +01:00
2014-02-10 12:51:54 +00:00
2014-01-30 17:20:32 -08:00
2014-02-01 10:29:59 -08:00
2014-01-31 15:31:23 -08:00
2014-01-24 17:13:49 -08:00
2014-01-30 17:20:32 -08:00
2013-12-20 08:49:17 -08:00
2014-01-29 16:53:55 +11:00
2013-12-20 12:19:44 -08:00
2014-01-27 21:11:26 -08:00
2014-01-31 15:31:23 -08:00
2014-02-02 20:56:47 +01:00
2014-01-22 22:24:35 -08:00
2014-01-23 16:36:55 -08:00
2013-12-17 17:06:19 -08:00
2014-01-23 16:37:04 -08:00
2014-01-28 21:35:40 +01:00
2014-01-31 08:38:18 -08:00
2013-11-26 11:09:09 +01:00
2013-11-14 13:41:48 +09:00
2013-12-10 16:52:18 +09:00