From 4d551a98c2e9dd35d2b013af93941b86c7b00130 Mon Sep 17 00:00:00 2001 From: Akash Asthana Date: Sat, 25 Apr 2020 19:58:11 +0530 Subject: [PATCH] spi: spi-msm-geni: Convert IB vote into KHz unit As ICC driver except clients votes in KHz/KBps unit, so change SPI IB votes from Hz to KHz. Change-Id: If9c84c3b086514ae7398a04e8c9cd2de99d658eb Signed-off-by: Akash Asthana --- drivers/spi/spi-msm-geni.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-msm-geni.c b/drivers/spi/spi-msm-geni.c index bbea33938fb3..b95a7cf92a05 100644 --- a/drivers/spi/spi-msm-geni.c +++ b/drivers/spi/spi-msm-geni.c @@ -755,8 +755,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 IB based on the max speed of the slave.*/ - rsc->ib = max_speed * DEFAULT_BUS_WIDTH; + /* Adjust the IB based on the max speed of the slave in kHz.*/ + rsc->ib = (max_speed * DEFAULT_BUS_WIDTH) / 1000; if (mas->shared_se) { struct se_geni_rsc *rsc; int ret = 0;