From: Luis R. Rodriguez Date: Sat, 31 Mar 2012 03:05:47 +0000 (-0700) Subject: compat: backport USB asynchronous autosuspend/autoresume support (9ac39f28b) X-Git-Tag: compat-2012-07-02~1^2~38 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=22fdc7c29c8eb4e288ccc49cf7a5b0a982425987;p=~emulex%2Ffor-vlad%2Fold%2Fcompat.git compat: backport USB asynchronous autosuspend/autoresume support (9ac39f28b) Just disable it. commit 9ac39f28b5237a629e41ccfc1f73d3a55723045c Author: Alan Stern Date: Wed Nov 12 16:19:49 2008 -0500 USB: add asynchronous autosuspend/autoresume support This patch (as1160b) adds support routines for asynchronous autosuspend and autoresume, with accompanying documentation updates. There already are several potential users of this interface, and others are likely to arise as autosuspend support becomes more widespread. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman mcgrof@tux ~/linux-stable (git::master)$ git describe \ --contains 9ac39f28b5237a629e41ccfc1f73d3a55723045c v2.6.29-rc1~182^2~99 mcgrof@tux ~/compat (git::master)$ ckmake Trying kernel 3.3.0-030300rc2-generic [OK] Trying kernel 3.2.2-030202-generic [OK] Trying kernel 3.1.10-030110-generic [OK] Trying kernel 3.0.18-030018-generic [OK] Trying kernel 2.6.39-02063904-generic [OK] Trying kernel 2.6.38-13-generic [OK] Trying kernel 2.6.38-02063808-generic [OK] Trying kernel 2.6.37-02063706-generic [OK] Trying kernel 2.6.36-02063604-generic [OK] Trying kernel 2.6.35-02063512-generic [OK] Trying kernel 2.6.34-02063410-generic [OK] Trying kernel 2.6.33-02063305-generic [OK] Trying kernel 2.6.32-02063255-generic [OK] Trying kernel 2.6.31-22-generic [OK] Trying kernel 2.6.31-02063113-generic [OK] Trying kernel 2.6.30-02063010-generic [OK] Trying kernel 2.6.29-02062906-generic [OK] Trying kernel 2.6.28-02062810-generic [OK] Trying kernel 2.6.27-020627-generic [OK] Trying kernel 2.6.26-020626-generic [OK] Trying kernel 2.6.25-020625-generic [OK] Trying kernel 2.6.24-020624-generic [OK] Signed-off-by: Luis R. Rodriguez --- diff --git a/include/linux/compat-2.6.29.h b/include/linux/compat-2.6.29.h index 1e538bb..0892e7d 100644 --- a/include/linux/compat-2.6.29.h +++ b/include/linux/compat-2.6.29.h @@ -18,6 +18,12 @@ #include #include +/* backports */ +static inline void usb_autopm_put_interface_async(struct usb_interface *intf) +{ } +static inline int usb_autopm_get_interface_async(struct usb_interface *intf) +{ return 0; } + #if \ defined(CONFIG_ALPHA) || defined(CONFIG_AVR32) || \ defined(CONFIG_BLACKFIN) || defined(CONFIG_CRIS) || \