Commit 51f82bc0 authored by Pierre Ossman's avatar Pierre Ossman Committed by Russell King
Browse files

[MMC] sdhci: print device id

As sdhci is a generic driver, it is helpful to see some more specific
identification of the actual hardware in dmesg.  PCI vendor, device and
revision is sufficient in most cases.
Signed-off-by: default avatarPierre Ossman <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarRussell King <>
parent 8ef1a143
......@@ -1151,13 +1151,18 @@ static int __devinit sdhci_probe(struct pci_dev *pdev,
const struct pci_device_id *ent)
int ret, i;
u8 slots;
u8 slots, rev;
struct sdhci_chip *chip;
BUG_ON(pdev == NULL);
BUG_ON(ent == NULL);
DBG("found at %s\n", pci_name(pdev));
pci_read_config_byte(pdev, PCI_CLASS_REVISION, &rev);
": SDHCI controller found at %s [%04x:%04x] (rev %x)\n",
pci_name(pdev), (int)pdev->vendor, (int)pdev->device,
ret = pci_read_config_byte(pdev, PCI_SLOT_INFO, &slots);
if (ret)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment