Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 025d4430 authored by Rahul Bedarkar's avatar Rahul Bedarkar Committed by Greg Kroah-Hartman
Browse files

USB: core: correct spelling mistakes in comments and warning

parent d7e92f7f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
 * DMA memory management for framework level HCD code (hc_driver)
 *
 * 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>
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ module_param(usbfs_memory_mb, uint, 0644);
MODULE_PARM_DESC(usbfs_memory_mb,
		"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)

static atomic_t usbfs_memory_usage;	/* Total memory currently allocated */
+1 −1
Original line number Diff line number Diff line
@@ -1298,7 +1298,7 @@ EXPORT_SYMBOL_GPL(usb_hcd_unlink_urb_from_ep);
 *   DMA framework is dma_declare_coherent_memory()
 *
 * - 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".
 *
 */
+4 −3
Original line number Diff line number Diff line
@@ -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,
			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
 */
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;
		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))
				return -EBUSY;
		}
@@ -4912,7 +4913,7 @@ static void hub_events(void)

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
	 * was gone before the EHCI controller had handed its port over to
	 * the companion full-speed controller.
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ struct usb_hub {

/**
 * 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
 * @port_owner: port's owner
 * @connect_type: port's connect type
Loading