On Wed, 25 Nov 2026, Ville Syrjälä <[email protected]> wrote:
> On Tue, Nov 24, 2026 at 10:51:24PM +0000, [email protected] wrote:
>> Thank you for your contribution! Sashiko AI review found 1 potential
>> issue to consider:
>> - [Low] drm/edid: commit subject mismatches
>>   drm_displayid_get_product_id()
>> --
>> 
>> commit 4452aea3cbb2a5afd7ef8a119931282a44feb4c3
>> Author: Ville Syrjälä <[email protected]>
>> 
>> drm/edid: Introduce drm_edid_get_displayid_product_id()
>> 
>> This commit adds drm_displayid_get_product_id() to extract vendor and
>> product identification from a DisplayID Product ID block.
>> 
>> > diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h
>> > index a2617aa34edfc..b44c26d422171 100644
>> > --- a/include/drm/drm_edid.h
>> > +++ b/include/drm/drm_edid.h
>> 
>> [ ... ]
>> 
>> > @@ -484,6 +492,8 @@ int drm_edid_connector_add_modes(struct drm_connector 
>> > *connector);
>> >  bool drm_edid_is_digital(const struct drm_edid *drm_edid);
>> >  void drm_edid_get_product_id(const struct drm_edid *drm_edid,
>> >                         struct drm_edid_product_id *id);
>> > +void drm_displayid_get_product_id(const struct drm_edid *drm_edid,
>> > +                            struct drm_displayid_product_id *id);
>> 
>> [Severity: Low]
>> The commit subject names this function drm_edid_get_displayid_product_id(),
>> while the commit message body and code define drm_displayid_get_product_id().
>> Also, this declaration is placed in the "Interface based on struct drm_edid"
>> section of include/drm/drm_edid.h, where all other functions taking a
>> const struct drm_edid * use the drm_edid_ prefix.  Should the commit subject
>> and exported function name be aligned?
>
> I was going back and forth with the name and being dissatisfied
> with all of them. If anyone has an opinion how we should name
> these things I'm all ears.

Not really sure either.

Maybe I'm ever so slightly leaning towards drm_edid_ prefixed naming,
and only because in my mind we'll be able to use struct drm_edid as the
abstract type for all these cases:

- plain old EDID with no DisplayID blocks
- EDID with DisplayID blocks in EDID extensions
- native DisplayID only
- combined native DisplayID *and* EDID with/without DisplayID blocks

I.e. it's "struct drm_edid" even when it's native DisplayID inside,
i.e. just use drm_edid naming for it all.

In that context, drm_edid_get_displayid_product_id() makes sense. Get
the displayid product id from this opaque blob.

Digressing a bit, native DisplayID will still be a PITA to implement,
but I'm hoping mostly due to the userland ABI promises and having to
break the VESA spec about reading *both* EDID and native DisplayID DDC
addresses, even if native DisplayID is there. But I think the opaque
struct drm_edid and the hidden-from-drivers drm_displayid abstractions
can handle it.


BR,
Jani.


-- 
Jani Nikula, Intel

Reply via email to