Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354518
b: refs/heads/master
c: 2c370d9
h: refs/heads/master
v: v3
  • Loading branch information
Peter Huewe authored and Greg Kroah-Hartman committed Feb 15, 2013
1 parent 99e73b9 commit 39f852f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 24 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: 8a26aefda17d7fdf0bdfb505b6366a7051e7fb1a
refs/heads/master: 2c370d9512c4ea0929e87cb18a2308d9422a350a
30 changes: 7 additions & 23 deletions trunk/drivers/staging/rtl8187se/r8185b_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,35 +287,19 @@ u16 RF_ReadReg(struct net_device *dev, u8 offset)
return reg;
}

static u8 ReadBBPortUchar(struct net_device *dev, u32 addr)
{
PlatformIOWrite4Byte(dev, PhyAddr, addr & 0xffffff7f);
return PlatformIORead1Byte(dev, PhyDataR);
}

/* by Owen on 04/07/14 for writing BB register successfully */
void WriteBBPortUchar(struct net_device *dev, u32 Data)
static void WriteBBPortUchar(struct net_device *dev, u32 Data)
{
/* u8 TimeoutCounter; */
u8 RegisterContent;
u8 UCharData;

UCharData = (u8)((Data & 0x0000ff00) >> 8);
PlatformIOWrite4Byte(dev, PhyAddr, Data);
/* for(TimeoutCounter = 10; TimeoutCounter > 0; TimeoutCounter--) */
{
PlatformIOWrite4Byte(dev, PhyAddr, Data & 0xffffff7f);
RegisterContent = PlatformIORead1Byte(dev, PhyDataR);
/*if(UCharData == RegisterContent) */
/* break; */
}
ReadBBPortUchar(dev, Data);
}

u8 ReadBBPortUchar(struct net_device *dev, u32 addr)
{
/*u8 TimeoutCounter; */
u8 RegisterContent;

PlatformIOWrite4Byte(dev, PhyAddr, addr & 0xffffff7f);
RegisterContent = PlatformIORead1Byte(dev, PhyDataR);

return RegisterContent;
}
/*
* Description:
* Perform Antenna settings with antenna diversity on 87SE.
Expand Down

0 comments on commit 39f852f

Please sign in to comment.