Return-path: Received: from mx1.redhat.com ([209.132.183.28]:15419 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751506Ab2AZLaA (ORCPT ); Thu, 26 Jan 2012 06:30:00 -0500 Date: Thu, 26 Jan 2012 12:29:42 +0100 From: Stanislaw Gruszka To: Greg KH , Matthew Dharm Cc: Francis Moreau , Josh Boyer , Linux Kernel Mailing List , "linux-wireless@vger.kernel.org" , "John W. Linville" , Arend van Spriel , linux-usb@vger.kernel.org Subject: [PATCH] USB: Realtek cr: fix autopm scheduling while atomic Message-ID: <20120126112942.GC2451@redhat.com> (sfid-20120126_123032_313072_9DB3892B) References: <4F1FBAA9.4040405@broadcom.com> <4F1FD2AA.9020708@broadcom.com> <4F21173A.9060405@broadcom.com> <4F2121BB.4050001@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <4F2121BB.4050001@broadcom.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=784345 Reported-by: Francis Moreau Reported-and-tested-by: Christian D Reported-and-tested-by: Jimmy Dorff Reported-and-tested-by: collura@ieee.org Cc: stable@vger.kernel.org # 3.2+ Signed-off-by: Stanislaw Gruszka 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__,