Skip to content

Commit 610a1ae

Browse files
committed
fixup! xhci-pci: asmedia: Add a firmware loader for ASM2214a chips
1 parent 199fa12 commit 610a1ae

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

drivers/usb/host/xhci-pci-asmedia.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ static int asmedia_mbox_tx(struct pci_dev *pdev, u64 data)
8484

8585
pci_write_config_dword(pdev, ASMT_CFG_DATA_WRITE0, data);
8686
pci_write_config_dword(pdev, ASMT_CFG_DATA_WRITE1, data >> 32);
87-
pci_write_config_byte(pdev, ASMT_CFG_CONTROL,
88-
ASMT_CFG_CONTROL_WRITE);
87+
pci_write_config_byte(pdev, ASMT_CFG_CONTROL, ASMT_CFG_CONTROL_WRITE);
8988

9089
return 0;
9190
}
@@ -110,8 +109,7 @@ static int asmedia_mbox_rx(struct pci_dev *pdev, u64 *data)
110109

111110
pci_read_config_dword(pdev, ASMT_CFG_DATA_READ0, &low);
112111
pci_read_config_dword(pdev, ASMT_CFG_DATA_READ1, &high);
113-
pci_write_config_byte(pdev, ASMT_CFG_CONTROL,
114-
ASMT_CFG_CONTROL_READ);
112+
pci_write_config_byte(pdev, ASMT_CFG_CONTROL, ASMT_CFG_CONTROL_READ);
115113

116114
*data = ((u64)high << 32) | low;
117115
return 0;

0 commit comments

Comments
 (0)