[PATCH 05/39] drm/imx: dc: Rework dc_subdev_get_id() to drop ARRAY_SIZE() use
Marek Vasut
marek.vasut at mailbox.org
Tue Oct 14 07:03:37 PDT 2025
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 <marek.vasut at mailbox.org>
>
> 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.
More information about the linux-arm-kernel
mailing list