]> err.no Git - linux-2.6/commitdiff
firewire: Log OHCI chipset version in PCI probe.
authorKristian Høgsberg <krh@redhat.com>
Fri, 16 Feb 2007 22:34:43 +0000 (17:34 -0500)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 9 Mar 2007 21:03:00 +0000 (22:03 +0100)
Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-ohci.c

index c0ab868b9fe47e8ac7ef42693e16db02121c876c..d601ec7ff4d5b00f23aa2a705fdbc29a7a8e24fd 100644 (file)
@@ -1672,7 +1672,7 @@ static int __devinit
 pci_probe(struct pci_dev *dev, const struct pci_device_id *ent)
 {
        struct fw_ohci *ohci;
-       u32 bus_options, max_receive, link_speed;
+       u32 bus_options, max_receive, link_speed, version;
        u64 guid;
        int error_code;
        size_t size;
@@ -1799,7 +1799,9 @@ pci_probe(struct pci_dev *dev, const struct pci_device_id *ent)
        if (error_code < 0)
                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;
 }