Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186772
b: refs/heads/master
c: b1b7621
h: refs/heads/master
v: v3
  • Loading branch information
Larry Finger authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent cc39223 commit d534bbc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5dd8acc8fd6b0476a2dc49bc6de4712d22c368c0
refs/heads/master: b1b7621b08e49638aa65b5f67cdd35478f00a4c4
37 changes: 0 additions & 37 deletions trunk/drivers/staging/rtl8187se/r8180_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3165,43 +3165,6 @@ void write_phy_cck (struct net_device *dev, u8 adr, u32 data)
rtl8185_write_phy(dev, adr, data | 0x10000);
}

/* 70*3 = 210 ms
* I hope this is enougth
*/
#define MAX_PHY 70
void write_phy(struct net_device *dev, u8 adr, u8 data)
{
u32 phy;
int i;

phy = 0xff0000;
phy |= adr;
phy |= 0x80; /* this should enable writing */
phy |= (data<<8);

//PHY_ADR, PHY_R and PHY_W are contig and treated as one dword
write_nic_dword(dev,PHY_ADR, phy);

phy= 0xffff00;
phy |= adr;

write_nic_dword(dev,PHY_ADR, phy);
for(i=0;i<MAX_PHY;i++){
phy=read_nic_dword(dev,PHY_ADR);
phy= phy & 0xff0000;
phy= phy >> 16;
if(phy == data){ //SUCCESS!
force_pci_posting(dev);
mdelay(3); //random value
return;
}else{
force_pci_posting(dev);
mdelay(3); //random value
}
}
DMESGW ("Phy writing %x %x failed!", adr,data);
}

void rtl8185_set_rate(struct net_device *dev)
{
int i;
Expand Down

0 comments on commit d534bbc

Please sign in to comment.