summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/bcmdhd/wldev_common.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-06-10 20:15:21 -0700
committerTodd Poynor <toddpoynor@google.com>2011-06-16 14:55:41 -0700
commit390f202e3ac5a111fcfa326e5a99a4dcbcc2bf7a (patch)
tree1a55264eaf56bee849eed1d597377fa74ca3ec12 /drivers/net/wireless/bcmdhd/wldev_common.c
parent170372e4abeddda05fc078e1ae0f01e26a8a7b43 (diff)
ASoC: core: Don't schedule deferred_resume_work twice
For cards that have two or more DAIs, snd_soc_resume's loop over all DAIs ends up calling schedule_work(deferred_resume_work) once per DAI. Since this is the same work item each time, the 2nd and subsequent calls return 0 (work item already queued), and trigger the dev_err message below stating that a work item may have been lost. Solve this by adjusting the loop to simply calculate whether to run the resume work immediately or defer it, and then call schedule work (or not) one time based on that. Note: This has not been tested in mainline, but only in chromeos-2.6.38; mainline doesn't support suspend/resume on Tegra, nor does the mainline Tegra ASoC driver contain multiple DAIs. It has been compile-checked in mainline. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Change-Id: I9c29b6c310a94108d81ab6506eb64ee9f30d846a Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'drivers/net/wireless/bcmdhd/wldev_common.c')
0 files changed, 0 insertions, 0 deletions