bus: ti-sysc: Improve suspend and resume handling
authorTony Lindgren <tony@atomide.com>
Mon, 16 Apr 2018 17:27:15 +0000 (10:27 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 1 May 2018 13:54:17 +0000 (06:54 -0700)
commitef55f8215a78b7021401281e8a7fe056fd5ecdab
tree14c9515feead56c22ebcf86be4f635ecc9e79647
parente7420c2d4495cbb9c14dd8bf8b3b4e5bdded6e20
bus: ti-sysc: Improve suspend and resume handling

Based on testing with more devices I noticed that some devices
don't suspend or resume properly. We need to PM runtime suspend
and resume devices if we have ddata->needs_resume set.

Let's also improve the error handling and add few debug statements
to make it easier to notice suspend and resume related issues if
DEBUG is set.

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c