diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2010-08-25 13:10:05 +0530 |
---|---|---|
committer | Bharat Nihalani <bnihalani@nvidia.com> | 2010-09-03 00:13:17 -0700 |
commit | f08615eab12cdfbdf5f30689677ee3b53902a31a (patch) | |
tree | 7368da9b6831068dc1a3a289b95ee9d52d86f478 | |
parent | 3a7a9bcd117f8c0f09c6eb74e79b0996397bf486 (diff) |
[arm/tegra]spi:Restricting interface freq to less than requested
The maximum interface frequency configured by the spi driver should
not more than the requested interface freq.
Correcting the passed argument to behave the clock driver accordingly.
Change-Id: I6e1beea7f01fb410f5e2755406b7d4dac7fd570d
Reviewed-on: http://git-master/r/5573
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/nvrm/io/ap15/rm_spi_slink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/nvrm/io/ap15/rm_spi_slink.c b/arch/arm/mach-tegra/nvrm/io/ap15/rm_spi_slink.c index 26ceba05a8c2..cf7fd9493820 100644 --- a/arch/arm/mach-tegra/nvrm/io/ap15/rm_spi_slink.c +++ b/arch/arm/mach-tegra/nvrm/io/ap15/rm_spi_slink.c @@ -1427,8 +1427,8 @@ SetChipSelectSignalLevel( PrefClockFreqInKHz = (hRmSpiSlink->RmModuleId == NvRmModuleID_Slink)? (ClockSpeedInKHz << 2): (ClockSpeedInKHz); Error = NvRmPowerModuleClockConfig(hRmSpiSlink->hDevice, - ModuleId, 0, PrefClockFreqInKHz, - NvRmFreqUnspecified, &PrefClockFreqInKHz, + ModuleId, 0, NvRmFreqUnspecified, + PrefClockFreqInKHz, &PrefClockFreqInKHz, 1, &ConfiguredClockFreqInKHz, 0); if (Error) return Error; |