Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164715
b: refs/heads/master
c: 1887bde
h: refs/heads/master
i:
  164713: 6dd808f
  164711: 7f8dd36
v: v3
  • Loading branch information
Denis Karpov authored and Linus Torvalds committed Sep 23, 2009
1 parent 015ca34 commit 515d3e7
Show file tree
Hide file tree
Showing 3 changed files with 19 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: 5e2ea6173d71cee81e53da00911dcab8cc092acc
refs/heads/master: 1887bde391a3216789c9a03ac111d5f6ebfb0c00
15 changes: 15 additions & 0 deletions trunk/arch/arm/mach-omap2/mmc-twl4030.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,18 @@ static int twl_mmc_resume(struct device *dev, int slot)
#define twl_mmc_resume NULL
#endif

#if defined(CONFIG_ARCH_OMAP3) && defined(CONFIG_PM)

static int twl4030_mmc_get_context_loss(struct device *dev)
{
/* FIXME: PM DPS not implemented yet */
return 0;
}

#else
#define twl4030_mmc_get_context_loss NULL
#endif

static int twl_mmc1_set_power(struct device *dev, int slot, int power_on,
int vdd)
{
Expand Down Expand Up @@ -390,6 +402,9 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers)
} else
mmc->slots[0].switch_pin = -EINVAL;

mmc->get_context_loss_count =
twl4030_mmc_get_context_loss;

/* write protect normally uses an OMAP gpio */
if (gpio_is_valid(c->gpio_wp)) {
gpio_request(c->gpio_wp, "mmc_wp");
Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/arm/plat-omap/include/mach/mmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ struct omap_mmc_platform_data {
int (*suspend)(struct device *dev, int slot);
int (*resume)(struct device *dev, int slot);

/* Return context loss count due to PM states changing */
int (*get_context_loss_count)(struct device *dev);

u64 dma_mask;

struct omap_mmc_slot_data {
Expand Down

0 comments on commit 515d3e7

Please sign in to comment.