Skip to content

Commit 25bbcfd

Browse files
committed
fixup! xhci-pci: asmedia: Add a firmware loader for ASM2214a chips
1 parent 8d5d070 commit 25bbcfd

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ static int asmedia_read_reg(struct usb_hcd *hcd, u16 addr, u8 *val) {
193193
u8 status;
194194
int ret;
195195

196-
ret = readb_poll_timeout(regs + ASMT_REG_STATUS,
197-
status, !(status & ASMT_REG_STATUS_BUSY),
196+
ret = readb_poll_timeout(regs + ASMT_REG_STATUS, status,
197+
!(status & ASMT_REG_STATUS_BUSY),
198198
1000, TIMEOUT_USEC);
199199

200200
if (ret) {
@@ -205,8 +205,8 @@ static int asmedia_read_reg(struct usb_hcd *hcd, u16 addr, u8 *val) {
205205

206206
writew_relaxed(addr, regs + ASMT_REG_ADDR);
207207

208-
ret = readb_poll_timeout(regs + ASMT_REG_STATUS,
209-
status, !(status & ASMT_REG_STATUS_BUSY),
208+
ret = readb_poll_timeout(regs + ASMT_REG_STATUS, status,
209+
!(status & ASMT_REG_STATUS_BUSY),
210210
1000, TIMEOUT_USEC);
211211

212212
if (ret) {
@@ -226,8 +226,8 @@ static int asmedia_write_reg(struct usb_hcd *hcd, u16 addr, u8 data, bool wait)
226226

227227
writew_relaxed(addr, regs + ASMT_REG_ADDR);
228228

229-
ret = readb_poll_timeout(regs + ASMT_REG_STATUS,
230-
status, !(status & ASMT_REG_STATUS_BUSY),
229+
ret = readb_poll_timeout(regs + ASMT_REG_STATUS, status,
230+
!(status & ASMT_REG_STATUS_BUSY),
231231
1000, TIMEOUT_USEC);
232232

233233
if (ret) {
@@ -239,8 +239,8 @@ static int asmedia_write_reg(struct usb_hcd *hcd, u16 addr, u8 data, bool wait)
239239

240240
writeb_relaxed(data, regs + ASMT_REG_WDATA);
241241

242-
ret = readb_poll_timeout(regs + ASMT_REG_STATUS,
243-
status, !(status & ASMT_REG_STATUS_BUSY),
242+
ret = readb_poll_timeout(regs + ASMT_REG_STATUS, status,
243+
!(status & ASMT_REG_STATUS_BUSY),
244244
1000, TIMEOUT_USEC);
245245

246246
if (ret) {

0 commit comments

Comments
 (0)