diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/usb/early | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/usb/early')
-rw-r--r-- | drivers/usb/early/Makefile | 2 | ||||
-rw-r--r-- | drivers/usb/early/ehci-dbgp.c | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/drivers/usb/early/Makefile b/drivers/usb/early/Makefile index dfedee8c45b6..24bbe519c737 100644 --- a/drivers/usb/early/Makefile +++ b/drivers/usb/early/Makefile | |||
@@ -2,4 +2,4 @@ | |||
2 | # Makefile for early USB devices | 2 | # Makefile for early USB devices |
3 | # | 3 | # |
4 | 4 | ||
5 | obj-$(CONFIG_EARLY_PRINTK_DBGP) += ehci-dbgp.o | 5 | obj-$(CONFIG_EARLY_PRINTK_DBGP) += ehci-dbgp.o |
diff --git a/drivers/usb/early/ehci-dbgp.c b/drivers/usb/early/ehci-dbgp.c index 94ecdbc758ce..1fc8f1249806 100644 --- a/drivers/usb/early/ehci-dbgp.c +++ b/drivers/usb/early/ehci-dbgp.c | |||
@@ -102,6 +102,9 @@ static struct kgdb_io kgdbdbgp_io_ops; | |||
102 | #define dbgp_kgdb_mode (0) | 102 | #define dbgp_kgdb_mode (0) |
103 | #endif | 103 | #endif |
104 | 104 | ||
105 | /* Local version of HC_LENGTH macro as ehci struct is not available here */ | ||
106 | #define EARLY_HC_LENGTH(p) (0x00ff & (p)) /* bits 7 : 0 */ | ||
107 | |||
105 | /* | 108 | /* |
106 | * USB Packet IDs (PIDs) | 109 | * USB Packet IDs (PIDs) |
107 | */ | 110 | */ |
@@ -601,7 +604,7 @@ try_again: | |||
601 | dbgp_printk("dbgp_bulk_write failed: %d\n", ret); | 604 | dbgp_printk("dbgp_bulk_write failed: %d\n", ret); |
602 | goto err; | 605 | goto err; |
603 | } | 606 | } |
604 | dbgp_printk("small write doned\n"); | 607 | dbgp_printk("small write done\n"); |
605 | dbgp_not_safe = 0; | 608 | dbgp_not_safe = 0; |
606 | 609 | ||
607 | return 0; | 610 | return 0; |
@@ -648,7 +651,7 @@ static int ehci_reset_port(int port) | |||
648 | if (!(portsc & PORT_CONNECT)) | 651 | if (!(portsc & PORT_CONNECT)) |
649 | return -ENOTCONN; | 652 | return -ENOTCONN; |
650 | 653 | ||
651 | /* bomb out completely if something weird happend */ | 654 | /* bomb out completely if something weird happened */ |
652 | if ((portsc & PORT_CSC)) | 655 | if ((portsc & PORT_CSC)) |
653 | return -EINVAL; | 656 | return -EINVAL; |
654 | 657 | ||
@@ -892,7 +895,7 @@ int __init early_dbgp_init(char *s) | |||
892 | dbgp_printk("ehci_bar: %p\n", ehci_bar); | 895 | dbgp_printk("ehci_bar: %p\n", ehci_bar); |
893 | 896 | ||
894 | ehci_caps = ehci_bar; | 897 | ehci_caps = ehci_bar; |
895 | ehci_regs = ehci_bar + HC_LENGTH(readl(&ehci_caps->hc_capbase)); | 898 | ehci_regs = ehci_bar + EARLY_HC_LENGTH(readl(&ehci_caps->hc_capbase)); |
896 | ehci_debug = ehci_bar + offset; | 899 | ehci_debug = ehci_bar + offset; |
897 | ehci_dev.bus = bus; | 900 | ehci_dev.bus = bus; |
898 | ehci_dev.slot = slot; | 901 | ehci_dev.slot = slot; |