ChangeSet 1.1832.55.18, 2004/09/03 13:32:12+02:00, [EMAIL PROTECTED]

[PATCH] HCD PCI probe: print actual, not ioremapped, address

I think the USB HCD should print the actual PCI memory address, not the
ioremapped address.  AFAIK, there's no reason the ioremapped address has
to have any fixed relationship to the actual address.  Also, this makes
it match what's in /proc/iomem.  I also added a leading "0x".  Example
from ia64:

    - ehci_hcd 0000:00:01.2: irq 52, pci mem c000000080021000
    + ehci_hcd 0000:00:01.2: irq 52, pci mem 0x80021000



USB HCD: print actual PCI mem address, not the ioremapped value.

Signed-off-by: Bjorn Helgaas <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>


 drivers/usb/core/hcd-pci.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c
--- a/drivers/usb/core/hcd-pci.c        2004-10-19 08:18:51 -07:00
+++ b/drivers/usb/core/hcd-pci.c        2004-10-19 08:18:51 -07:00
@@ -188,9 +188,9 @@
        }
        hcd->irq = dev->irq;
 
-       dev_info (hcd->self.controller, "irq %s, %s %p\n", bufp,
+       dev_info (hcd->self.controller, "irq %s, %s 0x%lx\n", bufp,
                (driver->flags & HCD_MEMORY) ? "pci mem" : "io base",
-               base);
+               resource);
 
        usb_bus_init (&hcd->self);
        hcd->self.op = &usb_hcd_operations;



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to