a8d2245fed
commit ab8d66d132bc8f1992d3eb6cab8d32dda6733c84 upstream.
Two bitmasks in 'struct sdw_slave_prop' - 'source_ports' and
'sink_ports' - define which ports to program in
sdw_program_slave_port_params(). The masks are used to get the
appropriate data port properties ('struct sdw_get_slave_dpn_prop') from
an array.
Bitmasks can be non-continuous or can start from index different than 0,
thus when looking for matching port property for given port, we must
iterate over mask bits, not from 0 up to number of ports.
This fixes allocation and programming slave ports, when a source or sink
masks start from further index.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
bus.c | ||
bus.h | ||
bus_type.c | ||
cadence_master.c | ||
cadence_master.h | ||
debugfs.c | ||
dmi-quirks.c | ||
generic_bandwidth_allocation.c | ||
intel.c | ||
intel.h | ||
intel_init.c | ||
master.c | ||
mipi_disco.c | ||
qcom.c | ||
slave.c | ||
stream.c | ||
sysfs_local.h | ||
sysfs_slave.c | ||
sysfs_slave_dpn.c |