]> Git Repo - linux.git/commitdiff
thunderbolt: Drop unnecessary read when writing LC command in Ice Lake
authorMika Westerberg <[email protected]>
Mon, 16 Sep 2019 14:03:03 +0000 (17:03 +0300)
committerMika Westerberg <[email protected]>
Tue, 8 Oct 2019 09:08:21 +0000 (12:08 +0300)
The read is not needed as we overwrite the returned value in the next
line anyway so drop it.

Fixes: 3cdb9446a117 ("thunderbolt: Add support for Intel Ice Lake")
Reported-by: Nicholas Johnson <[email protected]>
Signed-off-by: Mika Westerberg <[email protected]>
drivers/thunderbolt/nhi_ops.c

index 61cd09cef943d3dc29630d39cf67fe151ce3c05b..6795851aac95bcbbdda27b4c1d0416cc189b26c8 100644 (file)
@@ -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);
 }
This page took 0.040789 seconds and 4 git commands to generate.