Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
leds: leds-qpnp-flash: Change the flash led ON logic
After commits: 1e4d4f8 27dfed7 We fixed the mm-qcamera-daemon crash when we press the torch tile. But during boot procedure we still had the same crash at least once. Change now the flash led on logic to fix the following error once and for all: W [ 9.358431 / 07-24 12:51:28.425][1] CPU: 1 PID: 1027 Comm: mm-qcamera-daem Tainted: G W 3.10.108-g4750871 #1 W : [ 9.358440 / 07-24 12:51:28.425][1] Hardware name: Qualcomm Technologies, Inc. MSM8992 P1 GLOBAL COM (DT) W : [ 9.358449 / 07-24 12:51:28.425][1] Call trace: W : [ 9.358470 / 07-24 12:51:28.425][1] [] dump_backtrace+0x0/0x244 W : [ 9.358482 / 07-24 12:51:28.425][1] [] show_stack+0x10/0x1c W : [ 9.358499 / 07-24 12:51:28.425][1] [] dump_stack+0x1c/0x28 W : [ 9.358513 / 07-24 12:51:28.425][1] [] __schedule_bug+0x40/0x58 W : [ 9.358525 / 07-24 12:51:28.425][1] [] __schedule+0x94/0x7a0 W : [ 9.358535 / 07-24 12:51:28.425][1] [] schedule+0x54/0x60 W : [ 9.358545 / 07-24 12:51:28.425][1] [] schedule_preempt_disabled+0x10/0x24 W : [ 9.358556 / 07-24 12:51:28.425][1] [] __mutex_lock_slowpath+0x180/0x1f4 W : [ 9.358565 / 07-24 12:51:28.425][1] [] mutex_lock+0x28/0x48 W : [ 9.358578 / 07-24 12:51:28.425][1] [] qpnp_flash_led_brightness_set+0x1c8/0x1f4 W : [ 9.358589 / 07-24 12:51:28.425][1] [] led_set_brightness+0x54/0x60 W : [ 9.358599 / 07-24 12:51:28.425][1] [] led_trigger_event+0x3c/0x60 W : [ 9.358613 / 07-24 12:51:28.425][1] [] msm_flash_off+0x94/0xf0 W : [ 9.358624 / 07-24 12:51:28.425][1] [] msm_flash_init+0x1cc/0x24c W : [ 9.358633 / 07-24 12:51:28.425][1] [] msm_flash_config+0x17c/0x208 W : [ 9.358643 / 07-24 12:51:28.425][1] [] msm_flash_subdev_ioctl+0x1b8/0x214 W : [ 9.358652 / 07-24 12:51:28.425][1] [] msm_flash_subdev_do_ioctl+0x210/0x278 W : [ 9.358667 / 07-24 12:51:28.425][1] [] video_usercopy+0x244/0x3dc W : [ 9.358678 / 07-24 12:51:28.425][1] [] msm_flash_subdev_fops_ioctl+0x10/0x1c W : [ 9.358691 / 07-24 12:51:28.425][1] [] v4l2_compat_ioctl32+0x634/0x64c W : [ 9.358709 / 07-24 12:51:28.425][1] [] compat_sys_ioctl+0x10c/0x1228 The torch tile still doesn't work because we use prebuilt camera hal from LG, to achieve max camera quality. At least now we don't have mm-qcamera-daemon crashes anymore. Change-Id: I64c81cbecacb55d2c6c9f6200604ebc84e05811d
- Loading branch information