mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
soundwire: cadence_master: add kernel parameter to override interrupt mask
The code has a set of defaults which may not be relevant in all cases, add kernel parameter as a helper - mostly for early board bring-up. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20190806005522.22642-17-pierre-louis.bossart@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
50302fc7b9
commit
04592dced5
@ -19,6 +19,10 @@
|
||||
#include "bus.h"
|
||||
#include "cadence_master.h"
|
||||
|
||||
static int interrupt_mask;
|
||||
module_param_named(cnds_mcp_int_mask, interrupt_mask, int, 0444);
|
||||
MODULE_PARM_DESC(cdns_mcp_int_mask, "Cadence MCP IntMask");
|
||||
|
||||
#define CDNS_MCP_CONFIG 0x0
|
||||
|
||||
#define CDNS_MCP_CONFIG_MCMD_RETRY GENMASK(27, 24)
|
||||
@ -668,6 +672,9 @@ static int _cdns_enable_interrupt(struct sdw_cdns *cdns)
|
||||
*/
|
||||
mask |= CDNS_MCP_INT_IRQ;
|
||||
|
||||
if (interrupt_mask) /* parameter override */
|
||||
mask = interrupt_mask;
|
||||
|
||||
cdns_writel(cdns, CDNS_MCP_INTMASK, mask);
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user