linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Arend van Spriel" <arend@broadcom.com>
To: "sukeshs@broadcom.com" <sukeshs@broadcom.com>
Cc: "gregkh@suse.de" <gregkh@suse.de>,
	"devel@linuxdriverproject.org" <devel@linuxdriverproject.org>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH 2/2] brcm80211: Fix for suspend/resume bug
Date: Tue, 3 May 2011 11:10:01 +0200	[thread overview]
Message-ID: <4DBFC669.9020900@broadcom.com> (raw)
In-Reply-To: <1304406057-8722-3-git-send-email-sukeshs@broadcom.com>

On 05/03/2011 09:00 AM, sukeshs@broadcom.com wrote:
> From: Sukesh Srikakula<sukeshs@xl-sj1-20.sj.broadcom.com>
>
> Currently, there are 2 callbacks registered with OS for getting notifications when system goes to suspend/resume.
> Racing between these 2 callbacks leads to failure in the suspend/resume path.
> With this fix, we avoid registering dhd callback for suspend/resume notification when cfg80211 is used. Relevant functionality in dhd suspend/resume callback function is moved to cfg80211 suspend/resume functions.
>
> Signed-off-by: Sukesh Srikakula<sukeshs@broadcom.com>
> Signed-off-by: Sukesh Srikakula<sukeshs@xl-sj1-20.sj.broadcom.com>
> ---
> diff --git a/drivers/staging/brcm80211/brcmfmac/dhd.h b/drivers/staging/brcm80211/brcmfmac/dhd.h
> index 99c38dd..41c55a6 100644
> --- a/drivers/staging/brcm80211/brcmfmac/dhd.h
> +++ b/drivers/staging/brcm80211/brcmfmac/dhd.h
> @@ -123,6 +124,8 @@ typedef struct dhd_pub {
>
>   #if defined(CONFIG_PM_SLEEP)
>
> +extern volatile bool dhd_mmc_suspend;
> +

You probably should run checkpatch.pl on this patch. The volatile 
keyword triggers a warning here. I grepped the fullmac code and this 
variable is only set so what is its purpose (debugging?)? See 
Documentation/volatile-considered-harmful.txt on this topic.

Gr. AvS



  reply	other threads:[~2011-05-03  9:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-03  7:00 [PATCH 0/2] *** SUBJECT HERE *** sukeshs
2011-05-03  7:00 ` [PATCH 1/2] brcm80211: FIX for TKIP GTK bug sukeshs
2011-05-03  7:00 ` [PATCH 2/2] brcm80211: Fix for suspend/resume bug sukeshs
2011-05-03  9:10   ` Arend van Spriel [this message]
2011-05-03 12:15   ` Greg KH
2011-05-03 12:33     ` Arend van Spriel
2011-05-03 13:00       ` Greg KH
2011-05-03 13:09         ` Arend van Spriel
2011-05-03 13:11           ` Greg KH
2011-05-03 13:17             ` Arend van Spriel
2011-05-03 13:41               ` Arend van Spriel
2011-05-03 19:46                 ` Greg KH
2011-05-03 12:14 ` [PATCH 0/2] *** SUBJECT HERE *** Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DBFC669.9020900@broadcom.com \
    --to=arend@broadcom.com \
    --cc=devel@linuxdriverproject.org \
    --cc=gregkh@suse.de \
    --cc=linux-wireless@vger.kernel.org \
    --cc=sukeshs@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).