lkml.org 
[lkml]   [2012]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V2] rtl8192cu: Fix WARNING on suspend/resume
On 1/9/2012 3:46 PM, Larry Finger wrote:
>
> +#ifdef CONFIG_PM_SLEEP
> +static int rtl8192cu_usb_suspend(struct usb_interface *pusb_intf,
> + pm_message_t message)
> +{
> + /* Increase usage_count to Save loaded fw across suspend/resume */
> + atomic_inc(&usage_count);
> + return 0;
> +}
> +
>
If firmware is not actively loaded on a 0 to 1 transition of
usage_count, what good is this
atomic_inc doing?

I admit that my understanding is probably at fault, but it looks odd.


I took off list because this message is probably just noise.

Troy



\
 
 \ /
  Last update: 2012-01-10 01:27    [W:0.038 / U:0.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site