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

Commit f57b407c authored by Rabin Vincent's avatar Rabin Vincent Committed by Dan Williams
Browse files

DMAENGINE: ste_dma40: fix disabled channels list



The value in the array, not the index, specifies the channel to be
disabled.

Acked-by: default avatarJonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: default avatarRabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@stericsson.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 3c0f2401
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -2449,8 +2449,10 @@ static int __init d40_phy_res_init(struct d40_base *base)


	/* Mark disabled channels as occupied */
	/* Mark disabled channels as occupied */
	for (i = 0; base->plat_data->disabled_channels[i] != -1; i++) {
	for (i = 0; base->plat_data->disabled_channels[i] != -1; i++) {
			base->phy_res[i].allocated_src = D40_ALLOC_PHY;
		int chan = base->plat_data->disabled_channels[i];
			base->phy_res[i].allocated_dst = D40_ALLOC_PHY;

		base->phy_res[chan].allocated_src = D40_ALLOC_PHY;
		base->phy_res[chan].allocated_dst = D40_ALLOC_PHY;
		num_phy_chans_avail--;
		num_phy_chans_avail--;
	}
	}