devfreq: Suspend all devices on system shutdown 81/199781/2
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 25 Jan 2019 13:49:53 +0000 (14:49 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 18 Feb 2019 04:54:22 +0000 (04:54 +0000)
commit2c5198b5deb9d32049e848cfb60c4c5949bbcdfb
tree5882d2fa92b4bb88e161d37dcf39cae0addaf094
parent50162a91958ab6eca749d9fc86306e435263ed9a
devfreq: Suspend all devices on system shutdown

This way devfreq core ensures that all its devices will be set to safe
operation points before reboot operation. There are board on which some
aggressive power saving operation points are behind the capabilities of
the bootloader to properly reset the hardware and boot the board. This
way one can avoid board crash early after reboot.

Similar pattern is used in CPUfreq subsystem.

Reported-by: Markus Reichl <m.reichl@fivetechno.de>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I45467c8e02f7fedf90d1dfd5080e6143a8cb69f7
drivers/devfreq/devfreq.c