diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-18 15:32:57 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-18 15:36:06 +0000 |
commit | 673abd92f999829bdd67d0273c43570a62123a63 (patch) | |
tree | 63132d1ffc1cb5bf50d244b184ca8d58a9cbc85c /meta/recipes-kernel/linux/linux-netbook-2.6.33.2/linux-2.6-driver-level-usb-autosuspend.patch | |
parent | fed61beb31c47e2d96af905a7047fe78d64c9bd0 (diff) | |
download | openembedded-core-673abd92f999829bdd67d0273c43570a62123a63.tar.gz openembedded-core-673abd92f999829bdd67d0273c43570a62123a63.tar.bz2 openembedded-core-673abd92f999829bdd67d0273c43570a62123a63.tar.xz openembedded-core-673abd92f999829bdd67d0273c43570a62123a63.zip |
conf/machine: Drop older machines with no recent updates
These are all moving to meta-extras. Ideally in the future machines
such as these will be maintained to topic specific layers as we move
to a more layer oriented model. If this causes a problem for anyone
please discuss it on the mailing list.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/linux/linux-netbook-2.6.33.2/linux-2.6-driver-level-usb-autosuspend.patch')
-rw-r--r-- | meta/recipes-kernel/linux/linux-netbook-2.6.33.2/linux-2.6-driver-level-usb-autosuspend.patch | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/meta/recipes-kernel/linux/linux-netbook-2.6.33.2/linux-2.6-driver-level-usb-autosuspend.patch b/meta/recipes-kernel/linux/linux-netbook-2.6.33.2/linux-2.6-driver-level-usb-autosuspend.patch deleted file mode 100644 index fc0fd7e4a..000000000 --- a/meta/recipes-kernel/linux/linux-netbook-2.6.33.2/linux-2.6-driver-level-usb-autosuspend.patch +++ /dev/null @@ -1,60 +0,0 @@ -commit 0f592e33934bf6108e33e34f00b425f98ee833ef -Author: Matthew Garrett <mjg@redhat.com> -Date: Wed Jul 8 19:04:23 2009 +0100 - - usb: Allow drivers to enable USB autosuspend on a per-device basis - - USB autosuspend is currently only enabled by default for hubs. On other - hardware the decision is made by userspace. This is unnecessary in cases - where we know that the hardware supports autosuspend, so this patch adds - a function to allow drivers to enable it at probe time. - - Signed-off-by: Matthew Garrett <mjg@redhat.com> - -diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c -index 60a45f1..06d24df 100644 ---- a/drivers/usb/core/driver.c -+++ b/drivers/usb/core/driver.c -@@ -1648,6 +1648,20 @@ void usb_autopm_put_interface_async(struct usb_interface *intf) - EXPORT_SYMBOL_GPL(usb_autopm_put_interface_async); - - /** -+ * usb_device_autosuspend_enable - enable autosuspend on a device -+ * @udev: the usb_device to be autosuspended -+ * -+ * This routine should be called by an interface driver when it knows that -+ * the device in question supports USB autosuspend. -+ * -+ */ -+void usb_device_autosuspend_enable(struct usb_device *udev) -+{ -+ udev->autosuspend_disabled = 0; -+} -+EXPORT_SYMBOL_GPL(usb_device_autosuspend_enable); -+ -+/** - * usb_autopm_get_interface - increment a USB interface's PM-usage counter - * @intf: the usb_interface whose counter should be incremented - * -diff --git a/include/linux/usb.h b/include/linux/usb.h -index e101a2d..dd47590 100644 ---- a/include/linux/usb.h -+++ b/include/linux/usb.h -@@ -540,6 +540,7 @@ extern struct usb_device *usb_find_device(u16 vendor_id, u16 product_id); - - /* USB autosuspend and autoresume */ - #ifdef CONFIG_USB_SUSPEND -+extern void usb_device_autosuspend_enable(struct usb_device *udev); - extern int usb_autopm_get_interface(struct usb_interface *intf); - extern void usb_autopm_put_interface(struct usb_interface *intf); - extern int usb_autopm_get_interface_async(struct usb_interface *intf); -@@ -563,6 +564,9 @@ static inline void usb_mark_last_busy(struct usb_device *udev) - - #else - -+static inline void usb_device_autosuspend_enable(struct usb_device *udev) -+{ } -+ - static inline int usb_autopm_get_interface(struct usb_interface *intf) - { return 0; } - static inline int usb_autopm_get_interface_async(struct usb_interface *intf) |