[kernel/f16] Test fix for realtek_async_autopm oops from Stanislaw Gruszka (rhbz 784345)

Josh Boyer jwboyer at fedoraproject.org
Thu Jan 26 03:05:53 UTC 2012


commit 8d85deadf798b961b4684875791ce919faad48bf
Author: Josh Boyer <jwboyer at redhat.com>
Date:   Wed Jan 25 20:15:56 2012 -0500

    Test fix for realtek_async_autopm oops from Stanislaw Gruszka (rhbz 784345)

 kernel.spec                |    7 +++++++
 realtek_async_autopm.patch |   13 +++++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/kernel.spec b/kernel.spec
index 5b7b8c9..e383af9 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -808,6 +808,9 @@ Patch21227: mac80211-fix-work-removal-on-deauth-request.patch
 #rhbz 718790
 Patch21230: rds-Make-rds_sock_lock-BH-rather-than-IRQ-safe.patch
 
+#rhbz 784345
+Patch21231: realtek_async_autopm.patch
+
 Patch22000: rcu-reintroduce-missing-calls.patch
 
 # compat-wireless patches
@@ -1508,6 +1511,9 @@ ApplyPatch rds-Make-rds_sock_lock-BH-rather-than-IRQ-safe.patch
 #rhbz 783211
 ApplyPatch fs-Inval-cache-for-parent-block-device-if-fsync-called-on-part.patch
 
+#rhbz 784345
+ApplyPatch realtek_async_autopm.patch
+
 # END OF PATCH APPLICATIONS
 
 %endif
@@ -2283,6 +2289,7 @@ fi
 - Linux 3.2.2
 - Add patch to invalidate parent cache when fsync is called on a partition 
   (rhbz 783211)
+- Test fix for realtek_async_autopm oops from Stanislaw Gruszka (rhbz 784345)
 
 * Wed Jan 25 2012 John W. Linville <linville at redhat.com>
 - modpost: add option to allow external modules to avoid taint
diff --git a/realtek_async_autopm.patch b/realtek_async_autopm.patch
new file mode 100644
index 0000000..3c6b45c
--- /dev/null
+++ b/realtek_async_autopm.patch
@@ -0,0 +1,13 @@
+diff --git a/drivers/usb/storage/realtek_cr.c b/drivers/usb/storage/realtek_cr.c
+index 1f62723..d32f720 100644
+--- a/drivers/usb/storage/realtek_cr.c
++++ b/drivers/usb/storage/realtek_cr.c
+@@ -789,7 +789,7 @@ static void rts51x_suspend_timer_fn(unsigned long data)
+ 			rts51x_set_stat(chip, RTS51X_STAT_SS);
+ 			/* ignore mass storage interface's children */
+ 			pm_suspend_ignore_children(&us->pusb_intf->dev, true);
+-			usb_autopm_put_interface(us->pusb_intf);
++			usb_autopm_put_interface_async(us->pusb_intf);
+ 			US_DEBUGP("%s: RTS51X_STAT_SS 01,"
+ 				"intf->pm_usage_cnt:%d, power.usage:%d\n",
+ 				__func__,


More information about the scm-commits mailing list