Loading drivers/slimbus/slim-msm-ngd.c +2 −0 Original line number Diff line number Diff line Loading @@ -793,6 +793,8 @@ static int ngd_allocbw(struct slim_device *sb, int *subfrmc, int *clkgear) wbuf[txn.len++] = (u8) (slc->prop.dataf << 5) | (sb->laddr & 0x1f); wbuf[txn.len] = slc->seglen; if (slc->srch && slc->prop.prot == SLIM_PUSH) slc->prop.prot = SLIM_PULL; if (slc->coeff == SLIM_COEFF_3) wbuf[txn.len] |= 1 << 5; wbuf[txn.len++] |= slc->prop.auxf << 6; Loading drivers/slimbus/slimbus.c +3 −5 Original line number Diff line number Diff line Loading @@ -1634,7 +1634,7 @@ static u32 slim_calc_prrate(struct slim_controller *ctrl, struct slim_ch *prop) bool done = false; enum slim_ch_rate ratefam; if (prop->prot >= SLIM_PUSH) if (prop->prot >= SLIM_ASYNC_SMPLX) return 0; if (prop->baser == SLIM_RATE_1HZ) { rate = prop->ratem / 4000; Loading Loading @@ -1753,10 +1753,8 @@ static int slim_nextdefine_ch(struct slim_device *sb, u8 chan) else if (prop->prot == SLIM_AUTO_ISO) { if (exact) prop->prot = SLIM_HARD_ISO; else { /* Push-Pull not supported for now */ return -EPROTONOSUPPORT; } else prop->prot = SLIM_PUSH; } slc->rootexp = exp; slc->seglen = prop->sampleszbits/SLIM_CL_PER_SL; Loading Loading
drivers/slimbus/slim-msm-ngd.c +2 −0 Original line number Diff line number Diff line Loading @@ -793,6 +793,8 @@ static int ngd_allocbw(struct slim_device *sb, int *subfrmc, int *clkgear) wbuf[txn.len++] = (u8) (slc->prop.dataf << 5) | (sb->laddr & 0x1f); wbuf[txn.len] = slc->seglen; if (slc->srch && slc->prop.prot == SLIM_PUSH) slc->prop.prot = SLIM_PULL; if (slc->coeff == SLIM_COEFF_3) wbuf[txn.len] |= 1 << 5; wbuf[txn.len++] |= slc->prop.auxf << 6; Loading
drivers/slimbus/slimbus.c +3 −5 Original line number Diff line number Diff line Loading @@ -1634,7 +1634,7 @@ static u32 slim_calc_prrate(struct slim_controller *ctrl, struct slim_ch *prop) bool done = false; enum slim_ch_rate ratefam; if (prop->prot >= SLIM_PUSH) if (prop->prot >= SLIM_ASYNC_SMPLX) return 0; if (prop->baser == SLIM_RATE_1HZ) { rate = prop->ratem / 4000; Loading Loading @@ -1753,10 +1753,8 @@ static int slim_nextdefine_ch(struct slim_device *sb, u8 chan) else if (prop->prot == SLIM_AUTO_ISO) { if (exact) prop->prot = SLIM_HARD_ISO; else { /* Push-Pull not supported for now */ return -EPROTONOSUPPORT; } else prop->prot = SLIM_PUSH; } slc->rootexp = exp; slc->seglen = prop->sampleszbits/SLIM_CL_PER_SL; Loading