USB: core: correct spelling mistakes in comments and warning
Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Acked-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d7e92f7f76
commit
025d44309f
|
@ -2,7 +2,7 @@
|
||||||
* DMA memory management for framework level HCD code (hc_driver)
|
* DMA memory management for framework level HCD code (hc_driver)
|
||||||
*
|
*
|
||||||
* This implementation plugs in through generic "usb_bus" level methods,
|
* This implementation plugs in through generic "usb_bus" level methods,
|
||||||
* and should work with all USB controllers, regardles of bus type.
|
* and should work with all USB controllers, regardless of bus type.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
|
|
|
@ -118,7 +118,7 @@ module_param(usbfs_memory_mb, uint, 0644);
|
||||||
MODULE_PARM_DESC(usbfs_memory_mb,
|
MODULE_PARM_DESC(usbfs_memory_mb,
|
||||||
"maximum MB allowed for usbfs buffers (0 = no limit)");
|
"maximum MB allowed for usbfs buffers (0 = no limit)");
|
||||||
|
|
||||||
/* Hard limit, necessary to avoid aithmetic overflow */
|
/* Hard limit, necessary to avoid arithmetic overflow */
|
||||||
#define USBFS_XFER_MAX (UINT_MAX / 2 - 1000000)
|
#define USBFS_XFER_MAX (UINT_MAX / 2 - 1000000)
|
||||||
|
|
||||||
static atomic_t usbfs_memory_usage; /* Total memory currently allocated */
|
static atomic_t usbfs_memory_usage; /* Total memory currently allocated */
|
||||||
|
|
|
@ -1298,7 +1298,7 @@ EXPORT_SYMBOL_GPL(usb_hcd_unlink_urb_from_ep);
|
||||||
* DMA framework is dma_declare_coherent_memory()
|
* DMA framework is dma_declare_coherent_memory()
|
||||||
*
|
*
|
||||||
* - So we use that, even though the primary requirement
|
* - So we use that, even though the primary requirement
|
||||||
* is that the memory be "local" (hence addressible
|
* is that the memory be "local" (hence addressable
|
||||||
* by that device), not "coherent".
|
* by that device), not "coherent".
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -2513,7 +2513,7 @@ static bool use_new_scheme(struct usb_device *udev, int retry)
|
||||||
static int hub_port_reset(struct usb_hub *hub, int port1,
|
static int hub_port_reset(struct usb_hub *hub, int port1,
|
||||||
struct usb_device *udev, unsigned int delay, bool warm);
|
struct usb_device *udev, unsigned int delay, bool warm);
|
||||||
|
|
||||||
/* Is a USB 3.0 port in the Inactive or Complinance Mode state?
|
/* Is a USB 3.0 port in the Inactive or Compliance Mode state?
|
||||||
* Port worm reset is required to recover
|
* Port worm reset is required to recover
|
||||||
*/
|
*/
|
||||||
static bool hub_port_warm_reset_required(struct usb_hub *hub, u16 portstatus)
|
static bool hub_port_warm_reset_required(struct usb_hub *hub, u16 portstatus)
|
||||||
|
@ -3321,7 +3321,8 @@ static int hub_suspend(struct usb_interface *intf, pm_message_t msg)
|
||||||
|
|
||||||
udev = hub->ports[port1 - 1]->child;
|
udev = hub->ports[port1 - 1]->child;
|
||||||
if (udev && udev->can_submit) {
|
if (udev && udev->can_submit) {
|
||||||
dev_warn(&intf->dev, "port %d nyet suspended\n", port1);
|
dev_warn(&intf->dev, "port %d not suspended yet\n",
|
||||||
|
port1);
|
||||||
if (PMSG_IS_AUTO(msg))
|
if (PMSG_IS_AUTO(msg))
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
|
@ -4912,7 +4913,7 @@ static void hub_events(void)
|
||||||
|
|
||||||
static int hub_thread(void *__unused)
|
static int hub_thread(void *__unused)
|
||||||
{
|
{
|
||||||
/* khubd needs to be freezable to avoid intefering with USB-PERSIST
|
/* khubd needs to be freezable to avoid interfering with USB-PERSIST
|
||||||
* port handover. Otherwise it might see that a full-speed device
|
* port handover. Otherwise it might see that a full-speed device
|
||||||
* was gone before the EHCI controller had handed its port over to
|
* was gone before the EHCI controller had handed its port over to
|
||||||
* the companion full-speed controller.
|
* the companion full-speed controller.
|
||||||
|
|
|
@ -78,7 +78,7 @@ struct usb_hub {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct usb port - kernel's representation of a usb port
|
* struct usb port - kernel's representation of a usb port
|
||||||
* @child: usb device attatched to the port
|
* @child: usb device attached to the port
|
||||||
* @dev: generic device interface
|
* @dev: generic device interface
|
||||||
* @port_owner: port's owner
|
* @port_owner: port's owner
|
||||||
* @connect_type: port's connect type
|
* @connect_type: port's connect type
|
||||||
|
|
|
@ -218,7 +218,7 @@ EXPORT_SYMBOL_GPL(usb_interrupt_msg);
|
||||||
*
|
*
|
||||||
* Return:
|
* Return:
|
||||||
* If successful, 0. Otherwise a negative error number. The number of actual
|
* If successful, 0. Otherwise a negative error number. The number of actual
|
||||||
* bytes transferred will be stored in the @actual_length paramater.
|
* bytes transferred will be stored in the @actual_length parameter.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
int usb_bulk_msg(struct usb_device *usb_dev, unsigned int pipe,
|
int usb_bulk_msg(struct usb_device *usb_dev, unsigned int pipe,
|
||||||
|
@ -518,7 +518,7 @@ void usb_sg_wait(struct usb_sg_request *io)
|
||||||
io->urbs[i]->dev = io->dev;
|
io->urbs[i]->dev = io->dev;
|
||||||
retval = usb_submit_urb(io->urbs[i], GFP_ATOMIC);
|
retval = usb_submit_urb(io->urbs[i], GFP_ATOMIC);
|
||||||
|
|
||||||
/* after we submit, let completions or cancelations fire;
|
/* after we submit, let completions or cancellations fire;
|
||||||
* we handshake using io->status.
|
* we handshake using io->status.
|
||||||
*/
|
*/
|
||||||
spin_unlock_irq(&io->lock);
|
spin_unlock_irq(&io->lock);
|
||||||
|
|
|
@ -837,7 +837,7 @@ void usb_remove_sysfs_dev_files(struct usb_device *udev)
|
||||||
device_remove_bin_file(dev, &dev_bin_attr_descriptors);
|
device_remove_bin_file(dev, &dev_bin_attr_descriptors);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Interface Accociation Descriptor fields */
|
/* Interface Association Descriptor fields */
|
||||||
#define usb_intf_assoc_attr(field, format_string) \
|
#define usb_intf_assoc_attr(field, format_string) \
|
||||||
static ssize_t \
|
static ssize_t \
|
||||||
iad_##field##_show(struct device *dev, struct device_attribute *attr, \
|
iad_##field##_show(struct device *dev, struct device_attribute *attr, \
|
||||||
|
|
|
@ -53,7 +53,7 @@ EXPORT_SYMBOL_GPL(usb_init_urb);
|
||||||
* valid options for this.
|
* valid options for this.
|
||||||
*
|
*
|
||||||
* Creates an urb for the USB driver to use, initializes a few internal
|
* Creates an urb for the USB driver to use, initializes a few internal
|
||||||
* structures, incrementes the usage counter, and returns a pointer to it.
|
* structures, increments the usage counter, and returns a pointer to it.
|
||||||
*
|
*
|
||||||
* If the driver want to use this urb for interrupt, control, or bulk
|
* If the driver want to use this urb for interrupt, control, or bulk
|
||||||
* endpoints, pass '0' as the number of iso packets.
|
* endpoints, pass '0' as the number of iso packets.
|
||||||
|
@ -281,7 +281,7 @@ EXPORT_SYMBOL_GPL(usb_unanchor_urb);
|
||||||
*
|
*
|
||||||
* Device drivers must explicitly request that repetition, by ensuring that
|
* Device drivers must explicitly request that repetition, by ensuring that
|
||||||
* some URB is always on the endpoint's queue (except possibly for short
|
* some URB is always on the endpoint's queue (except possibly for short
|
||||||
* periods during completion callacks). When there is no longer an urb
|
* periods during completion callbacks). When there is no longer an urb
|
||||||
* queued, the endpoint's bandwidth reservation is canceled. This means
|
* queued, the endpoint's bandwidth reservation is canceled. This means
|
||||||
* drivers can use their completion handlers to ensure they keep bandwidth
|
* drivers can use their completion handlers to ensure they keep bandwidth
|
||||||
* they need, by reinitializing and resubmitting the just-completed urb
|
* they need, by reinitializing and resubmitting the just-completed urb
|
||||||
|
|
|
@ -92,7 +92,7 @@ static int usb_acpi_check_port_connect_type(struct usb_device *hdev,
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Accoding to ACPI Spec 9.13. PLD indicates whether usb port is
|
* According to ACPI Spec 9.13. PLD indicates whether usb port is
|
||||||
* user visible and _UPC indicates whether it is connectable. If
|
* user visible and _UPC indicates whether it is connectable. If
|
||||||
* the port was visible and connectable, it could be freely connected
|
* the port was visible and connectable, it could be freely connected
|
||||||
* and disconnected with USB devices. If no visible and connectable,
|
* and disconnected with USB devices. If no visible and connectable,
|
||||||
|
|
Loading…
Reference in New Issue