Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa81e4aa authored by Mohammed Siddiq's avatar Mohammed Siddiq
Browse files

cnss2: Add code to update cnss soc info



Add code to update cnss soc info from the info
received as part of target capability response.

Change-Id: I6b88192d772dd30a8aaeb90725141c7c38b2c50c
Signed-off-by: default avatarMohammed Siddiq <msiddiq@codeaurora.org>
parent 4e1c68c5
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -3355,7 +3355,14 @@ int cnss_get_soc_info(struct device *dev, struct cnss_soc_info *info)

	info->va = pci_priv->bar;
	info->pa = pci_resource_start(pci_priv->pci_dev, PCI_BAR_NUM);

	info->chip_id = plat_priv->chip_info.chip_id;
	info->chip_family = plat_priv->chip_info.chip_family;
	info->board_id = plat_priv->board_info.board_id;
	info->soc_id = plat_priv->soc_info.soc_id;
	info->fw_version = plat_priv->fw_version_info.fw_version;
	strlcpy(info->fw_build_timestamp,
		plat_priv->fw_version_info.fw_build_timestamp,
		sizeof(info->fw_build_timestamp));
	memcpy(&info->device_version, &plat_priv->device_version,
	       sizeof(info->device_version));