提交 7edda674 编写于 作者: L Likun Gao 提交者: Alex Deucher

drm/amdgpu/gfx: refine fw hdr check fuction

The return value of function amdgpu_ucode_hdr_version
doesn't make sense, so change it to return true when
fw header version is match with passed in parameters.
Signed-off-by: NWenhui Sheng <Wenhui.Sheng@amd.com>
Signed-off-by: NLikun Gao <Likun.Gao@amd.com>
Reviewed-by: NHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 619c94c3
...@@ -428,8 +428,8 @@ bool amdgpu_ucode_hdr_version(union amdgpu_firmware_header *hdr, ...@@ -428,8 +428,8 @@ bool amdgpu_ucode_hdr_version(union amdgpu_firmware_header *hdr,
{ {
if ((hdr->common.header_version_major == hdr_major) && if ((hdr->common.header_version_major == hdr_major) &&
(hdr->common.header_version_minor == hdr_minor)) (hdr->common.header_version_minor == hdr_minor))
return false; return true;
return true; return false;
} }
enum amdgpu_firmware_load_type enum amdgpu_firmware_load_type
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册