Re: [PATCH 1/2] spi: pxa2xx: Set the max_speed_hz of the master

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jarkko Nikula <jarkko.nikula@xxxxxxxxxxxxxxx> writes:

> Carry input clock of the controller in max_speed_hz of struct spi_master
> instead of in own driver data. They mean the same thing and more over now
> the max_speed_hz is not even set here.
>
> As an added bonus this allows SPI core to validate that transfer speed is
> not beyond the maximum input clock. This is not a problem in spi-pxa2xx as
> the driver doesn't use transfer speed parameter directly but via input
> clock divider calculation which will top at divide by one. However it's
> better to validate speed before passing it here.
>
> Signed-off-by: Jarkko Nikula <jarkko.nikula@xxxxxxxxxxxxxxx>
Acked-by: Robert Jarzmik <robert.jarzmik@xxxxxxx>

Cheers.

--
Robert
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux