Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b2ab880 authored by Sudheer Papothi's avatar Sudheer Papothi Committed by Matt Wagantall
Browse files

soundwire: Change in soundwire master init sequence



Setting maximum number of pings to zero during soundwire master
initialization is not required. Add changes in soundwire master
initialization sequence to remove maximum number of pings.

Change-Id: Ifd3e9d7a6f5e5b9c84456c54d7647e8629c0ec3e
Signed-off-by: default avatarSudheer Papothi <spapothi@codeaurora.org>
parent 2a5549e2
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -899,7 +899,6 @@ static int swrm_master_init(struct swr_mstr_ctrl *swrm)
	u32 mask, val;
	u8 row_ctrl = SWR_MAX_ROW;
	u8 col_ctrl = SWR_MIN_COL;
	u8 ping_val = 0;
	u8 retry_cmd_num = 3;

	/* enable swr clock */
@@ -920,12 +919,6 @@ static int swrm_master_init(struct swr_mstr_ctrl *swrm)
	/* Mask soundwire interrupts */
	swrm->write(swrm->handle, SWRM_INTERRUPT_MASK_ADDR, 0x1FFFD);

	/* Configure NO_PINGS */
	val = swrm->read(swrm->handle, SWRM_MCP_CFG_ADDR);
	val &= ~SWRM_MCP_CFG_MAX_NUM_OF_CMD_NO_PINGS_BMSK;
	val |= (ping_val << SWRM_MCP_CFG_MAX_NUM_OF_CMD_NO_PINGS_SHFT);
	swrm->write(swrm->handle, SWRM_MCP_CFG_ADDR, val);

	/* Configure number of retries of a read/write cmd */
	val = swrm->read(swrm->handle, SWRM_CMD_FIFO_CFG_ADDR);
	val &= ~SWRM_CMD_FIFO_CFG_NUM_OF_CMD_RETRY_BMSK;