Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256635
b: refs/heads/master
c: 215fa44
h: refs/heads/master
i:
  256633: 37a7f65
  256631: b41e5fb
v: v3
  • Loading branch information
Stefan Richter committed Jul 9, 2011
1 parent a2cd975 commit 9ccfeca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b14c369d87d7fbf120ad21919d34a8f1290290f1
refs/heads/master: 215fa444c2a6d571f1f915cf3dc7a8b01cc51a0a
6 changes: 6 additions & 0 deletions trunk/drivers/firewire/ohci.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,9 @@ static int read_phy_reg(struct fw_ohci *ohci, int addr)
reg_write(ohci, OHCI1394_PhyControl, OHCI1394_PhyControl_Read(addr));
for (i = 0; i < 3 + 100; i++) {
val = reg_read(ohci, OHCI1394_PhyControl);
if (!~val)
return -ENODEV; /* Card was ejected. */

if (val & OHCI1394_PhyControl_ReadDone)
return OHCI1394_PhyControl_ReadData(val);

Expand All @@ -550,6 +553,9 @@ static int write_phy_reg(const struct fw_ohci *ohci, int addr, u32 val)
OHCI1394_PhyControl_Write(addr, val));
for (i = 0; i < 3 + 100; i++) {
val = reg_read(ohci, OHCI1394_PhyControl);
if (!~val)
return -ENODEV; /* Card was ejected. */

if (!(val & OHCI1394_PhyControl_WritePending))
return 0;

Expand Down

0 comments on commit 9ccfeca

Please sign in to comment.