diff options
author | Varun Wadekar <vwadekar@nvidia.com> | 2017-12-01 14:09:52 -0500 |
---|---|---|
committer | Alexander Van Brunt <avanbrunt@nvidia.com> | 2017-12-06 16:39:32 -0500 |
commit | ae019f20468bf7baf0341e31f52588df9779aaa6 (patch) | |
tree | 002c82a228dca1b1eff1cbad8ada6570a962da8e /drivers | |
parent | 4bb70adae1001daba68f10a2f4757a73b534e76e (diff) |
platform: tegra: get MCE's major/minor version fields
The MCE version contains two fields:
major version - bits 63:32
minor version - bits 31:0
This patch fixes the code to decode the version field
and retrieve proper values for the major and minor
versions.
Change-Id: I84f68552a14d77735ceff634bca09ab690bbf90c
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1610404
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Tested-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/platform/tegra/tegra19x-mce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/tegra/tegra19x-mce.c b/drivers/platform/tegra/tegra19x-mce.c index 582a4d715..0cbd6ba2a 100644 --- a/drivers/platform/tegra/tegra19x-mce.c +++ b/drivers/platform/tegra/tegra19x-mce.c | |||
@@ -168,8 +168,8 @@ int tegra19x_mce_read_versions(u32 *major, u32 *minor) | |||
168 | 168 | ||
169 | nvg_send_req_data(TEGRA_NVG_CHANNEL_VERSION, 0); | 169 | nvg_send_req_data(TEGRA_NVG_CHANNEL_VERSION, 0); |
170 | version = nvg_get_response(); | 170 | version = nvg_get_response(); |
171 | *major = (u32)version; | 171 | *minor = (u32)version; |
172 | *minor = (u32)(version >> 32); | 172 | *major = (u32)(version >> 32); |
173 | 173 | ||
174 | /* enable preemption */ | 174 | /* enable preemption */ |
175 | preempt_enable(); | 175 | preempt_enable(); |