Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65627
b: refs/heads/master
c: 7616ee9
h: refs/heads/master
i:
  65625: a6ecc9f
  65623: 09aaac2
v: v3
  • Loading branch information
David Vrabel authored and Pierre Ossman committed Sep 23, 2007
1 parent a45a14e commit 5ec75ca
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 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: e6f918bf39773d712ab5b457bff54ade3bda0cb1
refs/heads/master: 7616ee95f27a04fd5a6434e9ef4a82cec4b2807c
4 changes: 2 additions & 2 deletions trunk/drivers/mmc/core/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ static int sdio_read_fbr(struct sdio_func *func)
unsigned char data;

ret = mmc_io_rw_direct(func->card, 0, 0,
func->num * 0x100 + SDIO_FBR_STD_IF, 0, &data);
SDIO_FBR_BASE(func->num) + SDIO_FBR_STD_IF, 0, &data);
if (ret)
goto out;

data &= 0x0f;

if (data == 0x0f) {
ret = mmc_io_rw_direct(func->card, 0, 0,
func->num * 0x100 + SDIO_FBR_STD_IF_EXT, 0, &data);
SDIO_FBR_BASE(func->num) + SDIO_FBR_STD_IF_EXT, 0, &data);
if (ret)
goto out;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/mmc/core/sdio_cis.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ static int sdio_read_cis(struct mmc_card *card, struct sdio_func *func)
fn = 0;

ret = mmc_io_rw_direct(card, 0, 0,
fn * 0x100 + SDIO_FBR_CIS + i, 0, &x);
SDIO_FBR_BASE(fn) + SDIO_FBR_CIS + i, 0, &x);
if (ret)
return ret;
ptr |= x << (i * 8);
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/mmc/sdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@
* Function Basic Registers (FBR)
*/

#define SDIO_FBR_BASE(f) ((f) * 0x100) /* base of function f's FBRs */

#define SDIO_FBR_STD_IF 0x00

#define SDIO_FBR_SUPPORTS_CSA 0x40 /* supports Code Storage Area */
Expand Down

0 comments on commit 5ec75ca

Please sign in to comment.