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

Commit bc76e54b authored by Yue Ma's avatar Yue Ma Committed by Gerrit - the friendly Code Review server
Browse files

cnss2: Save PCIe GEN speed and width changed from device



WLAN device may adjust GEN speed and width at run time so save them
accordingly from driver.

Change-Id: I4b20909425c4606b3ee5995946c97542b9849a54
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 1b8466d0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4278,9 +4278,13 @@ static int cnss_mhi_bw_scale(struct mhi_controller *mhi_ctrl,
	if (ret)
		return ret;

	pci_priv->def_link_speed = link_info->target_link_speed;
	pci_priv->def_link_width = link_info->target_link_width;

	cnss_pr_dbg("Setting link speed:0x%x, width:0x%x\n",
		    link_info->target_link_speed,
		    link_info->target_link_width);

	return 0;
}