Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31660
b: refs/heads/master
c: df673b2
h: refs/heads/master
v: v3
  • Loading branch information
Pierre Ossman authored and Russell King committed Jul 2, 2006
1 parent 83cb60c commit fe4a7de
Show file tree
Hide file tree
Showing 3 changed files with 10 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: 6743527441430586aa82a0dee1b2700a2a974ebc
refs/heads/master: df673b227ce08a7706b30fd2bf6512393d9c3c29
7 changes: 7 additions & 0 deletions trunk/drivers/mmc/sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

static unsigned int debug_nodma = 0;
static unsigned int debug_forcedma = 0;
static unsigned int debug_quirks = 0;

static const struct pci_device_id pci_ids[] __devinitdata = {
/* handle any SD host controller */
Expand Down Expand Up @@ -1373,6 +1374,10 @@ static int __devinit sdhci_probe(struct pci_dev *pdev,
}

chip->pdev = pdev;
chip->quirks = ent->driver_data;

if (debug_quirks)
chip->quirks = debug_quirks;

chip->num_slots = slots;
pci_set_drvdata(pdev, chip);
Expand Down Expand Up @@ -1453,6 +1458,7 @@ module_exit(sdhci_drv_exit);

module_param(debug_nodma, uint, 0444);
module_param(debug_forcedma, uint, 0444);
module_param(debug_quirks, uint, 0444);

MODULE_AUTHOR("Pierre Ossman <drzeus@drzeus.cx>");
MODULE_DESCRIPTION("Secure Digital Host Controller Interface driver");
Expand All @@ -1461,3 +1467,4 @@ MODULE_LICENSE("GPL");

MODULE_PARM_DESC(debug_nodma, "Forcefully disable DMA transfers. (default 0)");
MODULE_PARM_DESC(debug_forcedma, "Forcefully enable DMA transfers. (default 0)");
MODULE_PARM_DESC(debug_quirks, "Force certain quirks.");
2 changes: 2 additions & 0 deletions trunk/drivers/mmc/sdhci.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ struct sdhci_host {
struct sdhci_chip {
struct pci_dev *pdev;

unsigned long quirks;

int num_slots; /* Slots on controller */
struct sdhci_host *hosts[0]; /* Pointers to hosts */
};

0 comments on commit fe4a7de

Please sign in to comment.