On 10/13/25 6:56 PM, Frank Li wrote:
On Sat, Oct 11, 2025 at 06:51:20PM +0200, Marek Vasut wrote:
Rework dc_subdev_get_id() to drop ARRAY_SIZE() use and use empty trailing
entry in each ID look up array instead. This allows passing of those arrays
around as OF match data, which will be useful when using this pipeline on
i.MX95, which has different address-to-ID mapping.

Signed-off-by: Marek Vasut <[email protected]>

This change is okay. but my questions is why need map register to id.

This seems to be a recurring pattern in the driver, where some components need to find other components to link with them. The mapping is fixed, and since the DT does not encode link IDs, the resolution of the mapping has to happen by mapping the component base addresses to the IDs first.

Reply via email to