Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312840
b: refs/heads/master
c: bd6a8c3
h: refs/heads/master
v: v3
  • Loading branch information
Philip Rakity authored and Chris Ball committed Jul 22, 2012
1 parent 3879fe7 commit f6f69f6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 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: 4dc5a79f1350718ac31e4ab87eebce112b117a34
refs/heads/master: bd6a8c30faf19b4e7abace93fb89efd6d72607ec
8 changes: 5 additions & 3 deletions trunk/drivers/mmc/host/sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2584,7 +2584,7 @@ EXPORT_SYMBOL_GPL(sdhci_alloc_host);
int sdhci_add_host(struct sdhci_host *host)
{
struct mmc_host *mmc;
u32 caps[2];
u32 caps[2] = {0, 0};
u32 max_current_caps;
unsigned int ocr_avail;
int ret;
Expand Down Expand Up @@ -2614,8 +2614,10 @@ int sdhci_add_host(struct sdhci_host *host)
caps[0] = (host->quirks & SDHCI_QUIRK_MISSING_CAPS) ? host->caps :
sdhci_readl(host, SDHCI_CAPABILITIES);

caps[1] = (host->version >= SDHCI_SPEC_300) ?
sdhci_readl(host, SDHCI_CAPABILITIES_1) : 0;
if (host->version >= SDHCI_SPEC_300)
caps[1] = (host->quirks & SDHCI_QUIRK_MISSING_CAPS) ?
host->caps1 :
sdhci_readl(host, SDHCI_CAPABILITIES_1);

if (host->quirks & SDHCI_QUIRK_FORCE_DMA)
host->flags |= SDHCI_USE_SDMA;
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/linux/mmc/sdhci.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ struct sdhci_host {

struct timer_list timer; /* Timer for timeouts */

unsigned int caps; /* Alternative capabilities */
unsigned int caps; /* Alternative CAPABILITY_0 */
unsigned int caps1; /* Alternative CAPABILITY_1 */

unsigned int ocr_avail_sdio; /* OCR bit masks */
unsigned int ocr_avail_sd;
Expand Down

0 comments on commit f6f69f6

Please sign in to comment.