Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Issue 6802002: drivers/staging/brcm80211: Fix for suspend/resume bug (Closed)

Created:
9 years, 8 months ago by sukeshs
Modified:
9 years, 6 months ago
CC:
chromium-os-reviews_chromium.org, vb+kernel_google.com, Mandeep Singh Baines
Visibility:
Public.

Description

drivers/staging/brcm80211: Fix for suspend/resume bug Currently, there are 2 callbacks registered with OS for getting notifications when system goes to suspend/resume. Racing between these 2 callbacks is the reason for the failure. With this fix, we avoid registering dhd callback for suspend/resume notification when cfg80211 is used. Relevent functionality in dhd suspend/resume callback function is moved to cfg80211 suspend/resume functions. Change-Id: Ic29f711eed74d975e6d9558cf93899b85db0678d BUG=chromium-os-partner:13867, chromium-os-partner:12337 TEST= Manually tested the suspend/resume functionality & Ran 002Suspend test from WiFiRoaming test suite. Signed-off-by: Sukesh Srikakula <sukeshs@broadcom.com>; Reviewed-by: Tested-by:

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -7 lines) Patch
M drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c View 1 1 chunk +0 lines, -4 lines 0 comments Download
M drivers/staging/brcm80211/brcmfmac/dhd.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M drivers/staging/brcm80211/brcmfmac/dhd_linux.c View 2 chunks +8 lines, -2 lines 0 comments Download
M drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c View 1 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
ggg
Just some nits. In general, use of "volatile" suggests a "home grown" semaphore implementation. Probably ...
9 years, 8 months ago (2011-04-07 20:28:57 UTC) #1
Sam Leffler
What are "whitebox tests"? Were any of our automated suspend/resume tests run (that depend on ...
9 years, 8 months ago (2011-04-07 21:30:07 UTC) #2
sukeshs
On 2011/04/07 20:28:57, ggg wrote: Thanks for the comments. your first comment regarding the use ...
9 years, 8 months ago (2011-04-14 01:26:08 UTC) #3
ggg
On 2011/04/14 01:26:08, sukeshs wrote: > Thanks for the comments. > your first comment regarding ...
9 years, 8 months ago (2011-04-14 16:38:52 UTC) #4
Olof Johansson
Hi, This patch needs some description cleanup before it can be committed, including a signed-off-by ...
9 years, 8 months ago (2011-04-14 18:01:00 UTC) #5
sukeshs
> Why the new CL number? > You should be able upload to the same ...
9 years, 8 months ago (2011-04-14 18:01:08 UTC) #6
grundler
Hi Sukesh, On Thu, Apr 14, 2011 at 11:00 AM, Sukesh Srikakula <sukeshs@broadcom.com> wrote: ...
9 years, 8 months ago (2011-04-14 18:23:06 UTC) #7
sukeshs
On 2011/04/07 21:30:07, Sam Leffler wrote: Sorry for not being clear. Actually I ran 002Suspend ...
9 years, 8 months ago (2011-04-14 19:51:38 UTC) #8
sukeshs
On 2011/04/14 18:01:00, Olof Johansson wrote: Updated the issue description line with module name. Can ...
9 years, 8 months ago (2011-04-14 19:54:40 UTC) #9
ggg
On Thu, Apr 14, 2011 at 12:54 PM, <sukeshs@broadcom.com> wrote: > On 2011/04/14 18:01:00, Olof ...
9 years, 8 months ago (2011-04-14 21:27:56 UTC) #10
Olof Johansson
I had comments on the other CL. Copying them over here: http://codereview.chromium.org/6851008/diff/1/drivers/staging/brcm80211/brcmf... File drivers/staging/brcm80211/brcmfmac/dhd.h (right): ...
9 years, 8 months ago (2011-04-15 00:34:59 UTC) #11
Olof Johansson
Also, never ever add someone else name to signed-off/reviewed/tested without them explicitly offering it. I ...
9 years, 8 months ago (2011-04-15 00:36:20 UTC) #12
grundler
On Thu, Apr 14, 2011 at 5:34 PM, <olofj@chromium.org> wrote: > I had comments on ...
9 years, 8 months ago (2011-04-15 00:50:56 UTC) #13
grundler
9 years, 8 months ago (2011-04-15 00:59:11 UTC) #14
On Thu, Apr 14, 2011 at 5:36 PM,  <olofj@chromium.org> wrote:
> Also, never ever add someone else name to signed-off/reviewed/tested without
> them explicitly offering it.
>
> I have not finished reviewing this, so don't say in your patch description
> that I have by adding my name as Reviewed-by.
> Neither has Grant yet, I believe.

True. I didn't explicitly say that. Please add a "Reviewed-by" line as
I previously posted. I am OK with the changes since they match
existing driver code.

Your comments about removing some of the #ifdef are good. Sukesh
should implement your suggestion or defend his choice as he sees fit.

thanks,
grant

Powered by Google App Engine
This is Rietveld 408576698