Commit 500be725 authored by Kristian Høgsberg's avatar Kristian Høgsberg Committed by Stefan Richter

firewire: Log OHCI chipset version in PCI probe.

Signed-off-by: default avatarKristian Høgsberg <krh@redhat.com>
Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent b8295668
...@@ -1672,7 +1672,7 @@ static int __devinit ...@@ -1672,7 +1672,7 @@ static int __devinit
pci_probe(struct pci_dev *dev, const struct pci_device_id *ent) pci_probe(struct pci_dev *dev, const struct pci_device_id *ent)
{ {
struct fw_ohci *ohci; struct fw_ohci *ohci;
u32 bus_options, max_receive, link_speed; u32 bus_options, max_receive, link_speed, version;
u64 guid; u64 guid;
int error_code; int error_code;
size_t size; size_t size;
...@@ -1799,7 +1799,9 @@ pci_probe(struct pci_dev *dev, const struct pci_device_id *ent) ...@@ -1799,7 +1799,9 @@ pci_probe(struct pci_dev *dev, const struct pci_device_id *ent)
if (error_code < 0) if (error_code < 0)
return cleanup(ohci, CLEANUP_SELF_ID, error_code); return cleanup(ohci, CLEANUP_SELF_ID, error_code);
fw_notify("Added fw-ohci device %s.\n", dev->dev.bus_id); version = reg_read(ohci, OHCI1394_Version);
fw_notify("Added fw-ohci device %s, OHCI version %x.%x\n",
dev->dev.bus_id, (version >> 16) & 0xff, version & 0xff);
return 0; return 0;
} }
......
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