mc13892 LED driver oopses on trigger action
Bug #531696 reported by
Jeremy Kerr
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-fsl-imx51 (Ubuntu) |
Fix Released
|
High
|
Bryan Wu |
Bug Description
Setting a LED trigger event on a babbage board will cause an oops when that trigger occurs:
echo mmc0 | sudo dd of=/sys/
sudo dd if=/dev/mmcblk0 of=/dev/null
The led_classdev's brightness_set function is called from an atomic context, but the mc13892 LED driver's brightness_set callback may sleep, resulting in the recursive oops.
Patch attached.
Related branches
tags: | added: patch |
To post a comment you must log in.
The attached patch does a bit of rework to enable the driver to use a workqueue. If we need a less intrusive (but more hacky) patch, let me know.