Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2465c80

Browse files
sameersaurabh10davem330
authored andcommitted
atlantic: Fix to display FW bundle version instead of FW mac version.
The correct way to reflect firmware version is to use bundle version. Hence populating the same instead of MAC fw version. Fixes: c1be0bf ("net: atlantic: common functions needed for basic A2 init/deinit hw_ops") Signed-off-by: Sameer Saurabh <[email protected]> Signed-off-by: Sudarsana Reddy Kalluru <[email protected]> Signed-off-by: Igor Russkikh <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent aa685ac commit 2465c80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2_utils_fw.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,9 @@ u32 hw_atl2_utils_get_fw_version(struct aq_hw_s *self)
500500
hw_atl2_shared_buffer_read_safe(self, version, &version);
501501

502502
/* A2 FW version is stored in reverse order */
503-
return version.mac.major << 24 |
504-
version.mac.minor << 16 |
505-
version.mac.build;
503+
return version.bundle.major << 24 |
504+
version.bundle.minor << 16 |
505+
version.bundle.build;
506506
}
507507

508508
int hw_atl2_utils_get_action_resolve_table_caps(struct aq_hw_s *self,

0 commit comments

Comments
 (0)