summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorNarendra Damahe <ndamahe@nvidia.com>2010-10-04 16:37:22 -0700
committerVarun Colbert <vcolbert@nvidia.com>2010-10-25 17:56:10 -0700
commit698bc80acdd4b236cc26ff499803644b18fb4f31 (patch)
treee7d3ddd91143efd6178dd3bc9d48aaa9e92a8c94 /arch
parent23f84abfd5691e6457695d54e989f698d7375b8c (diff)
[arm/tegra]ventana ODM:getBoardInfo() correction
corrected the function which was not returning correct board id causing emc dfs to not scale after resuming from suspend. Change-Id: Iea1a8e8241ccca45d6b7961f82175c37f33f25fb Reviewed-on: http://git-master/r/7786 Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Tested-by: Narendra Damahe <ndamahe@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/odm_kit/query/ventana/nvodm_query_discovery.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/odm_kit/query/ventana/nvodm_query_discovery.c b/arch/arm/mach-tegra/odm_kit/query/ventana/nvodm_query_discovery.c
index afed965e0a2f..2ac71d07b346 100644
--- a/arch/arm/mach-tegra/odm_kit/query/ventana/nvodm_query_discovery.c
+++ b/arch/arm/mach-tegra/odm_kit/query/ventana/nvodm_query_discovery.c
@@ -136,7 +136,7 @@ NvBool NvOdmPeripheralGetBoardInfo(
NvBool RetVal = NV_FALSE;
NvOdmServicesI2cHandle hOdmI2c = NULL;
NvU8 EepromInst=0;
- NvOdmBoardInfo BoardModuleTable;
+ static NvOdmBoardInfo BoardModuleTable;
static NvBool s_ReadBoardInfoDone = NV_FALSE;
if (!s_ReadBoardInfoDone)
@@ -144,7 +144,6 @@ NvBool NvOdmPeripheralGetBoardInfo(
if (!s_ReadBoardInfoDone)
{
- s_ReadBoardInfoDone = NV_TRUE;
if (!hOdmI2c)
{
// Exit
@@ -153,6 +152,8 @@ NvBool NvOdmPeripheralGetBoardInfo(
}
RetVal = NvOdmPeripheralReadPartNumber(
hOdmI2c, EepromInst, &BoardModuleTable);
+ if (RetVal)
+ s_ReadBoardInfoDone = NV_TRUE;
}
if (hOdmI2c)
NvOdmI2cClose(hOdmI2c);