Skip to content

b43: Fix suspend/resume deadlock

Rafael J. Wysocki linux-pm lkml 1 version Applied

Status from this message: This is a note to let you know that I've just added the patch titled

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 11 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5PM: Export device_pm_schedule_removaldrivers/base/power/main.c drivers/base/power/power.h include/linux/device.h+7 -12 replies
2/5Misc: Add possibility to remove misc devices during suspend/resumedrivers/char/misc.c include/linux/miscdevice.h+18 -50 replies
3/5HWRNG: Add possibility to remove hwrng devices during suspend/resumedrivers/char/hw_random/core.c include/linux/hw_random.h+14 -60 replies
3/5HWRNG: Add possibility to remove hwrng devices during suspend/resumedrivers/char/hw_random/core.c include/linux/hw_random.h+14 -60 replies
4/5Leds: Add possibility to remove leds classdevs during suspend/resumedrivers/leds/led-class.c include/linux/leds.h+18 -50 replies
5/5b43: Avoid unregistering device objects during suspenddrivers/net/wireless/b43/b43.h drivers/net/wireless/b43/leds.c drivers/net/wireless/b43/main.c+21 -109 replies

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchMichael BueschPavel Machek
1/5A-b
2/5
3/5A-b A-b
3/5A-b A-b
4/5
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH -mm 0/5] b43: Fix suspend/resume deadlock

Hi,

The following series of patches is intended to fix the suspend/resume deadlock occuring as a result of unregistering device objects, locked by the PM core, during suspend/resume cycles by the b43 driver.

In short, the b43 driver is modified to avoid unregistering device objects during suspend/resume cycles except for the resume code path, in which the devices are unregistered using the recently introduced suspend-safe method. For this purpose, it is necessary to introduce the possibility to safely remove misc devices, leds classdevs and hwrng devices during suspend/resume cycles (patches 2/5, 4/5, 3/5, respectively).

Please consider for applying.

Thanks,
Rafael