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

Commit 747125db authored by Mika Westerberg's avatar Mika Westerberg
Browse files

thunderbolt: Drop unnecessary read when writing LC command in Ice Lake



The read is not needed as we overwrite the returned value in the next
line anyway so drop it.

Fixes: 3cdb9446 ("thunderbolt: Add support for Intel Ice Lake")
Reported-by: default avatarNicholas Johnson <nicholas.johnson-opensource@outlook.com.au>
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 6f670973
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -80,7 +80,6 @@ static void icl_nhi_lc_mailbox_cmd(struct tb_nhi *nhi, enum icl_lc_mailbox_cmd c
{
	u32 data;

	pci_read_config_dword(nhi->pdev, VS_CAP_19, &data);
	data = (cmd << VS_CAP_19_CMD_SHIFT) & VS_CAP_19_CMD_MASK;
	pci_write_config_dword(nhi->pdev, VS_CAP_19, data | VS_CAP_19_VALID);
}