soundwire: master: enable pm runtime
authorBard Liao <yung-chuan.liao@linux.intel.com>
Sun, 26 Jul 2020 21:59:45 +0000 (05:59 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 17 Aug 2020 06:34:48 +0000 (12:04 +0530)
commitbd84256e86ecfb117d80c52870f4ece744610c97
tree9e65e115025de285fb24063e039138d0998cfcf5
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
soundwire: master: enable pm runtime

The hierarchy of soundwire devices is platform device -> M device -> S
device. A S device is physically attached on the platform device. So the
platform device should be resumed when a S device is resumed. As the
bridge of platform device and S device, we have to implement runtime pm
on M driver. We have set runtime pm ops in M driver already, but still
need to enable runtime pm.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20200726215945.3119-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/master.c