Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soundwire: intel: pass link_mask information to each master

While the hardware exposes independent bits to power-up each master,
the recommended sequence is to power all links or none. Idle links can
still use the clock stop mode while the master is powered.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20200901150556.19432-10-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Pierre-Louis Bossart and committed by
Vinod Koul
de763fa8 f748f34e

+3
+2
drivers/soundwire/intel.h
··· 18 18 * @shim_lock: mutex to handle access to shared SHIM registers 19 19 * @shim_mask: global pointer to check SHIM register initialization 20 20 * @clock_stop_quirks: mask defining requested behavior on pm_suspend 21 + * @link_mask: global mask needed for power-up/down sequences 21 22 * @cdns: Cadence master descriptor 22 23 * @list: used to walk-through all masters exposed by the same controller 23 24 */ ··· 34 33 struct mutex *shim_lock; /* protect shared registers */ 35 34 u32 *shim_mask; 36 35 u32 clock_stop_quirks; 36 + u32 link_mask; 37 37 struct sdw_cdns *cdns; 38 38 struct list_head list; 39 39 };
+1
drivers/soundwire/intel_init.c
··· 255 255 link->clock_stop_quirks = res->clock_stop_quirks; 256 256 link->shim_lock = &ctx->shim_lock; 257 257 link->shim_mask = &ctx->shim_mask; 258 + link->link_mask = link_mask; 258 259 259 260 memset(&pdevinfo, 0, sizeof(pdevinfo)); 260 261