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

Commit b89cb55b authored by Alok Chauhan's avatar Alok Chauhan
Browse files

spi: spi-geni-qcom: Adjust the bandwidth vote for SPI



Remove the irrelevant bandwidth voting for QUP and
re-adjust the voting parameter for SPI usecases.

Change-Id: I1b9761e4a42b6ad17ef0dedc6abd7437880e3532
Signed-off-by: default avatarAlok Chauhan <alokc@codeaurora.org>
parent 6618051a
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@
#define TIMESTAMP_AFTER		BIT(3)
#define POST_CMD_DELAY		BIT(4)

#define SPI_CORE2X_VOTE		(10000)
#define SPI_CORE2X_VOTE		(7600)
/* GSI CONFIG0 TRE Params */
/* Flags bit fields */
#define GSI_LOOPBACK_EN		(BIT(0))
@@ -751,9 +751,8 @@ static int spi_geni_prepare_transfer_hardware(struct spi_master *spi)
	u32 max_speed = spi->cur_msg->spi->max_speed_hz;
	struct se_geni_rsc *rsc = &mas->spi_rsc;

	/* Adjust the AB/IB based on the max speed of the slave.*/
	/* Adjust the IB based on the max speed of the slave.*/
	rsc->ib = max_speed * DEFAULT_BUS_WIDTH;
	rsc->ab = max_speed * DEFAULT_BUS_WIDTH;
	if (mas->shared_se) {
		struct se_geni_rsc *rsc;
		int ret = 0;