diff options
| author | Paul Mundt <lethal@linux-sh.org> | 2012-01-17 07:55:28 -0500 |
|---|---|---|
| committer | Paul Mundt <lethal@linux-sh.org> | 2012-01-17 07:55:28 -0500 |
| commit | 0c929238ca4baefe47f4034732db4c154f2329c6 (patch) | |
| tree | 2636079800fa045501982a70e1be0425c1b968c2 /drivers/usb | |
| parent | 6d7120a713300283a8b73e7d86cd1bab8b9d1971 (diff) | |
| parent | 78da107a7ed14fbc6ef77ff4c41d92b11edc9036 (diff) | |
Merge branch 'sh/platform-updates' into sh-latest
Diffstat (limited to 'drivers/usb')
69 files changed, 381 insertions, 95 deletions
diff --git a/drivers/usb/atm/speedtch.c b/drivers/usb/atm/speedtch.c index b42092e1f164..98dd9e49b684 100644 --- a/drivers/usb/atm/speedtch.c +++ b/drivers/usb/atm/speedtch.c | |||
| @@ -73,9 +73,9 @@ static const char speedtch_driver_name[] = "speedtch"; | |||
| 73 | #define DEFAULT_SW_BUFFERING 0 | 73 | #define DEFAULT_SW_BUFFERING 0 |
| 74 | 74 | ||
| 75 | static unsigned int altsetting = 0; /* zero means: use the default */ | 75 | static unsigned int altsetting = 0; /* zero means: use the default */ |
| 76 | static int dl_512_first = DEFAULT_DL_512_FIRST; | 76 | static bool dl_512_first = DEFAULT_DL_512_FIRST; |
| 77 | static int enable_isoc = DEFAULT_ENABLE_ISOC; | 77 | static bool enable_isoc = DEFAULT_ENABLE_ISOC; |
| 78 | static int sw_buffering = DEFAULT_SW_BUFFERING; | 78 | static bool sw_buffering = DEFAULT_SW_BUFFERING; |
| 79 | 79 | ||
| 80 | #define DEFAULT_B_MAX_DSL 8128 | 80 | #define DEFAULT_B_MAX_DSL 8128 |
| 81 | #define DEFAULT_MODEM_MODE 11 | 81 | #define DEFAULT_MODEM_MODE 11 |
diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c index 00f171a7a8a0..01ea5d7421d4 100644 --- a/drivers/usb/atm/ueagle-atm.c +++ b/drivers/usb/atm/ueagle-atm.c | |||
| @@ -542,7 +542,7 @@ static int modem_index; | |||
| 542 | static unsigned int debug; | 542 | static unsigned int debug; |
| 543 | static unsigned int altsetting[NB_MODEM] = { | 543 | static unsigned int altsetting[NB_MODEM] = { |
| 544 | [0 ... (NB_MODEM - 1)] = FASTEST_ISO_INTF}; | 544 | [0 ... (NB_MODEM - 1)] = FASTEST_ISO_INTF}; |
| 545 | static int sync_wait[NB_MODEM]; | 545 | static bool sync_wait[NB_MODEM]; |
| 546 | static char *cmv_file[NB_MODEM]; | 546 | static char *cmv_file[NB_MODEM]; |
| 547 | static int annex[NB_MODEM]; | 547 | static int annex[NB_MODEM]; |
| 548 | 548 | ||
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 3af5e2dd1d82..8df4b76465ac 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c | |||
| @@ -93,7 +93,7 @@ struct async { | |||
| 93 | u8 bulk_status; | 93 | u8 bulk_status; |
| 94 | }; | 94 | }; |
| 95 | 95 | ||
| 96 | static int usbfs_snoop; | 96 | static bool usbfs_snoop; |
| 97 | module_param(usbfs_snoop, bool, S_IRUGO | S_IWUSR); | 97 | module_param(usbfs_snoop, bool, S_IRUGO | S_IWUSR); |
| 98 | MODULE_PARM_DESC(usbfs_snoop, "true to log all usbfs traffic"); | 98 | MODULE_PARM_DESC(usbfs_snoop, "true to log all usbfs traffic"); |
| 99 | 99 | ||
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 79d339e2e700..a0613d8f9be7 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
| @@ -102,7 +102,7 @@ static DECLARE_WAIT_QUEUE_HEAD(khubd_wait); | |||
| 102 | static struct task_struct *khubd_task; | 102 | static struct task_struct *khubd_task; |
| 103 | 103 | ||
| 104 | /* cycle leds on hubs that aren't blinking for attention */ | 104 | /* cycle leds on hubs that aren't blinking for attention */ |
| 105 | static int blinkenlights = 0; | 105 | static bool blinkenlights = 0; |
| 106 | module_param (blinkenlights, bool, S_IRUGO); | 106 | module_param (blinkenlights, bool, S_IRUGO); |
| 107 | MODULE_PARM_DESC (blinkenlights, "true to cycle leds on hubs"); | 107 | MODULE_PARM_DESC (blinkenlights, "true to cycle leds on hubs"); |
| 108 | 108 | ||
| @@ -131,12 +131,12 @@ MODULE_PARM_DESC(initial_descriptor_timeout, | |||
| 131 | * otherwise the new scheme is used. If that fails and "use_both_schemes" | 131 | * otherwise the new scheme is used. If that fails and "use_both_schemes" |
| 132 | * is set, then the driver will make another attempt, using the other scheme. | 132 | * is set, then the driver will make another attempt, using the other scheme. |
| 133 | */ | 133 | */ |
| 134 | static int old_scheme_first = 0; | 134 | static bool old_scheme_first = 0; |
| 135 | module_param(old_scheme_first, bool, S_IRUGO | S_IWUSR); | 135 | module_param(old_scheme_first, bool, S_IRUGO | S_IWUSR); |
| 136 | MODULE_PARM_DESC(old_scheme_first, | 136 | MODULE_PARM_DESC(old_scheme_first, |
| 137 | "start with the old device initialization scheme"); | 137 | "start with the old device initialization scheme"); |
| 138 | 138 | ||
| 139 | static int use_both_schemes = 1; | 139 | static bool use_both_schemes = 1; |
| 140 | module_param(use_both_schemes, bool, S_IRUGO | S_IWUSR); | 140 | module_param(use_both_schemes, bool, S_IRUGO | S_IWUSR); |
| 141 | MODULE_PARM_DESC(use_both_schemes, | 141 | MODULE_PARM_DESC(use_both_schemes, |
| 142 | "try the other device initialization scheme if the " | 142 | "try the other device initialization scheme if the " |
| @@ -2026,7 +2026,7 @@ static unsigned hub_is_wusb(struct usb_hub *hub) | |||
| 2026 | #define SET_ADDRESS_TRIES 2 | 2026 | #define SET_ADDRESS_TRIES 2 |
| 2027 | #define GET_DESCRIPTOR_TRIES 2 | 2027 | #define GET_DESCRIPTOR_TRIES 2 |
| 2028 | #define SET_CONFIG_TRIES (2 * (use_both_schemes + 1)) | 2028 | #define SET_CONFIG_TRIES (2 * (use_both_schemes + 1)) |
| 2029 | #define USE_NEW_SCHEME(i) ((i) / 2 == old_scheme_first) | 2029 | #define USE_NEW_SCHEME(i) ((i) / 2 == (int)old_scheme_first) |
| 2030 | 2030 | ||
| 2031 | #define HUB_ROOT_RESET_TIME 50 /* times are in msec */ | 2031 | #define HUB_ROOT_RESET_TIME 50 /* times are in msec */ |
| 2032 | #define HUB_SHORT_RESET_TIME 10 | 2032 | #define HUB_SHORT_RESET_TIME 10 |
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index 1382c90d0834..8ca9f994a280 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c | |||
| @@ -47,7 +47,7 @@ | |||
| 47 | 47 | ||
| 48 | const char *usbcore_name = "usbcore"; | 48 | const char *usbcore_name = "usbcore"; |
| 49 | 49 | ||
| 50 | static int nousb; /* Disable USB when built into kernel image */ | 50 | static bool nousb; /* Disable USB when built into kernel image */ |
| 51 | 51 | ||
| 52 | #ifdef CONFIG_USB_SUSPEND | 52 | #ifdef CONFIG_USB_SUSPEND |
| 53 | static int usb_autosuspend_delay = 2; /* Default delay value, | 53 | static int usb_autosuspend_delay = 2; /* Default delay value, |
diff --git a/drivers/usb/gadget/amd5536udc.c b/drivers/usb/gadget/amd5536udc.c index e9a2c5c44454..c16ff55a74e8 100644 --- a/drivers/usb/gadget/amd5536udc.c +++ b/drivers/usb/gadget/amd5536udc.c | |||
| @@ -152,15 +152,15 @@ static const char *ep_string[] = { | |||
| 152 | }; | 152 | }; |
| 153 | 153 | ||
| 154 | /* DMA usage flag */ | 154 | /* DMA usage flag */ |
| 155 | static int use_dma = 1; | 155 | static bool use_dma = 1; |
| 156 | /* packet per buffer dma */ | 156 | /* packet per buffer dma */ |
| 157 | static int use_dma_ppb = 1; | 157 | static bool use_dma_ppb = 1; |
| 158 | /* with per descr. update */ | 158 | /* with per descr. update */ |
| 159 | static int use_dma_ppb_du; | 159 | static bool use_dma_ppb_du; |
| 160 | /* buffer fill mode */ | 160 | /* buffer fill mode */ |
| 161 | static int use_dma_bufferfill_mode; | 161 | static int use_dma_bufferfill_mode; |
| 162 | /* full speed only mode */ | 162 | /* full speed only mode */ |
| 163 | static int use_fullspeed; | 163 | static bool use_fullspeed; |
| 164 | /* tx buffer size for high speed */ | 164 | /* tx buffer size for high speed */ |
| 165 | static unsigned long hs_tx_buf = UDC_EPIN_BUFF_SIZE; | 165 | static unsigned long hs_tx_buf = UDC_EPIN_BUFF_SIZE; |
| 166 | 166 | ||
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index 0cd764d59351..a28f6ffcd0f3 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c | |||
| @@ -250,9 +250,9 @@ static struct usb_configuration rndis_config_driver = { | |||
| 250 | /*-------------------------------------------------------------------------*/ | 250 | /*-------------------------------------------------------------------------*/ |
| 251 | 251 | ||
| 252 | #ifdef CONFIG_USB_ETH_EEM | 252 | #ifdef CONFIG_USB_ETH_EEM |
| 253 | static int use_eem = 1; | 253 | static bool use_eem = 1; |
| 254 | #else | 254 | #else |
| 255 | static int use_eem; | 255 | static bool use_eem; |
| 256 | #endif | 256 | #endif |
| 257 | module_param(use_eem, bool, 0); | 257 | module_param(use_eem, bool, 0); |
| 258 | MODULE_PARM_DESC(use_eem, "use CDC EEM mode"); | 258 | MODULE_PARM_DESC(use_eem, "use CDC EEM mode"); |
diff --git a/drivers/usb/gadget/file_storage.c b/drivers/usb/gadget/file_storage.c index e0f30fc70e45..47766f0e7caa 100644 --- a/drivers/usb/gadget/file_storage.c +++ b/drivers/usb/gadget/file_storage.c | |||
| @@ -303,16 +303,16 @@ MODULE_LICENSE("Dual BSD/GPL"); | |||
| 303 | static struct { | 303 | static struct { |
| 304 | char *file[FSG_MAX_LUNS]; | 304 | char *file[FSG_MAX_LUNS]; |
| 305 | char *serial; | 305 | char *serial; |
| 306 | int ro[FSG_MAX_LUNS]; | 306 | bool ro[FSG_MAX_LUNS]; |
| 307 | int nofua[FSG_MAX_LUNS]; | 307 | bool nofua[FSG_MAX_LUNS]; |
| 308 | unsigned int num_filenames; | 308 | unsigned int num_filenames; |
| 309 | unsigned int num_ros; | 309 | unsigned int num_ros; |
| 310 | unsigned int num_nofuas; | 310 | unsigned int num_nofuas; |
| 311 | unsigned int nluns; | 311 | unsigned int nluns; |
| 312 | 312 | ||
| 313 | int removable; | 313 | bool removable; |
| 314 | int can_stall; | 314 | bool can_stall; |
| 315 | int cdrom; | 315 | bool cdrom; |
| 316 | 316 | ||
| 317 | char *transport_parm; | 317 | char *transport_parm; |
| 318 | char *protocol_parm; | 318 | char *protocol_parm; |
diff --git a/drivers/usb/gadget/net2272.c b/drivers/usb/gadget/net2272.c index 4c81d540bc26..7322d293213e 100644 --- a/drivers/usb/gadget/net2272.c +++ b/drivers/usb/gadget/net2272.c | |||
| @@ -69,7 +69,7 @@ static const char * const ep_name[] = { | |||
| 69 | * | 69 | * |
| 70 | * If use_dma is disabled, pio will be used instead. | 70 | * If use_dma is disabled, pio will be used instead. |
| 71 | */ | 71 | */ |
| 72 | static int use_dma = 0; | 72 | static bool use_dma = 0; |
| 73 | module_param(use_dma, bool, 0644); | 73 | module_param(use_dma, bool, 0644); |
| 74 | 74 | ||
| 75 | /* | 75 | /* |
diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index cf1f36454d08..cdedd1336745 100644 --- a/drivers/usb/gadget/net2280.c +++ b/drivers/usb/gadget/net2280.c | |||
| @@ -90,8 +90,8 @@ static const char *const ep_name [] = { | |||
| 90 | * Some gadget drivers work better with the dma support here than others. | 90 | * Some gadget drivers work better with the dma support here than others. |
| 91 | * These two parameters let you use PIO or more aggressive DMA. | 91 | * These two parameters let you use PIO or more aggressive DMA. |
| 92 | */ | 92 | */ |
| 93 | static int use_dma = 1; | 93 | static bool use_dma = 1; |
| 94 | static int use_dma_chaining = 0; | 94 | static bool use_dma_chaining = 0; |
| 95 | 95 | ||
| 96 | /* "modprobe net2280 use_dma=n" etc */ | 96 | /* "modprobe net2280 use_dma=n" etc */ |
| 97 | module_param (use_dma, bool, S_IRUGO); | 97 | module_param (use_dma, bool, S_IRUGO); |
| @@ -112,7 +112,7 @@ module_param (fifo_mode, ushort, 0644); | |||
| 112 | * USB suspend requests will be ignored. This is acceptable for | 112 | * USB suspend requests will be ignored. This is acceptable for |
| 113 | * self-powered devices | 113 | * self-powered devices |
| 114 | */ | 114 | */ |
| 115 | static int enable_suspend = 0; | 115 | static bool enable_suspend = 0; |
| 116 | 116 | ||
| 117 | /* "modprobe net2280 enable_suspend=1" etc */ | 117 | /* "modprobe net2280 enable_suspend=1" etc */ |
| 118 | module_param (enable_suspend, bool, S_IRUGO); | 118 | module_param (enable_suspend, bool, S_IRUGO); |
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c index 7db5bbe6251b..576cd8578b45 100644 --- a/drivers/usb/gadget/omap_udc.c +++ b/drivers/usb/gadget/omap_udc.c | |||
| @@ -98,7 +98,7 @@ module_param (fifo_mode, uint, 0); | |||
| 98 | MODULE_PARM_DESC (fifo_mode, "endpoint configuration"); | 98 | MODULE_PARM_DESC (fifo_mode, "endpoint configuration"); |
| 99 | 99 | ||
| 100 | #ifdef USE_DMA | 100 | #ifdef USE_DMA |
| 101 | static unsigned use_dma = 1; | 101 | static bool use_dma = 1; |
| 102 | 102 | ||
| 103 | /* "modprobe omap_udc use_dma=y", or else as a kernel | 103 | /* "modprobe omap_udc use_dma=y", or else as a kernel |
| 104 | * boot parameter "omap_udc:use_dma=y" | 104 | * boot parameter "omap_udc:use_dma=y" |
diff --git a/drivers/usb/gadget/pch_udc.c b/drivers/usb/gadget/pch_udc.c index dd2313cce1d3..a3fcaae4bc2a 100644 --- a/drivers/usb/gadget/pch_udc.c +++ b/drivers/usb/gadget/pch_udc.c | |||
| @@ -359,7 +359,7 @@ struct pch_udc_dev { | |||
| 359 | static const char ep0_string[] = "ep0in"; | 359 | static const char ep0_string[] = "ep0in"; |
| 360 | static DEFINE_SPINLOCK(udc_stall_spinlock); /* stall spin lock */ | 360 | static DEFINE_SPINLOCK(udc_stall_spinlock); /* stall spin lock */ |
| 361 | struct pch_udc_dev *pch_udc; /* pointer to device object */ | 361 | struct pch_udc_dev *pch_udc; /* pointer to device object */ |
| 362 | static int speed_fs; | 362 | static bool speed_fs; |
| 363 | module_param_named(speed_fs, speed_fs, bool, S_IRUGO); | 363 | module_param_named(speed_fs, speed_fs, bool, S_IRUGO); |
| 364 | MODULE_PARM_DESC(speed_fs, "true for Full speed operation"); | 364 | MODULE_PARM_DESC(speed_fs, "true for Full speed operation"); |
| 365 | 365 | ||
diff --git a/drivers/usb/gadget/serial.c b/drivers/usb/gadget/serial.c index ed1b816e58d8..ad9e5b2df642 100644 --- a/drivers/usb/gadget/serial.c +++ b/drivers/usb/gadget/serial.c | |||
| @@ -123,11 +123,11 @@ MODULE_AUTHOR("Al Borchers"); | |||
| 123 | MODULE_AUTHOR("David Brownell"); | 123 | MODULE_AUTHOR("David Brownell"); |
| 124 | MODULE_LICENSE("GPL"); | 124 | MODULE_LICENSE("GPL"); |
| 125 | 125 | ||
| 126 | static int use_acm = true; | 126 | static bool use_acm = true; |
| 127 | module_param(use_acm, bool, 0); | 127 | module_param(use_acm, bool, 0); |
| 128 | MODULE_PARM_DESC(use_acm, "Use CDC ACM, default=yes"); | 128 | MODULE_PARM_DESC(use_acm, "Use CDC ACM, default=yes"); |
| 129 | 129 | ||
| 130 | static int use_obex = false; | 130 | static bool use_obex = false; |
| 131 | module_param(use_obex, bool, 0); | 131 | module_param(use_obex, bool, 0); |
| 132 | MODULE_PARM_DESC(use_obex, "Use CDC OBEX, default=no"); | 132 | MODULE_PARM_DESC(use_obex, "Use CDC OBEX, default=no"); |
| 133 | 133 | ||
diff --git a/drivers/usb/gadget/zero.c b/drivers/usb/gadget/zero.c index 20697cc132d1..31d34832907e 100644 --- a/drivers/usb/gadget/zero.c +++ b/drivers/usb/gadget/zero.c | |||
| @@ -81,7 +81,7 @@ module_param(buflen, uint, 0); | |||
| 81 | * work better with hosts where config changes are problematic or | 81 | * work better with hosts where config changes are problematic or |
| 82 | * controllers (like original superh) that only support one config. | 82 | * controllers (like original superh) that only support one config. |
| 83 | */ | 83 | */ |
| 84 | static int loopdefault = 0; | 84 | static bool loopdefault = 0; |
| 85 | module_param(loopdefault, bool, S_IRUGO|S_IWUSR); | 85 | module_param(loopdefault, bool, S_IRUGO|S_IWUSR); |
| 86 | 86 | ||
| 87 | /*-------------------------------------------------------------------------*/ | 87 | /*-------------------------------------------------------------------------*/ |
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 4c0c9734251d..91413cac97be 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig | |||
| @@ -219,7 +219,7 @@ config USB_CNS3XXX_EHCI | |||
| 219 | 219 | ||
| 220 | config USB_EHCI_ATH79 | 220 | config USB_EHCI_ATH79 |
| 221 | bool "EHCI support for AR7XXX/AR9XXX SoCs" | 221 | bool "EHCI support for AR7XXX/AR9XXX SoCs" |
| 222 | depends on USB_EHCI_HCD && (SOC_AR71XX || SOC_AR724X || SOC_AR913X) | 222 | depends on USB_EHCI_HCD && (SOC_AR71XX || SOC_AR724X || SOC_AR913X || SOC_AR933X) |
| 223 | select USB_EHCI_ROOT_HUB_TT | 223 | select USB_EHCI_ROOT_HUB_TT |
| 224 | default y | 224 | default y |
| 225 | ---help--- | 225 | ---help--- |
diff --git a/drivers/usb/host/alchemy-common.c b/drivers/usb/host/alchemy-common.c index b4192c964d0d..936af8359fb2 100644 --- a/drivers/usb/host/alchemy-common.c +++ b/drivers/usb/host/alchemy-common.c | |||
| @@ -52,9 +52,263 @@ | |||
| 52 | USBCFG_EBE | USBCFG_EME | USBCFG_OBE | \ | 52 | USBCFG_EBE | USBCFG_EME | USBCFG_OBE | \ |
| 53 | USBCFG_OME) | 53 | USBCFG_OME) |
| 54 | 54 | ||
| 55 | /* Au1300 USB config registers */ | ||
| 56 | #define USB_DWC_CTRL1 0x00 | ||
| 57 | #define USB_DWC_CTRL2 0x04 | ||
| 58 | #define USB_VBUS_TIMER 0x10 | ||
| 59 | #define USB_SBUS_CTRL 0x14 | ||
| 60 | #define USB_MSR_ERR 0x18 | ||
| 61 | #define USB_DWC_CTRL3 0x1C | ||
| 62 | #define USB_DWC_CTRL4 0x20 | ||
| 63 | #define USB_OTG_STATUS 0x28 | ||
| 64 | #define USB_DWC_CTRL5 0x2C | ||
| 65 | #define USB_DWC_CTRL6 0x30 | ||
| 66 | #define USB_DWC_CTRL7 0x34 | ||
| 67 | #define USB_PHY_STATUS 0xC0 | ||
| 68 | #define USB_INT_STATUS 0xC4 | ||
| 69 | #define USB_INT_ENABLE 0xC8 | ||
| 70 | |||
| 71 | #define USB_DWC_CTRL1_OTGD 0x04 /* set to DISable OTG */ | ||
| 72 | #define USB_DWC_CTRL1_HSTRS 0x02 /* set to ENable EHCI */ | ||
| 73 | #define USB_DWC_CTRL1_DCRS 0x01 /* set to ENable UDC */ | ||
| 74 | |||
| 75 | #define USB_DWC_CTRL2_PHY1RS 0x04 /* set to enable PHY1 */ | ||
| 76 | #define USB_DWC_CTRL2_PHY0RS 0x02 /* set to enable PHY0 */ | ||
| 77 | #define USB_DWC_CTRL2_PHYRS 0x01 /* set to enable PHY */ | ||
| 78 | |||
| 79 | #define USB_DWC_CTRL3_OHCI1_CKEN (1 << 19) | ||
| 80 | #define USB_DWC_CTRL3_OHCI0_CKEN (1 << 18) | ||
| 81 | #define USB_DWC_CTRL3_EHCI0_CKEN (1 << 17) | ||
| 82 | #define USB_DWC_CTRL3_OTG0_CKEN (1 << 16) | ||
| 83 | |||
| 84 | #define USB_SBUS_CTRL_SBCA 0x04 /* coherent access */ | ||
| 85 | |||
| 86 | #define USB_INTEN_FORCE 0x20 | ||
| 87 | #define USB_INTEN_PHY 0x10 | ||
| 88 | #define USB_INTEN_UDC 0x08 | ||
| 89 | #define USB_INTEN_EHCI 0x04 | ||
| 90 | #define USB_INTEN_OHCI1 0x02 | ||
| 91 | #define USB_INTEN_OHCI0 0x01 | ||
| 55 | 92 | ||
| 56 | static DEFINE_SPINLOCK(alchemy_usb_lock); | 93 | static DEFINE_SPINLOCK(alchemy_usb_lock); |
| 57 | 94 | ||
| 95 | static inline void __au1300_usb_phyctl(void __iomem *base, int enable) | ||
| 96 | { | ||
| 97 | unsigned long r, s; | ||
| 98 | |||
| 99 | r = __raw_readl(base + USB_DWC_CTRL2); | ||
| 100 | s = __raw_readl(base + USB_DWC_CTRL3); | ||
| 101 | |||
| 102 | s &= USB_DWC_CTRL3_OHCI1_CKEN | USB_DWC_CTRL3_OHCI0_CKEN | | ||
| 103 | USB_DWC_CTRL3_EHCI0_CKEN | USB_DWC_CTRL3_OTG0_CKEN; | ||
| 104 | |||
| 105 | if (enable) { | ||
| 106 | /* simply enable all PHYs */ | ||
| 107 | r |= USB_DWC_CTRL2_PHY1RS | USB_DWC_CTRL2_PHY0RS | | ||
| 108 | USB_DWC_CTRL2_PHYRS; | ||
| 109 | __raw_writel(r, base + USB_DWC_CTRL2); | ||
| 110 | wmb(); | ||
| 111 | } else if (!s) { | ||
| 112 | /* no USB block active, do disable all PHYs */ | ||
| 113 | r &= ~(USB_DWC_CTRL2_PHY1RS | USB_DWC_CTRL2_PHY0RS | | ||
| 114 | USB_DWC_CTRL2_PHYRS); | ||
| 115 | __raw_writel(r, base + USB_DWC_CTRL2); | ||
| 116 | wmb(); | ||
| 117 | } | ||
| 118 | } | ||
| 119 | |||
| 120 | static inline void __au1300_ohci_control(void __iomem *base, int enable, int id) | ||
| 121 | { | ||
| 122 | unsigned long r; | ||
| 123 | |||
| 124 | if (enable) { | ||
| 125 | __raw_writel(1, base + USB_DWC_CTRL7); /* start OHCI clock */ | ||
| 126 | wmb(); | ||
| 127 | |||
| 128 | r = __raw_readl(base + USB_DWC_CTRL3); /* enable OHCI block */ | ||
| 129 | r |= (id == 0) ? USB_DWC_CTRL3_OHCI0_CKEN | ||
| 130 | : USB_DWC_CTRL3_OHCI1_CKEN; | ||
| 131 | __raw_writel(r, base + USB_DWC_CTRL3); | ||
| 132 | wmb(); | ||
| 133 | |||
| 134 | __au1300_usb_phyctl(base, enable); /* power up the PHYs */ | ||
| 135 | |||
| 136 | r = __raw_readl(base + USB_INT_ENABLE); | ||
| 137 | r |= (id == 0) ? USB_INTEN_OHCI0 : USB_INTEN_OHCI1; | ||
| 138 | __raw_writel(r, base + USB_INT_ENABLE); | ||
| 139 | wmb(); | ||
| 140 | |||
| 141 | /* reset the OHCI start clock bit */ | ||
| 142 | __raw_writel(0, base + USB_DWC_CTRL7); | ||
| 143 | wmb(); | ||
| 144 | } else { | ||
| 145 | r = __raw_readl(base + USB_INT_ENABLE); | ||
| 146 | r &= ~((id == 0) ? USB_INTEN_OHCI0 : USB_INTEN_OHCI1); | ||
| 147 | __raw_writel(r, base + USB_INT_ENABLE); | ||
| 148 | wmb(); | ||
| 149 | |||
| 150 | r = __raw_readl(base + USB_DWC_CTRL3); | ||
| 151 | r &= ~((id == 0) ? USB_DWC_CTRL3_OHCI0_CKEN | ||
| 152 | : USB_DWC_CTRL3_OHCI1_CKEN); | ||
| 153 | __raw_writel(r, base + USB_DWC_CTRL3); | ||
| 154 | wmb(); | ||
| 155 | |||
| 156 | __au1300_usb_phyctl(base, enable); | ||
| 157 | } | ||
| 158 | } | ||
| 159 | |||
| 160 | static inline void __au1300_ehci_control(void __iomem *base, int enable) | ||
| 161 | { | ||
| 162 | unsigned long r; | ||
| 163 | |||
| 164 | if (enable) { | ||
| 165 | r = __raw_readl(base + USB_DWC_CTRL3); | ||
| 166 | r |= USB_DWC_CTRL3_EHCI0_CKEN; | ||
| 167 | __raw_writel(r, base + USB_DWC_CTRL3); | ||
| 168 | wmb(); | ||
| 169 | |||
| 170 | r = __raw_readl(base + USB_DWC_CTRL1); | ||
| 171 | r |= USB_DWC_CTRL1_HSTRS; | ||
| 172 | __raw_writel(r, base + USB_DWC_CTRL1); | ||
| 173 | wmb(); | ||
| 174 | |||
| 175 | __au1300_usb_phyctl(base, enable); | ||
| 176 | |||
| 177 | r = __raw_readl(base + USB_INT_ENABLE); | ||
| 178 | r |= USB_INTEN_EHCI; | ||
| 179 | __raw_writel(r, base + USB_INT_ENABLE); | ||
| 180 | wmb(); | ||
| 181 | } else { | ||
| 182 | r = __raw_readl(base + USB_INT_ENABLE); | ||
| 183 | r &= ~USB_INTEN_EHCI; | ||
| 184 | __raw_writel(r, base + USB_INT_ENABLE); | ||
| 185 | wmb(); | ||
| 186 | |||
| 187 | r = __raw_readl(base + USB_DWC_CTRL1); | ||
| 188 | r &= ~USB_DWC_CTRL1_HSTRS; | ||
| 189 | __raw_writel(r, base + USB_DWC_CTRL1); | ||
| 190 | wmb(); | ||
| 191 | |||
| 192 | r = __raw_readl(base + USB_DWC_CTRL3); | ||
| 193 | r &= ~USB_DWC_CTRL3_EHCI0_CKEN; | ||
| 194 | __raw_writel(r, base + USB_DWC_CTRL3); | ||
| 195 | wmb(); | ||
| 196 | |||
| 197 | __au1300_usb_phyctl(base, enable); | ||
| 198 | } | ||
| 199 | } | ||
| 200 | |||
| 201 | static inline void __au1300_udc_control(void __iomem *base, int enable) | ||
| 202 | { | ||
| 203 | unsigned long r; | ||
| 204 | |||
| 205 | if (enable) { | ||
| 206 | r = __raw_readl(base + USB_DWC_CTRL1); | ||
| 207 | r |= USB_DWC_CTRL1_DCRS; | ||
| 208 | __raw_writel(r, base + USB_DWC_CTRL1); | ||
| 209 | wmb(); | ||
| 210 | |||
| 211 | __au1300_usb_phyctl(base, enable); | ||
| 212 | |||
| 213 | r = __raw_readl(base + USB_INT_ENABLE); | ||
| 214 | r |= USB_INTEN_UDC; | ||
| 215 | __raw_writel(r, base + USB_INT_ENABLE); | ||
| 216 | wmb(); | ||
| 217 | } else { | ||
| 218 | r = __raw_readl(base + USB_INT_ENABLE); | ||
| 219 | r &= ~USB_INTEN_UDC; | ||
| 220 | __raw_writel(r, base + USB_INT_ENABLE); | ||
| 221 | wmb(); | ||
| 222 | |||
| 223 | r = __raw_readl(base + USB_DWC_CTRL1); | ||
| 224 | r &= ~USB_DWC_CTRL1_DCRS; | ||
| 225 | __raw_writel(r, base + USB_DWC_CTRL1); | ||
| 226 | wmb(); | ||
| 227 | |||
| 228 | __au1300_usb_phyctl(base, enable); | ||
| 229 | } | ||
| 230 | } | ||
| 231 | |||
| 232 | static inline void __au1300_otg_control(void __iomem *base, int enable) | ||
| 233 | { | ||
| 234 | unsigned long r; | ||
| 235 | if (enable) { | ||
| 236 | r = __raw_readl(base + USB_DWC_CTRL3); | ||
| 237 | r |= USB_DWC_CTRL3_OTG0_CKEN; | ||
| 238 | __raw_writel(r, base + USB_DWC_CTRL3); | ||
| 239 | wmb(); | ||
| 240 | |||
| 241 | r = __raw_readl(base + USB_DWC_CTRL1); | ||
| 242 | r &= ~USB_DWC_CTRL1_OTGD; | ||
| 243 | __raw_writel(r, base + USB_DWC_CTRL1); | ||
| 244 | wmb(); | ||
| 245 | |||
| 246 | __au1300_usb_phyctl(base, enable); | ||
| 247 | } else { | ||
| 248 | r = __raw_readl(base + USB_DWC_CTRL1); | ||
| 249 | r |= USB_DWC_CTRL1_OTGD; | ||
| 250 | __raw_writel(r, base + USB_DWC_CTRL1); | ||
| 251 | wmb(); | ||
| 252 | |||
| 253 | r = __raw_readl(base + USB_DWC_CTRL3); | ||
| 254 | r &= ~USB_DWC_CTRL3_OTG0_CKEN; | ||
| 255 | __raw_writel(r, base + USB_DWC_CTRL3); | ||
| 256 | wmb(); | ||
| 257 | |||
| 258 | __au1300_usb_phyctl(base, enable); | ||
| 259 | } | ||
| 260 | } | ||
| 261 | |||
| 262 | static inline int au1300_usb_control(int block, int enable) | ||
| 263 | { | ||
| 264 | void __iomem *base = | ||
| 265 | (void __iomem *)KSEG1ADDR(AU1300_USB_CTL_PHYS_ADDR); | ||
| 266 | int ret = 0; | ||
| 267 | |||
| 268 | switch (block) { | ||
| 269 | case ALCHEMY_USB_OHCI0: | ||
| 270 | __au1300_ohci_control(base, enable, 0); | ||
| 271 | break; | ||
| 272 | case ALCHEMY_USB_OHCI1: | ||
| 273 | __au1300_ohci_control(base, enable, 1); | ||
| 274 | break; | ||
| 275 | case ALCHEMY_USB_EHCI0: | ||
| 276 | __au1300_ehci_control(base, enable); | ||
| 277 | break; | ||
| 278 | case ALCHEMY_USB_UDC0: | ||
| 279 | __au1300_udc_control(base, enable); | ||
| 280 | break; | ||
| 281 | case ALCHEMY_USB_OTG0: | ||
| 282 | __au1300_otg_control(base, enable); | ||
| 283 | break; | ||
| 284 | default: | ||
| 285 | ret = -ENODEV; | ||
| 286 | } | ||
| 287 | return ret; | ||
| 288 | } | ||
| 289 | |||
| 290 | static inline void au1300_usb_init(void) | ||
| 291 | { | ||
| 292 | void __iomem *base = | ||
| 293 | (void __iomem *)KSEG1ADDR(AU1300_USB_CTL_PHYS_ADDR); | ||
| 294 | |||
| 295 | /* set some sane defaults. Note: we don't fiddle with DWC_CTRL4 | ||
| 296 | * here at all: Port 2 routing (EHCI or UDC) must be set either | ||
| 297 | * by boot firmware or platform init code; I can't autodetect | ||
| 298 | * a sane setting. | ||
| 299 | */ | ||
| 300 | __raw_writel(0, base + USB_INT_ENABLE); /* disable all USB irqs */ | ||
| 301 | wmb(); | ||
| 302 | __raw_writel(0, base + USB_DWC_CTRL3); /* disable all clocks */ | ||
| 303 | wmb(); | ||
| 304 | __raw_writel(~0, base + USB_MSR_ERR); /* clear all errors */ | ||
| 305 | wmb(); | ||
| 306 | __raw_writel(~0, base + USB_INT_STATUS); /* clear int status */ | ||
| 307 | wmb(); | ||
| 308 | /* set coherent access bit */ | ||
| 309 | __raw_writel(USB_SBUS_CTRL_SBCA, base + USB_SBUS_CTRL); | ||
| 310 | wmb(); | ||
| 311 | } | ||
| 58 | 312 | ||
| 59 | static inline void __au1200_ohci_control(void __iomem *base, int enable) | 313 | static inline void __au1200_ohci_control(void __iomem *base, int enable) |
| 60 | { | 314 | { |
| @@ -233,6 +487,9 @@ int alchemy_usb_control(int block, int enable) | |||
| 233 | case ALCHEMY_CPU_AU1200: | 487 | case ALCHEMY_CPU_AU1200: |
| 234 | ret = au1200_usb_control(block, enable); | 488 | ret = au1200_usb_control(block, enable); |
| 235 | break; | 489 | break; |
| 490 | case ALCHEMY_CPU_AU1300: | ||
| 491 | ret = au1300_usb_control(block, enable); | ||
| 492 | break; | ||
| 236 | default: | 493 | default: |
| 237 | ret = -ENODEV; | 494 | ret = -ENODEV; |
| 238 | } | 495 | } |
| @@ -281,6 +538,20 @@ static void au1200_usb_pm(int susp) | |||
| 281 | } | 538 | } |
| 282 | } | 539 | } |
| 283 | 540 | ||
| 541 | static void au1300_usb_pm(int susp) | ||
| 542 | { | ||
| 543 | void __iomem *base = | ||
| 544 | (void __iomem *)KSEG1ADDR(AU1300_USB_CTL_PHYS_ADDR); | ||
| 545 | /* remember Port2 routing */ | ||
| 546 | if (susp) { | ||
| 547 | alchemy_usb_pmdata[0] = __raw_readl(base + USB_DWC_CTRL4); | ||
| 548 | } else { | ||
| 549 | au1300_usb_init(); | ||
| 550 | __raw_writel(alchemy_usb_pmdata[0], base + USB_DWC_CTRL4); | ||
| 551 | wmb(); | ||
| 552 | } | ||
| 553 | } | ||
| 554 | |||
| 284 | static void alchemy_usb_pm(int susp) | 555 | static void alchemy_usb_pm(int susp) |
| 285 | { | 556 | { |
| 286 | switch (alchemy_get_cputype()) { | 557 | switch (alchemy_get_cputype()) { |
| @@ -295,6 +566,9 @@ static void alchemy_usb_pm(int susp) | |||
| 295 | case ALCHEMY_CPU_AU1200: | 566 | case ALCHEMY_CPU_AU1200: |
| 296 | au1200_usb_pm(susp); | 567 | au1200_usb_pm(susp); |
| 297 | break; | 568 | break; |
| 569 | case ALCHEMY_CPU_AU1300: | ||
| 570 | au1300_usb_pm(susp); | ||
| 571 | break; | ||
| 298 | } | 572 | } |
| 299 | } | 573 | } |
| 300 | 574 | ||
| @@ -328,6 +602,9 @@ static int __init alchemy_usb_init(void) | |||
| 328 | case ALCHEMY_CPU_AU1200: | 602 | case ALCHEMY_CPU_AU1200: |
| 329 | au1200_usb_init(); | 603 | au1200_usb_init(); |
| 330 | break; | 604 | break; |
| 605 | case ALCHEMY_CPU_AU1300: | ||
| 606 | au1300_usb_init(); | ||
| 607 | break; | ||
| 331 | } | 608 | } |
| 332 | 609 | ||
| 333 | register_syscore_ops(&alchemy_usb_pm_ops); | 610 | register_syscore_ops(&alchemy_usb_pm_ops); |
diff --git a/drivers/usb/host/ehci-ath79.c b/drivers/usb/host/ehci-ath79.c index afb6743cf094..f1424f9bc363 100644 --- a/drivers/usb/host/ehci-ath79.c +++ b/drivers/usb/host/ehci-ath79.c | |||
| @@ -33,6 +33,10 @@ static const struct platform_device_id ehci_ath79_id_table[] = { | |||
| 33 | .driver_data = EHCI_ATH79_IP_V2, | 33 | .driver_data = EHCI_ATH79_IP_V2, |
| 34 | }, | 34 | }, |
| 35 | { | 35 | { |
| 36 | .name = "ar933x-ehci", | ||
| 37 | .driver_data = EHCI_ATH79_IP_V2, | ||
| 38 | }, | ||
| 39 | { | ||
| 36 | /* terminating entry */ | 40 | /* terminating entry */ |
| 37 | }, | 41 | }, |
| 38 | }; | 42 | }; |
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index e311a511529b..a007a9fe0f87 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c | |||
| @@ -112,7 +112,7 @@ module_param (park, uint, S_IRUGO); | |||
| 112 | MODULE_PARM_DESC (park, "park setting; 1-3 back-to-back async packets"); | 112 | MODULE_PARM_DESC (park, "park setting; 1-3 back-to-back async packets"); |
| 113 | 113 | ||
| 114 | /* for flakey hardware, ignore overcurrent indicators */ | 114 | /* for flakey hardware, ignore overcurrent indicators */ |
| 115 | static int ignore_oc = 0; | 115 | static bool ignore_oc = 0; |
| 116 | module_param (ignore_oc, bool, S_IRUGO); | 116 | module_param (ignore_oc, bool, S_IRUGO); |
| 117 | MODULE_PARM_DESC (ignore_oc, "ignore bogus hardware overcurrent indications"); | 117 | MODULE_PARM_DESC (ignore_oc, "ignore bogus hardware overcurrent indications"); |
| 118 | 118 | ||
diff --git a/drivers/usb/host/ohci-au1xxx.c b/drivers/usb/host/ohci-au1xxx.c index 40d886adff53..4ea63b2cac42 100644 --- a/drivers/usb/host/ohci-au1xxx.c +++ b/drivers/usb/host/ohci-au1xxx.c | |||
| @@ -89,7 +89,7 @@ static const struct hc_driver ohci_au1xxx_hc_driver = { | |||
| 89 | 89 | ||
| 90 | static int ohci_hcd_au1xxx_drv_probe(struct platform_device *pdev) | 90 | static int ohci_hcd_au1xxx_drv_probe(struct platform_device *pdev) |
| 91 | { | 91 | { |
| 92 | int ret; | 92 | int ret, unit; |
| 93 | struct usb_hcd *hcd; | 93 | struct usb_hcd *hcd; |
| 94 | 94 | ||
| 95 | if (usb_disabled()) | 95 | if (usb_disabled()) |
| @@ -120,7 +120,9 @@ static int ohci_hcd_au1xxx_drv_probe(struct platform_device *pdev) | |||
| 120 | goto err2; | 120 | goto err2; |
| 121 | } | 121 | } |
| 122 | 122 | ||
| 123 | if (alchemy_usb_control(ALCHEMY_USB_OHCI0, 1)) { | 123 | unit = (hcd->rsrc_start == AU1300_USB_OHCI1_PHYS_ADDR) ? |
| 124 | ALCHEMY_USB_OHCI1 : ALCHEMY_USB_OHCI0; | ||
| 125 | if (alchemy_usb_control(unit, 1)) { | ||
| 124 | printk(KERN_INFO "%s: controller init failed!\n", pdev->name); | 126 | printk(KERN_INFO "%s: controller init failed!\n", pdev->name); |
| 125 | ret = -ENODEV; | 127 | ret = -ENODEV; |
| 126 | goto err3; | 128 | goto err3; |
| @@ -135,7 +137,7 @@ static int ohci_hcd_au1xxx_drv_probe(struct platform_device *pdev) | |||
| 135 | return ret; | 137 | return ret; |
| 136 | } | 138 | } |
| 137 | 139 | ||
| 138 | alchemy_usb_control(ALCHEMY_USB_OHCI0, 0); | 140 | alchemy_usb_control(unit, 0); |
| 139 | err3: | 141 | err3: |
| 140 | iounmap(hcd->regs); | 142 | iounmap(hcd->regs); |
| 141 | err2: | 143 | err2: |
| @@ -148,9 +150,12 @@ err1: | |||
| 148 | static int ohci_hcd_au1xxx_drv_remove(struct platform_device *pdev) | 150 | static int ohci_hcd_au1xxx_drv_remove(struct platform_device *pdev) |
| 149 | { | 151 | { |
| 150 | struct usb_hcd *hcd = platform_get_drvdata(pdev); | 152 | struct usb_hcd *hcd = platform_get_drvdata(pdev); |
| 153 | int unit; | ||
| 151 | 154 | ||
| 155 | unit = (hcd->rsrc_start == AU1300_USB_OHCI1_PHYS_ADDR) ? | ||
| 156 | ALCHEMY_USB_OHCI1 : ALCHEMY_USB_OHCI0; | ||
| 152 | usb_remove_hcd(hcd); | 157 | usb_remove_hcd(hcd); |
| 153 | alchemy_usb_control(ALCHEMY_USB_OHCI0, 0); | 158 | alchemy_usb_control(unit, 0); |
| 154 | iounmap(hcd->regs); | 159 | iounmap(hcd->regs); |
| 155 | release_mem_region(hcd->rsrc_start, hcd->rsrc_len); | 160 | release_mem_region(hcd->rsrc_start, hcd->rsrc_len); |
| 156 | usb_put_hcd(hcd); | 161 | usb_put_hcd(hcd); |
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 5f5a63241436..34b9edd86651 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c | |||
| @@ -115,13 +115,13 @@ static inline void sb800_prefetch(struct ohci_hcd *ohci, int on) | |||
| 115 | 115 | ||
| 116 | 116 | ||
| 117 | /* Some boards misreport power switching/overcurrent */ | 117 | /* Some boards misreport power switching/overcurrent */ |
| 118 | static int distrust_firmware = 1; | 118 | static bool distrust_firmware = 1; |
| 119 | module_param (distrust_firmware, bool, 0); | 119 | module_param (distrust_firmware, bool, 0); |
| 120 | MODULE_PARM_DESC (distrust_firmware, | 120 | MODULE_PARM_DESC (distrust_firmware, |
| 121 | "true to distrust firmware power/overcurrent setup"); | 121 | "true to distrust firmware power/overcurrent setup"); |
| 122 | 122 | ||
| 123 | /* Some boards leave IR set wrongly, since they fail BIOS/SMM handshakes */ | 123 | /* Some boards leave IR set wrongly, since they fail BIOS/SMM handshakes */ |
| 124 | static int no_handshake = 0; | 124 | static bool no_handshake = 0; |
| 125 | module_param (no_handshake, bool, 0); | 125 | module_param (no_handshake, bool, 0); |
| 126 | MODULE_PARM_DESC (no_handshake, "true (not default) disables BIOS handshake"); | 126 | MODULE_PARM_DESC (no_handshake, "true (not default) disables BIOS handshake"); |
| 127 | 127 | ||
diff --git a/drivers/usb/host/oxu210hp-hcd.c b/drivers/usb/host/oxu210hp-hcd.c index 6f62de5c6e35..015c7c62ed49 100644 --- a/drivers/usb/host/oxu210hp-hcd.c +++ b/drivers/usb/host/oxu210hp-hcd.c | |||
| @@ -233,7 +233,7 @@ module_param(park, uint, S_IRUGO); | |||
| 233 | MODULE_PARM_DESC(park, "park setting; 1-3 back-to-back async packets"); | 233 | MODULE_PARM_DESC(park, "park setting; 1-3 back-to-back async packets"); |
| 234 | 234 | ||
| 235 | /* For flakey hardware, ignore overcurrent indicators */ | 235 | /* For flakey hardware, ignore overcurrent indicators */ |
| 236 | static int ignore_oc; | 236 | static bool ignore_oc; |
| 237 | module_param(ignore_oc, bool, S_IRUGO); | 237 | module_param(ignore_oc, bool, S_IRUGO); |
| 238 | MODULE_PARM_DESC(ignore_oc, "ignore bogus hardware overcurrent indications"); | 238 | MODULE_PARM_DESC(ignore_oc, "ignore bogus hardware overcurrent indications"); |
| 239 | 239 | ||
diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c index 533d12cca371..16dd6a6abf00 100644 --- a/drivers/usb/host/u132-hcd.c +++ b/drivers/usb/host/u132-hcd.c | |||
| @@ -74,7 +74,7 @@ MODULE_LICENSE("GPL"); | |||
| 74 | #define INT_MODULE_PARM(n, v) static int n = v;module_param(n, int, 0444) | 74 | #define INT_MODULE_PARM(n, v) static int n = v;module_param(n, int, 0444) |
| 75 | INT_MODULE_PARM(testing, 0); | 75 | INT_MODULE_PARM(testing, 0); |
| 76 | /* Some boards misreport power switching/overcurrent*/ | 76 | /* Some boards misreport power switching/overcurrent*/ |
| 77 | static int distrust_firmware = 1; | 77 | static bool distrust_firmware = 1; |
| 78 | module_param(distrust_firmware, bool, 0); | 78 | module_param(distrust_firmware, bool, 0); |
| 79 | MODULE_PARM_DESC(distrust_firmware, "true to distrust firmware power/overcurren" | 79 | MODULE_PARM_DESC(distrust_firmware, "true to distrust firmware power/overcurren" |
| 80 | "t setup"); | 80 | "t setup"); |
diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c index c8ae199cfbb8..6b5eb1017e2c 100644 --- a/drivers/usb/host/uhci-hcd.c +++ b/drivers/usb/host/uhci-hcd.c | |||
| @@ -59,7 +59,7 @@ | |||
| 59 | #define DRIVER_DESC "USB Universal Host Controller Interface driver" | 59 | #define DRIVER_DESC "USB Universal Host Controller Interface driver" |
| 60 | 60 | ||
| 61 | /* for flakey hardware, ignore overcurrent indicators */ | 61 | /* for flakey hardware, ignore overcurrent indicators */ |
| 62 | static int ignore_oc; | 62 | static bool ignore_oc; |
| 63 | module_param(ignore_oc, bool, S_IRUGO); | 63 | module_param(ignore_oc, bool, S_IRUGO); |
| 64 | MODULE_PARM_DESC(ignore_oc, "ignore hardware overcurrent indications"); | 64 | MODULE_PARM_DESC(ignore_oc, "ignore hardware overcurrent indications"); |
| 65 | 65 | ||
diff --git a/drivers/usb/misc/ftdi-elan.c b/drivers/usb/misc/ftdi-elan.c index 2dbe600fbc11..a4a3c7cd4a11 100644 --- a/drivers/usb/misc/ftdi-elan.c +++ b/drivers/usb/misc/ftdi-elan.c | |||
| @@ -53,7 +53,7 @@ MODULE_AUTHOR("Tony Olech"); | |||
| 53 | MODULE_DESCRIPTION("FTDI ELAN driver"); | 53 | MODULE_DESCRIPTION("FTDI ELAN driver"); |
| 54 | MODULE_LICENSE("GPL"); | 54 | MODULE_LICENSE("GPL"); |
| 55 | #define INT_MODULE_PARM(n, v) static int n = v;module_param(n, int, 0444) | 55 | #define INT_MODULE_PARM(n, v) static int n = v;module_param(n, int, 0444) |
| 56 | static int distrust_firmware = 1; | 56 | static bool distrust_firmware = 1; |
| 57 | module_param(distrust_firmware, bool, 0); | 57 | module_param(distrust_firmware, bool, 0); |
| 58 | MODULE_PARM_DESC(distrust_firmware, "true to distrust firmware power/overcurren" | 58 | MODULE_PARM_DESC(distrust_firmware, "true to distrust firmware power/overcurren" |
| 59 | "t setup"); | 59 | "t setup"); |
diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c index 2453a39b4794..4fd0dc835ae5 100644 --- a/drivers/usb/misc/iowarrior.c +++ b/drivers/usb/misc/iowarrior.c | |||
| @@ -62,7 +62,7 @@ MODULE_LICENSE("GPL"); | |||
| 62 | 62 | ||
| 63 | /* Module parameters */ | 63 | /* Module parameters */ |
| 64 | static DEFINE_MUTEX(iowarrior_mutex); | 64 | static DEFINE_MUTEX(iowarrior_mutex); |
| 65 | static int debug = 0; | 65 | static bool debug = 0; |
| 66 | module_param(debug, bool, 0644); | 66 | module_param(debug, bool, 0644); |
| 67 | MODULE_PARM_DESC(debug, "debug=1 enables debugging messages"); | 67 | MODULE_PARM_DESC(debug, "debug=1 enables debugging messages"); |
| 68 | 68 | ||
diff --git a/drivers/usb/musb/cppi_dma.c b/drivers/usb/musb/cppi_dma.c index 53be7aef6308..66bc376005d2 100644 --- a/drivers/usb/musb/cppi_dma.c +++ b/drivers/usb/musb/cppi_dma.c | |||
| @@ -750,7 +750,7 @@ cppi_next_tx_segment(struct musb *musb, struct cppi_channel *tx) | |||
| 750 | * So this module parameter lets the heuristic be disabled. When using | 750 | * So this module parameter lets the heuristic be disabled. When using |
| 751 | * gadgetfs, the heuristic will probably need to be disabled. | 751 | * gadgetfs, the heuristic will probably need to be disabled. |
| 752 | */ | 752 | */ |
| 753 | static int cppi_rx_rndis = 1; | 753 | static bool cppi_rx_rndis = 1; |
| 754 | 754 | ||
| 755 | module_param(cppi_rx_rndis, bool, 0); | 755 | module_param(cppi_rx_rndis, bool, 0); |
| 756 | MODULE_PARM_DESC(cppi_rx_rndis, "enable/disable RX RNDIS heuristic"); | 756 | MODULE_PARM_DESC(cppi_rx_rndis, "enable/disable RX RNDIS heuristic"); |
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index f6ff7923048b..56cf0243979e 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
| @@ -1586,7 +1586,7 @@ irqreturn_t musb_interrupt(struct musb *musb) | |||
| 1586 | EXPORT_SYMBOL_GPL(musb_interrupt); | 1586 | EXPORT_SYMBOL_GPL(musb_interrupt); |
| 1587 | 1587 | ||
| 1588 | #ifndef CONFIG_MUSB_PIO_ONLY | 1588 | #ifndef CONFIG_MUSB_PIO_ONLY |
| 1589 | static int __initdata use_dma = 1; | 1589 | static bool __initdata use_dma = 1; |
| 1590 | 1590 | ||
| 1591 | /* "modprobe ... use_dma=0" etc */ | 1591 | /* "modprobe ... use_dma=0" etc */ |
| 1592 | module_param(use_dma, bool, 0); | 1592 | module_param(use_dma, bool, 0); |
diff --git a/drivers/usb/otg/ab8500-usb.c b/drivers/usb/otg/ab8500-usb.c index 07ccea9ada40..74fe6e62e0f7 100644 --- a/drivers/usb/otg/ab8500-usb.c +++ b/drivers/usb/otg/ab8500-usb.c | |||
| @@ -30,7 +30,7 @@ | |||
| 30 | #include <linux/interrupt.h> | 30 | #include <linux/interrupt.h> |
| 31 | #include <linux/delay.h> | 31 | #include <linux/delay.h> |
| 32 | #include <linux/mfd/abx500.h> | 32 | #include <linux/mfd/abx500.h> |
| 33 | #include <linux/mfd/ab8500.h> | 33 | #include <linux/mfd/abx500/ab8500.h> |
| 34 | 34 | ||
| 35 | #define AB8500_MAIN_WD_CTRL_REG 0x01 | 35 | #define AB8500_MAIN_WD_CTRL_REG 0x01 |
| 36 | #define AB8500_USB_LINE_STAT_REG 0x80 | 36 | #define AB8500_USB_LINE_STAT_REG 0x80 |
diff --git a/drivers/usb/serial/aircable.c b/drivers/usb/serial/aircable.c index b43d07df4c44..123bf9155339 100644 --- a/drivers/usb/serial/aircable.c +++ b/drivers/usb/serial/aircable.c | |||
| @@ -52,7 +52,7 @@ | |||
| 52 | #include <linux/usb.h> | 52 | #include <linux/usb.h> |
| 53 | #include <linux/usb/serial.h> | 53 | #include <linux/usb/serial.h> |
| 54 | 54 | ||
| 55 | static int debug; | 55 | static bool debug; |
| 56 | 56 | ||
| 57 | /* Vendor and Product ID */ | 57 | /* Vendor and Product ID */ |
| 58 | #define AIRCABLE_VID 0x16CA | 58 | #define AIRCABLE_VID 0x16CA |
diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c index 18e875b92e00..69328dcfd91a 100644 --- a/drivers/usb/serial/ark3116.c +++ b/drivers/usb/serial/ark3116.c | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | #include <linux/mutex.h> | 37 | #include <linux/mutex.h> |
| 38 | #include <linux/spinlock.h> | 38 | #include <linux/spinlock.h> |
| 39 | 39 | ||
| 40 | static int debug; | 40 | static bool debug; |
| 41 | /* | 41 | /* |
| 42 | * Version information | 42 | * Version information |
| 43 | */ | 43 | */ |
diff --git a/drivers/usb/serial/belkin_sa.c b/drivers/usb/serial/belkin_sa.c index f9f29b289f2f..29ffeb6279c7 100644 --- a/drivers/usb/serial/belkin_sa.c +++ b/drivers/usb/serial/belkin_sa.c | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | #include <linux/usb/serial.h> | 37 | #include <linux/usb/serial.h> |
| 38 | #include "belkin_sa.h" | 38 | #include "belkin_sa.h" |
| 39 | 39 | ||
| 40 | static int debug; | 40 | static bool debug; |
| 41 | 41 | ||
| 42 | /* | 42 | /* |
| 43 | * Version Information | 43 | * Version Information |
diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index 0e77511060c0..5e53cc59e652 100644 --- a/drivers/usb/serial/ch341.c +++ b/drivers/usb/serial/ch341.c | |||
| @@ -70,7 +70,7 @@ | |||
| 70 | #define CH341_NBREAK_BITS_REG2 0x40 | 70 | #define CH341_NBREAK_BITS_REG2 0x40 |
| 71 | 71 | ||
| 72 | 72 | ||
| 73 | static int debug; | 73 | static bool debug; |
| 74 | 74 | ||
| 75 | static const struct usb_device_id id_table[] = { | 75 | static const struct usb_device_id id_table[] = { |
| 76 | { USB_DEVICE(0x4348, 0x5523) }, | 76 | { USB_DEVICE(0x4348, 0x5523) }, |
diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index adfe660ed008..fba1147ed916 100644 --- a/drivers/usb/serial/cp210x.c +++ b/drivers/usb/serial/cp210x.c | |||
| @@ -49,7 +49,7 @@ static void cp210x_break_ctl(struct tty_struct *, int); | |||
| 49 | static int cp210x_startup(struct usb_serial *); | 49 | static int cp210x_startup(struct usb_serial *); |
| 50 | static void cp210x_dtr_rts(struct usb_serial_port *p, int on); | 50 | static void cp210x_dtr_rts(struct usb_serial_port *p, int on); |
| 51 | 51 | ||
| 52 | static int debug; | 52 | static bool debug; |
| 53 | 53 | ||
| 54 | static const struct usb_device_id id_table[] = { | 54 | static const struct usb_device_id id_table[] = { |
| 55 | { USB_DEVICE(0x045B, 0x0053) }, /* Renesas RX610 RX-Stick */ | 55 | { USB_DEVICE(0x045B, 0x0053) }, /* Renesas RX610 RX-Stick */ |
diff --git a/drivers/usb/serial/cyberjack.c b/drivers/usb/serial/cyberjack.c index 98bf83349838..6bc3802a581a 100644 --- a/drivers/usb/serial/cyberjack.c +++ b/drivers/usb/serial/cyberjack.c | |||
| @@ -43,7 +43,7 @@ | |||
| 43 | 43 | ||
| 44 | #define CYBERJACK_LOCAL_BUF_SIZE 32 | 44 | #define CYBERJACK_LOCAL_BUF_SIZE 32 |
| 45 | 45 | ||
| 46 | static int debug; | 46 | static bool debug; |
| 47 | 47 | ||
| 48 | /* | 48 | /* |
| 49 | * Version Information | 49 | * Version Information |
diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c index 07680d6b792b..3bdeafa29c24 100644 --- a/drivers/usb/serial/cypress_m8.c +++ b/drivers/usb/serial/cypress_m8.c | |||
| @@ -46,10 +46,10 @@ | |||
| 46 | #include "cypress_m8.h" | 46 | #include "cypress_m8.h" |
| 47 | 47 | ||
| 48 | 48 | ||
| 49 | static int debug; | 49 | static bool debug; |
| 50 | static int stats; | 50 | static bool stats; |
| 51 | static int interval; | 51 | static int interval; |
| 52 | static int unstable_bauds; | 52 | static bool unstable_bauds; |
| 53 | 53 | ||
| 54 | /* | 54 | /* |
| 55 | * Version Information | 55 | * Version Information |
diff --git a/drivers/usb/serial/digi_acceleport.c b/drivers/usb/serial/digi_acceleport.c index 6d26a77d0f2a..b23bebd721a1 100644 --- a/drivers/usb/serial/digi_acceleport.c +++ b/drivers/usb/serial/digi_acceleport.c | |||
| @@ -251,7 +251,7 @@ static int digi_read_oob_callback(struct urb *urb); | |||
| 251 | 251 | ||
| 252 | /* Statics */ | 252 | /* Statics */ |
| 253 | 253 | ||
| 254 | static int debug; | 254 | static bool debug; |
| 255 | 255 | ||
| 256 | static const struct usb_device_id id_table_combined[] = { | 256 | static const struct usb_device_id id_table_combined[] = { |
| 257 | { USB_DEVICE(DIGI_VENDOR_ID, DIGI_2_ID) }, | 257 | { USB_DEVICE(DIGI_VENDOR_ID, DIGI_2_ID) }, |
diff --git a/drivers/usb/serial/empeg.c b/drivers/usb/serial/empeg.c index 504b5585ea45..aced6817bf95 100644 --- a/drivers/usb/serial/empeg.c +++ b/drivers/usb/serial/empeg.c | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | #include <linux/usb.h> | 28 | #include <linux/usb.h> |
| 29 | #include <linux/usb/serial.h> | 29 | #include <linux/usb/serial.h> |
| 30 | 30 | ||
| 31 | static int debug; | 31 | static bool debug; |
| 32 | 32 | ||
| 33 | /* | 33 | /* |
| 34 | * Version Information | 34 | * Version Information |
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index c290df97108e..01b6404df395 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
| @@ -55,7 +55,7 @@ | |||
| 55 | #define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Bill Ryder <bryder@sgi.com>, Kuba Ober <kuba@mareimbrium.org>, Andreas Mohr, Johan Hovold <jhovold@gmail.com>" | 55 | #define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Bill Ryder <bryder@sgi.com>, Kuba Ober <kuba@mareimbrium.org>, Andreas Mohr, Johan Hovold <jhovold@gmail.com>" |
| 56 | #define DRIVER_DESC "USB FTDI Serial Converters Driver" | 56 | #define DRIVER_DESC "USB FTDI Serial Converters Driver" |
| 57 | 57 | ||
| 58 | static int debug; | 58 | static bool debug; |
| 59 | static __u16 vendor = FTDI_VID; | 59 | static __u16 vendor = FTDI_VID; |
| 60 | static __u16 product; | 60 | static __u16 product; |
| 61 | 61 | ||
diff --git a/drivers/usb/serial/funsoft.c b/drivers/usb/serial/funsoft.c index e21ce9ddfc63..5d4b099dcf8b 100644 --- a/drivers/usb/serial/funsoft.c +++ b/drivers/usb/serial/funsoft.c | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | #include <linux/usb/serial.h> | 16 | #include <linux/usb/serial.h> |
| 17 | #include <linux/uaccess.h> | 17 | #include <linux/uaccess.h> |
| 18 | 18 | ||
| 19 | static int debug; | 19 | static bool debug; |
| 20 | 20 | ||
| 21 | static const struct usb_device_id id_table[] = { | 21 | static const struct usb_device_id id_table[] = { |
| 22 | { USB_DEVICE(0x1404, 0xcddc) }, | 22 | { USB_DEVICE(0x1404, 0xcddc) }, |
diff --git a/drivers/usb/serial/garmin_gps.c b/drivers/usb/serial/garmin_gps.c index bf12565f8e87..21343378c322 100644 --- a/drivers/usb/serial/garmin_gps.c +++ b/drivers/usb/serial/garmin_gps.c | |||
| @@ -42,7 +42,7 @@ | |||
| 42 | static int initial_mode = 1; | 42 | static int initial_mode = 1; |
| 43 | 43 | ||
| 44 | /* debug flag */ | 44 | /* debug flag */ |
| 45 | static int debug; | 45 | static bool debug; |
| 46 | 46 | ||
| 47 | #define GARMIN_VENDOR_ID 0x091E | 47 | #define GARMIN_VENDOR_ID 0x091E |
| 48 | 48 | ||
diff --git a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c index abd2ee2b2f99..0497575e4799 100644 --- a/drivers/usb/serial/io_edgeport.c +++ b/drivers/usb/serial/io_edgeport.c | |||
| @@ -191,7 +191,7 @@ static const struct divisor_table_entry divisor_table[] = { | |||
| 191 | }; | 191 | }; |
| 192 | 192 | ||
| 193 | /* local variables */ | 193 | /* local variables */ |
| 194 | static int debug; | 194 | static bool debug; |
| 195 | 195 | ||
| 196 | static atomic_t CmdUrbs; /* Number of outstanding Command Write Urbs */ | 196 | static atomic_t CmdUrbs; /* Number of outstanding Command Write Urbs */ |
| 197 | 197 | ||
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index e44d375edaad..65bf06aa591a 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c | |||
| @@ -210,10 +210,10 @@ static unsigned char OperationalMajorVersion; | |||
| 210 | static unsigned char OperationalMinorVersion; | 210 | static unsigned char OperationalMinorVersion; |
| 211 | static unsigned short OperationalBuildNumber; | 211 | static unsigned short OperationalBuildNumber; |
| 212 | 212 | ||
| 213 | static int debug; | 213 | static bool debug; |
| 214 | 214 | ||
| 215 | static int closing_wait = EDGE_CLOSING_WAIT; | 215 | static int closing_wait = EDGE_CLOSING_WAIT; |
| 216 | static int ignore_cpu_rev; | 216 | static bool ignore_cpu_rev; |
| 217 | static int default_uart_mode; /* RS232 */ | 217 | static int default_uart_mode; /* RS232 */ |
| 218 | 218 | ||
| 219 | static void edge_tty_recv(struct device *dev, struct tty_struct *tty, | 219 | static void edge_tty_recv(struct device *dev, struct tty_struct *tty, |
diff --git a/drivers/usb/serial/ipaq.c b/drivers/usb/serial/ipaq.c index 36f5cbe90485..06053a920dd8 100644 --- a/drivers/usb/serial/ipaq.c +++ b/drivers/usb/serial/ipaq.c | |||
| @@ -34,7 +34,7 @@ | |||
| 34 | #define DRIVER_DESC "USB PocketPC PDA driver" | 34 | #define DRIVER_DESC "USB PocketPC PDA driver" |
| 35 | 35 | ||
| 36 | static __u16 product, vendor; | 36 | static __u16 product, vendor; |
| 37 | static int debug; | 37 | static bool debug; |
| 38 | static int connect_retries = KP_RETRIES; | 38 | static int connect_retries = KP_RETRIES; |
| 39 | static int initial_wait; | 39 | static int initial_wait; |
| 40 | 40 | ||
diff --git a/drivers/usb/serial/ipw.c b/drivers/usb/serial/ipw.c index 5170799d6e94..6f9356f3f99e 100644 --- a/drivers/usb/serial/ipw.c +++ b/drivers/usb/serial/ipw.c | |||
| @@ -147,7 +147,7 @@ static struct usb_driver usb_ipw_driver = { | |||
| 147 | .no_dynamic_id = 1, | 147 | .no_dynamic_id = 1, |
| 148 | }; | 148 | }; |
| 149 | 149 | ||
| 150 | static int debug; | 150 | static bool debug; |
| 151 | 151 | ||
| 152 | static int ipw_open(struct tty_struct *tty, struct usb_serial_port *port) | 152 | static int ipw_open(struct tty_struct *tty, struct usb_serial_port *port) |
| 153 | { | 153 | { |
diff --git a/drivers/usb/serial/ir-usb.c b/drivers/usb/serial/ir-usb.c index 0c537da0d3cd..84a396e83671 100644 --- a/drivers/usb/serial/ir-usb.c +++ b/drivers/usb/serial/ir-usb.c | |||
| @@ -45,7 +45,7 @@ | |||
| 45 | #define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Johan Hovold <jhovold@gmail.com>" | 45 | #define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Johan Hovold <jhovold@gmail.com>" |
| 46 | #define DRIVER_DESC "USB IR Dongle driver" | 46 | #define DRIVER_DESC "USB IR Dongle driver" |
| 47 | 47 | ||
| 48 | static int debug; | 48 | static bool debug; |
| 49 | 49 | ||
| 50 | /* if overridden by the user, then use their value for the size of the read and | 50 | /* if overridden by the user, then use their value for the size of the read and |
| 51 | * write urbs */ | 51 | * write urbs */ |
diff --git a/drivers/usb/serial/iuu_phoenix.c b/drivers/usb/serial/iuu_phoenix.c index 64d0ffd4440b..3077a4436976 100644 --- a/drivers/usb/serial/iuu_phoenix.c +++ b/drivers/usb/serial/iuu_phoenix.c | |||
| @@ -34,9 +34,9 @@ | |||
| 34 | 34 | ||
| 35 | 35 | ||
| 36 | #ifdef CONFIG_USB_SERIAL_DEBUG | 36 | #ifdef CONFIG_USB_SERIAL_DEBUG |
| 37 | static int debug = 1; | 37 | static bool debug = 1; |
| 38 | #else | 38 | #else |
| 39 | static int debug; | 39 | static bool debug; |
| 40 | #endif | 40 | #endif |
| 41 | 41 | ||
| 42 | /* | 42 | /* |
| @@ -65,7 +65,7 @@ static int clockmode = 1; | |||
| 65 | static int cdmode = 1; | 65 | static int cdmode = 1; |
| 66 | static int iuu_cardin; | 66 | static int iuu_cardin; |
| 67 | static int iuu_cardout; | 67 | static int iuu_cardout; |
| 68 | static int xmas; | 68 | static bool xmas; |
| 69 | static int vcc_default = 5; | 69 | static int vcc_default = 5; |
| 70 | 70 | ||
| 71 | static void read_rxcmd_callback(struct urb *urb); | 71 | static void read_rxcmd_callback(struct urb *urb); |
diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c index bc8dc203e818..4cc36c761801 100644 --- a/drivers/usb/serial/keyspan.c +++ b/drivers/usb/serial/keyspan.c | |||
| @@ -45,7 +45,7 @@ | |||
| 45 | #include <linux/usb/serial.h> | 45 | #include <linux/usb/serial.h> |
| 46 | #include "keyspan.h" | 46 | #include "keyspan.h" |
| 47 | 47 | ||
| 48 | static int debug; | 48 | static bool debug; |
| 49 | 49 | ||
| 50 | /* | 50 | /* |
| 51 | * Version Information | 51 | * Version Information |
diff --git a/drivers/usb/serial/keyspan_pda.c b/drivers/usb/serial/keyspan_pda.c index a40615674a68..7c62a7048302 100644 --- a/drivers/usb/serial/keyspan_pda.c +++ b/drivers/usb/serial/keyspan_pda.c | |||
| @@ -31,7 +31,7 @@ | |||
| 31 | #include <linux/usb.h> | 31 | #include <linux/usb.h> |
| 32 | #include <linux/usb/serial.h> | 32 | #include <linux/usb/serial.h> |
| 33 | 33 | ||
| 34 | static int debug; | 34 | static bool debug; |
| 35 | 35 | ||
| 36 | /* make a simple define to handle if we are compiling keyspan_pda or xircom support */ | 36 | /* make a simple define to handle if we are compiling keyspan_pda or xircom support */ |
| 37 | #if defined(CONFIG_USB_SERIAL_KEYSPAN_PDA) || defined(CONFIG_USB_SERIAL_KEYSPAN_PDA_MODULE) | 37 | #if defined(CONFIG_USB_SERIAL_KEYSPAN_PDA) || defined(CONFIG_USB_SERIAL_KEYSPAN_PDA_MODULE) |
diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c index 19373cb7c5bf..fc064e1442ca 100644 --- a/drivers/usb/serial/kl5kusb105.c +++ b/drivers/usb/serial/kl5kusb105.c | |||
| @@ -49,7 +49,7 @@ | |||
| 49 | #include <linux/usb/serial.h> | 49 | #include <linux/usb/serial.h> |
| 50 | #include "kl5kusb105.h" | 50 | #include "kl5kusb105.h" |
| 51 | 51 | ||
| 52 | static int debug; | 52 | static bool debug; |
| 53 | 53 | ||
| 54 | /* | 54 | /* |
| 55 | * Version Information | 55 | * Version Information |
diff --git a/drivers/usb/serial/mct_u232.c b/drivers/usb/serial/mct_u232.c index a975bb80303f..27fa9c8a77b0 100644 --- a/drivers/usb/serial/mct_u232.c +++ b/drivers/usb/serial/mct_u232.c | |||
| @@ -45,7 +45,7 @@ | |||
| 45 | #define DRIVER_AUTHOR "Wolfgang Grandegger <wolfgang@ces.ch>" | 45 | #define DRIVER_AUTHOR "Wolfgang Grandegger <wolfgang@ces.ch>" |
| 46 | #define DRIVER_DESC "Magic Control Technology USB-RS232 converter driver" | 46 | #define DRIVER_DESC "Magic Control Technology USB-RS232 converter driver" |
| 47 | 47 | ||
| 48 | static int debug; | 48 | static bool debug; |
| 49 | 49 | ||
| 50 | /* | 50 | /* |
| 51 | * Function prototypes | 51 | * Function prototypes |
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c index 19d112f51b97..4554ee49e635 100644 --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c | |||
| @@ -71,7 +71,7 @@ struct moschip_port { | |||
| 71 | struct urb *write_urb_pool[NUM_URBS]; | 71 | struct urb *write_urb_pool[NUM_URBS]; |
| 72 | }; | 72 | }; |
| 73 | 73 | ||
| 74 | static int debug; | 74 | static bool debug; |
| 75 | 75 | ||
| 76 | static struct usb_serial_driver moschip7720_2port_driver; | 76 | static struct usb_serial_driver moschip7720_2port_driver; |
| 77 | 77 | ||
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index 55cfd6265b98..03b5e249e95e 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c | |||
| @@ -263,7 +263,7 @@ struct moschip_port { | |||
| 263 | }; | 263 | }; |
| 264 | 264 | ||
| 265 | 265 | ||
| 266 | static int debug; | 266 | static bool debug; |
| 267 | 267 | ||
| 268 | /* | 268 | /* |
| 269 | * mos7840_set_reg_sync | 269 | * mos7840_set_reg_sync |
diff --git a/drivers/usb/serial/navman.c b/drivers/usb/serial/navman.c index 1f00f243c26c..b28f1db0195f 100644 --- a/drivers/usb/serial/navman.c +++ b/drivers/usb/serial/navman.c | |||
| @@ -21,7 +21,7 @@ | |||
| 21 | #include <linux/usb.h> | 21 | #include <linux/usb.h> |
| 22 | #include <linux/usb/serial.h> | 22 | #include <linux/usb/serial.h> |
| 23 | 23 | ||
| 24 | static int debug; | 24 | static bool debug; |
| 25 | 25 | ||
| 26 | static const struct usb_device_id id_table[] = { | 26 | static const struct usb_device_id id_table[] = { |
| 27 | { USB_DEVICE(0x0a99, 0x0001) }, /* Talon Technology device */ | 27 | { USB_DEVICE(0x0a99, 0x0001) }, /* Talon Technology device */ |
diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c index 45a8c55881d3..8b8d58a2ac12 100644 --- a/drivers/usb/serial/omninet.c +++ b/drivers/usb/serial/omninet.c | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | #include <linux/usb.h> | 23 | #include <linux/usb.h> |
| 24 | #include <linux/usb/serial.h> | 24 | #include <linux/usb/serial.h> |
| 25 | 25 | ||
| 26 | static int debug; | 26 | static bool debug; |
| 27 | 27 | ||
| 28 | /* | 28 | /* |
| 29 | * Version Information | 29 | * Version Information |
diff --git a/drivers/usb/serial/opticon.c b/drivers/usb/serial/opticon.c index 691f57a9d712..262ded9e076b 100644 --- a/drivers/usb/serial/opticon.c +++ b/drivers/usb/serial/opticon.c | |||
| @@ -32,7 +32,7 @@ | |||
| 32 | * an examples of 1D barcode types are EAN, UPC, Code39, IATA etc.. */ | 32 | * an examples of 1D barcode types are EAN, UPC, Code39, IATA etc.. */ |
| 33 | #define DRIVER_DESC "Opticon USB barcode to serial driver (1D)" | 33 | #define DRIVER_DESC "Opticon USB barcode to serial driver (1D)" |
| 34 | 34 | ||
| 35 | static int debug; | 35 | static bool debug; |
| 36 | 36 | ||
| 37 | static const struct usb_device_id id_table[] = { | 37 | static const struct usb_device_id id_table[] = { |
| 38 | { USB_DEVICE(0x065a, 0x0009) }, | 38 | { USB_DEVICE(0x065a, 0x0009) }, |
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index c96b6b6509fb..420d9857394a 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c | |||
| @@ -1234,7 +1234,7 @@ static struct usb_serial_driver option_1port_device = { | |||
| 1234 | #endif | 1234 | #endif |
| 1235 | }; | 1235 | }; |
| 1236 | 1236 | ||
| 1237 | static int debug; | 1237 | static bool debug; |
| 1238 | 1238 | ||
| 1239 | /* per port private data */ | 1239 | /* per port private data */ |
| 1240 | 1240 | ||
diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c index 2161d1c3c089..e287fd32682c 100644 --- a/drivers/usb/serial/oti6858.c +++ b/drivers/usb/serial/oti6858.c | |||
| @@ -74,7 +74,7 @@ static struct usb_driver oti6858_driver = { | |||
| 74 | .no_dynamic_id = 1, | 74 | .no_dynamic_id = 1, |
| 75 | }; | 75 | }; |
| 76 | 76 | ||
| 77 | static int debug; | 77 | static bool debug; |
| 78 | 78 | ||
| 79 | /* requests */ | 79 | /* requests */ |
| 80 | #define OTI6858_REQ_GET_STATUS (USB_DIR_IN | USB_TYPE_VENDOR | 0x00) | 80 | #define OTI6858_REQ_GET_STATUS (USB_DIR_IN | USB_TYPE_VENDOR | 0x00) |
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 329295615d06..3d8cda57ce7a 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
| @@ -36,7 +36,7 @@ | |||
| 36 | */ | 36 | */ |
| 37 | #define DRIVER_DESC "Prolific PL2303 USB to serial adaptor driver" | 37 | #define DRIVER_DESC "Prolific PL2303 USB to serial adaptor driver" |
| 38 | 38 | ||
| 39 | static int debug; | 39 | static bool debug; |
| 40 | 40 | ||
| 41 | #define PL2303_CLOSING_WAIT (30*HZ) | 41 | #define PL2303_CLOSING_WAIT (30*HZ) |
| 42 | 42 | ||
diff --git a/drivers/usb/serial/qcserial.c b/drivers/usb/serial/qcserial.c index aa9367f5b421..1d5deee3be52 100644 --- a/drivers/usb/serial/qcserial.c +++ b/drivers/usb/serial/qcserial.c | |||
| @@ -22,7 +22,7 @@ | |||
| 22 | #define DRIVER_AUTHOR "Qualcomm Inc" | 22 | #define DRIVER_AUTHOR "Qualcomm Inc" |
| 23 | #define DRIVER_DESC "Qualcomm USB Serial driver" | 23 | #define DRIVER_DESC "Qualcomm USB Serial driver" |
| 24 | 24 | ||
| 25 | static int debug; | 25 | static bool debug; |
| 26 | 26 | ||
| 27 | static const struct usb_device_id id_table[] = { | 27 | static const struct usb_device_id id_table[] = { |
| 28 | {USB_DEVICE(0x05c6, 0x9211)}, /* Acer Gobi QDL device */ | 28 | {USB_DEVICE(0x05c6, 0x9211)}, /* Acer Gobi QDL device */ |
diff --git a/drivers/usb/serial/safe_serial.c b/drivers/usb/serial/safe_serial.c index a36e2313eed0..d074b3740dcb 100644 --- a/drivers/usb/serial/safe_serial.c +++ b/drivers/usb/serial/safe_serial.c | |||
| @@ -81,9 +81,9 @@ | |||
| 81 | #define CONFIG_USB_SERIAL_SAFE_PADDED 0 | 81 | #define CONFIG_USB_SERIAL_SAFE_PADDED 0 |
| 82 | #endif | 82 | #endif |
| 83 | 83 | ||
| 84 | static int debug; | 84 | static bool debug; |
| 85 | static int safe = 1; | 85 | static bool safe = 1; |
| 86 | static int padded = CONFIG_USB_SERIAL_SAFE_PADDED; | 86 | static bool padded = CONFIG_USB_SERIAL_SAFE_PADDED; |
| 87 | 87 | ||
| 88 | #define DRIVER_VERSION "v0.1" | 88 | #define DRIVER_VERSION "v0.1" |
| 89 | #define DRIVER_AUTHOR "sl@lineo.com, tbr@lineo.com, Johan Hovold <jhovold@gmail.com>" | 89 | #define DRIVER_AUTHOR "sl@lineo.com, tbr@lineo.com, Johan Hovold <jhovold@gmail.com>" |
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index f2485429172f..fdae0a4407cb 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c | |||
| @@ -46,8 +46,8 @@ | |||
| 46 | allocations > PAGE_SIZE and the number of packets in a page | 46 | allocations > PAGE_SIZE and the number of packets in a page |
| 47 | is an integer 512 is the largest possible packet on EHCI */ | 47 | is an integer 512 is the largest possible packet on EHCI */ |
| 48 | 48 | ||
| 49 | static int debug; | 49 | static bool debug; |
| 50 | static int nmea; | 50 | static bool nmea; |
| 51 | 51 | ||
| 52 | /* Used in interface blacklisting */ | 52 | /* Used in interface blacklisting */ |
| 53 | struct sierra_iface_info { | 53 | struct sierra_iface_info { |
diff --git a/drivers/usb/serial/spcp8x5.c b/drivers/usb/serial/spcp8x5.c index 180ea6c7911c..d7f5eee18f00 100644 --- a/drivers/usb/serial/spcp8x5.c +++ b/drivers/usb/serial/spcp8x5.c | |||
| @@ -33,7 +33,7 @@ | |||
| 33 | #define DRIVER_VERSION "v0.10" | 33 | #define DRIVER_VERSION "v0.10" |
| 34 | #define DRIVER_DESC "SPCP8x5 USB to serial adaptor driver" | 34 | #define DRIVER_DESC "SPCP8x5 USB to serial adaptor driver" |
| 35 | 35 | ||
| 36 | static int debug; | 36 | static bool debug; |
| 37 | 37 | ||
| 38 | #define SPCP8x5_007_VID 0x04FC | 38 | #define SPCP8x5_007_VID 0x04FC |
| 39 | #define SPCP8x5_007_PID 0x0201 | 39 | #define SPCP8x5_007_PID 0x0201 |
diff --git a/drivers/usb/serial/ssu100.c b/drivers/usb/serial/ssu100.c index 87362e48796e..7697858d8858 100644 --- a/drivers/usb/serial/ssu100.c +++ b/drivers/usb/serial/ssu100.c | |||
| @@ -46,7 +46,7 @@ | |||
| 46 | #define FULLPWRBIT 0x00000080 | 46 | #define FULLPWRBIT 0x00000080 |
| 47 | #define NEXT_BOARD_POWER_BIT 0x00000004 | 47 | #define NEXT_BOARD_POWER_BIT 0x00000004 |
| 48 | 48 | ||
| 49 | static int debug; | 49 | static bool debug; |
| 50 | 50 | ||
| 51 | /* Version Information */ | 51 | /* Version Information */ |
| 52 | #define DRIVER_VERSION "v0.1" | 52 | #define DRIVER_VERSION "v0.1" |
diff --git a/drivers/usb/serial/symbolserial.c b/drivers/usb/serial/symbolserial.c index c70cc012d03f..50651cf4fc61 100644 --- a/drivers/usb/serial/symbolserial.c +++ b/drivers/usb/serial/symbolserial.c | |||
| @@ -20,7 +20,7 @@ | |||
| 20 | #include <linux/usb/serial.h> | 20 | #include <linux/usb/serial.h> |
| 21 | #include <linux/uaccess.h> | 21 | #include <linux/uaccess.h> |
| 22 | 22 | ||
| 23 | static int debug; | 23 | static bool debug; |
| 24 | 24 | ||
| 25 | static const struct usb_device_id id_table[] = { | 25 | static const struct usb_device_id id_table[] = { |
| 26 | { USB_DEVICE(0x05e0, 0x0600) }, | 26 | { USB_DEVICE(0x05e0, 0x0600) }, |
diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c index 4af21f46096e..8468eb769a29 100644 --- a/drivers/usb/serial/ti_usb_3410_5052.c +++ b/drivers/usb/serial/ti_usb_3410_5052.c | |||
| @@ -150,7 +150,7 @@ static int ti_download_firmware(struct ti_device *tdev); | |||
| 150 | /* Data */ | 150 | /* Data */ |
| 151 | 151 | ||
| 152 | /* module parameters */ | 152 | /* module parameters */ |
| 153 | static int debug; | 153 | static bool debug; |
| 154 | static int closing_wait = TI_DEFAULT_CLOSING_WAIT; | 154 | static int closing_wait = TI_DEFAULT_CLOSING_WAIT; |
| 155 | static ushort vendor_3410[TI_EXTRA_VID_PID_COUNT]; | 155 | static ushort vendor_3410[TI_EXTRA_VID_PID_COUNT]; |
| 156 | static unsigned int vendor_3410_count; | 156 | static unsigned int vendor_3410_count; |
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index ce6c1a65a544..611b206591cb 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
| @@ -61,7 +61,7 @@ static struct usb_driver usb_serial_driver = { | |||
| 61 | drivers depend on it. | 61 | drivers depend on it. |
| 62 | */ | 62 | */ |
| 63 | 63 | ||
| 64 | static int debug; | 64 | static bool debug; |
| 65 | /* initially all NULL */ | 65 | /* initially all NULL */ |
| 66 | static struct usb_serial *serial_table[SERIAL_TTY_MINORS]; | 66 | static struct usb_serial *serial_table[SERIAL_TTY_MINORS]; |
| 67 | static DEFINE_MUTEX(table_lock); | 67 | static DEFINE_MUTEX(table_lock); |
diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c index d555ca9567b8..c88657dd31c8 100644 --- a/drivers/usb/serial/usb_wwan.c +++ b/drivers/usb/serial/usb_wwan.c | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | #include <linux/serial.h> | 37 | #include <linux/serial.h> |
| 38 | #include "usb-wwan.h" | 38 | #include "usb-wwan.h" |
| 39 | 39 | ||
| 40 | static int debug; | 40 | static bool debug; |
| 41 | 41 | ||
| 42 | void usb_wwan_dtr_rts(struct usb_serial_port *port, int on) | 42 | void usb_wwan_dtr_rts(struct usb_serial_port *port, int on) |
| 43 | { | 43 | { |
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c index 1c11959a7d58..210e4b10dc11 100644 --- a/drivers/usb/serial/visor.c +++ b/drivers/usb/serial/visor.c | |||
| @@ -52,7 +52,7 @@ static int palm_os_4_probe(struct usb_serial *serial, | |||
| 52 | const struct usb_device_id *id); | 52 | const struct usb_device_id *id); |
| 53 | 53 | ||
| 54 | /* Parameters that may be passed into the module. */ | 54 | /* Parameters that may be passed into the module. */ |
| 55 | static int debug; | 55 | static bool debug; |
| 56 | static __u16 vendor; | 56 | static __u16 vendor; |
| 57 | static __u16 product; | 57 | static __u16 product; |
| 58 | 58 | ||
diff --git a/drivers/usb/serial/whiteheat.c b/drivers/usb/serial/whiteheat.c index 11af903cb09f..7e0acf5c8e38 100644 --- a/drivers/usb/serial/whiteheat.c +++ b/drivers/usb/serial/whiteheat.c | |||
| @@ -36,7 +36,7 @@ | |||
| 36 | #include <linux/ihex.h> | 36 | #include <linux/ihex.h> |
| 37 | #include "whiteheat.h" /* WhiteHEAT specific commands */ | 37 | #include "whiteheat.h" /* WhiteHEAT specific commands */ |
| 38 | 38 | ||
| 39 | static int debug; | 39 | static bool debug; |
| 40 | 40 | ||
| 41 | #ifndef CMSPAR | 41 | #ifndef CMSPAR |
| 42 | #define CMSPAR 0 | 42 | #define CMSPAR 0 |
