Skip to content

Commit

Permalink
soundwire: cadence: initialize sticky bits for Device0
Browse files Browse the repository at this point in the history
Follow recommended programming flows, only Device0 sticky interrupt
bits can be enabled before changing the command accept mode and doing
a bus hardware reset.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
  • Loading branch information
plbossart committed Jun 17, 2024
1 parent 3ccc8c3 commit 18cb56a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/soundwire/cadence_master.c
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,10 @@ int sdw_cdns_init(struct sdw_cdns *cdns)

sdw_cdns_check_self_clearing_bits(cdns, __func__, false, 0);

/* enable sticky bits for Device0 attachment only */
cdns_writel(cdns, CDNS_MCP_SLAVE_INTMASK0, GENMASK(1, 0));
cdns_writel(cdns, CDNS_MCP_SLAVE_INTMASK1, 0);

/* reset msg_count to default value of FIFOLEVEL */
cdns->msg_count = cdns_readl(cdns, CDNS_MCP_FIFOLEVEL);

Expand Down

0 comments on commit 18cb56a

Please sign in to comment.