zephyr/drivers
Iván Briano aba245daad drivers qmsi: Fix power management with reentrancy disabled
The new device control API added a 'device_power_state' variable to the
driver's data structure to keep track of the current power state set
for a device. This member variable is conditionally built into the
runtime data structure of each driver, but in some cases the whole data
structure is conditional on its respective API_REENTRANCY config
variable.

In those cases where the runtime data was previously used only for
reentrancy protection, the runtime data pointer used for device
initialization is NULL, and when power management is enabled, this
invalid pointer ends up dereferenced to get the device_power_state
member.

Make the declaration of the runtime data dependent on any of its
conditional members, and NULL only when all of those settings are
disabled.

Change-Id: I4f41e00ad8551a096db639e31d33f43752b6672f
Signed-off-by: Iván Briano <ivan.briano@intel.com>
2016-10-05 09:51:09 +00:00
..
adc boards: rename Quark SE Devboard to Quark SE C1000 (Sensor Subsystem) 2016-09-16 03:10:30 +00:00
aio qmsi: update qmsi to 1.1 alpha 2016-05-23 21:30:04 +00:00
bluetooth Bluetooth: Controller: Remove custom irq implementation 2016-10-04 08:12:14 +03:00
clock_control boards: rename Quark SE Devboard to Quark SE C1000 2016-09-16 03:10:31 +00:00
console uart_console: Fix line endings 2016-09-09 21:37:55 +00:00
counter drivers qmsi: Fix power management with reentrancy disabled 2016-10-05 09:51:09 +00:00
dma dma: qmsi_shim: add typecasting to avoid compilation error 2016-10-04 12:28:38 +00:00
ethernet Revert "rfc: ksdk: Add KSDK ENET driver." 2016-09-23 09:07:26 -05:00
flash boards: rename Quark SE Devboard to Quark SE C1000 2016-09-16 03:10:31 +00:00
gpio drivers: gpio: reuse gpio Kconfigs for sensor subsystem 2016-09-22 01:00:46 +00:00
grove Cleanup whitespace in Kconfig files 2016-05-25 13:28:07 -05:00
i2c power_mgmt: Update sample and drivers according to new pm device API 2016-09-22 00:23:43 +00:00
ieee802154 quark_se_devboard: We do not support capabilities via Kconfig yet 2016-08-25 06:12:00 -04:00
interrupt_controller mvic: fixed printk format 2016-09-24 08:12:47 -04:00
ipm boards: rename Quark SE Devboard to Quark SE C1000 2016-09-16 03:10:31 +00:00
pci drivers: pci: fix incorrect printk() usage 2016-08-28 07:47:28 -04:00
pinmux frdm_k64f: Add support for RGB LEDs 2016-10-04 01:29:14 +00:00
pwm drivers qmsi: Fix power management with reentrancy disabled 2016-10-05 09:51:09 +00:00
random ksdk: Add KSDK RNGA driver. 2016-09-14 12:35:30 +00:00
rtc drivers qmsi: Fix power management with reentrancy disabled 2016-10-05 09:51:09 +00:00
sensor sensor: HP206C: fix kconfig sys log help 2016-09-12 10:35:41 -05:00
serial drivers: serial: uart_qmsi: update Quark SE C1000 config 2016-09-22 18:00:07 +00:00
shared_irq refactor common driver initialization priorities 2016-03-28 15:58:29 -07:00
spi power_mgmt: Update sample and drivers according to new pm device API 2016-09-22 00:23:43 +00:00
timer unified: Add tickless idle support for x86 and ARM 2016-10-04 20:02:50 +00:00
usb usb_dw: Clear device address on USB Reset 2016-09-21 12:19:05 +00:00
watchdog drivers qmsi: Fix power management with reentrancy disabled 2016-10-05 09:51:09 +00:00
Kconfig drivers: reverting Kconfig/Makefile changes for slip 2016-07-27 16:26:51 +00:00
Makefile drivers: reverting Kconfig/Makefile changes for slip 2016-07-27 16:26:51 +00:00