mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
Merge "spi: spi-msm-geni: Convert IB vote into KHz unit"
This commit is contained in:
commit
06c5838be5
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue