Skip to content

Commit

Permalink
igsc: lib: fix get device config function
Browse files Browse the repository at this point in the history
Check hw_sku field for SKU

Signed-off-by: Vitaly Lubart <[email protected]>
  • Loading branch information
vlubart authored and Tomas Winkler committed Jul 24, 2022
1 parent cf01b39 commit c1fd588
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/igsc_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1439,15 +1439,15 @@ static int gsc_device_hw_config(struct igsc_lib_ctx *lib_ctx,
hw_config_1->hw_step = resp->hw_step;

/* convert to firmware bit mask for easier comparison */
if (resp->hw_step == GSC_DG2_SKUID_SOC1)
if (resp->hw_sku == GSC_DG2_SKUID_SOC1)
{
hw_config_1->hw_sku = GSC_IFWI_TAG_SOC1_SKU_BIT;
}
else if (resp->hw_step == GSC_DG2_SKUID_SOC3)
else if (resp->hw_sku == GSC_DG2_SKUID_SOC3)
{
hw_config_1->hw_sku = GSC_IFWI_TAG_SOC3_SKU_BIT;
}
else if (resp->hw_step == GSC_DG2_SKUID_SOC2)
else if (resp->hw_sku == GSC_DG2_SKUID_SOC2)
{
hw_config_1->hw_sku = GSC_IFWI_TAG_SOC2_SKU_BIT;
}
Expand Down

0 comments on commit c1fd588

Please sign in to comment.