Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267427
b: refs/heads/master
c: 459f059
h: refs/heads/master
i:
  267425: d904885
  267423: 6b5fbb8
v: v3
  • Loading branch information
Roland Vossen authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent 8d851ff commit db78973
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 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: 9e631b8c80bc4f57e1f40ddb02edc98f8cb980a4
refs/heads/master: 459f059a44062202717821f50d1edc58bd166eb1
20 changes: 9 additions & 11 deletions trunk/drivers/staging/brcm80211/brcmfmac/dhd_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@
#include <soc.h>
#include "sdio_host.h"

/* register access macros */
#define R_REG(r, typ) \
brcmf_sdcard_reg_read(NULL, (r), sizeof(typ))

#define OR_REG(r, v, typ) \
brcmf_sdcard_reg_write(NULL, (r), sizeof(typ), R_REG(r, typ) | (v))

#ifdef BCMDBG

/* ARM trap handling */
Expand Down Expand Up @@ -896,7 +889,8 @@ r_sdreg32(struct brcmf_bus *bus, u32 *regvar, u32 reg_offset, u32 *retryvar)
{
*retryvar = 0;
do {
*regvar = R_REG(bus->ci->buscorebase + reg_offset, u32);
*regvar = brcmf_sdcard_reg_read(NULL,
bus->ci->buscorebase + reg_offset, sizeof(u32));
} while (brcmf_sdcard_regfail(bus->card) &&
(++(*retryvar) <= retry_limit));
if (*retryvar) {
Expand Down Expand Up @@ -5618,6 +5612,8 @@ brcmf_sdbrcm_probe_attach(struct brcmf_bus *bus, void *card, u32 regsva,
{
u8 clkctl = 0;
int err = 0;
int reg_addr;
u32 reg_val;

bus->alp_only = true;

Expand Down Expand Up @@ -5684,9 +5680,11 @@ brcmf_sdbrcm_probe_attach(struct brcmf_bus *bus, void *card, u32 regsva,
}

/* Set core control so an SDIO reset does a backplane reset */
OR_REG(bus->ci->buscorebase + offsetof(struct sdpcmd_regs,
corecontrol),
CC_BPRESEN, u32);
reg_addr = bus->ci->buscorebase +
offsetof(struct sdpcmd_regs, corecontrol);
reg_val = brcmf_sdcard_reg_read(NULL, reg_addr, sizeof(u32));
brcmf_sdcard_reg_write(NULL, reg_addr, sizeof(u32),
reg_val | CC_BPRESEN);

brcmu_pktq_init(&bus->txq, (PRIOMASK + 1), TXQLEN);

Expand Down

0 comments on commit db78973

Please sign in to comment.