Thank you for your contribution! Sashiko AI review found 1 potential issue(s) 
to consider:
- [Medium] The compatible string `mediatek,mt6893-disp-wdma` is incorrectly 
added to the standalone enum instead of the fallback items list.
--

--- Patch [9]: [PATCH v4 09/10] dt-bindings: display: mediatek: wdma: Add 
compatibles for more SoCs ---
commit 8001f83833ae9c684be67bc719c7aaa056f90763
Author: AngeloGioacchino Del Regno <[email protected]>

dt-bindings: display: mediatek: wdma: Add compatibles for more SoCs

Multiple MediaTek SoCs have the Write DMA hardware in their Display
Controller. This commit adds the missing compatibles for Dimensity 1200
(MT6893) and for Kompanio 500/520/820/1200.

> diff --git 
> a/Documentation/devicetree/bindings/display/mediatek/mediatek,wdma.yaml 
> b/Documentation/devicetree/bindings/display/mediatek/mediatek,wdma.yaml
> index 97d052b0fb614..c3ed867d058d9 100644
> --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,wdma.yaml
> +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,wdma.yaml
> @@ -22,11 +22,16 @@ properties:
>    compatible:
>      oneOf:
>        - enum:
> +          - mediatek,mt6893-disp-wdma

[Severity: Medium]
Does this incorrectly place mediatek,mt6893-disp-wdma as a standalone
compatible string rather than in the items list requiring a fallback?

If a device tree uses compatible = "mediatek,mt6893-disp-wdma" to satisfy
this schema, the DRM driver will not probe the device since it only matches
mediatek,mt8173-disp-wdma. If the developer instead provides the fallback 
compatible = "mediatek,mt6893-disp-wdma", "mediatek,mt8173-disp-wdma" so the
driver can probe it, won't the device tree fail schema validation here?

>               - mediatek,mt8173-disp-wdma
>           - items:
>               - enum:
>                   - mediatek,mt6795-disp-wdma
>                   - mediatek,mt8167-disp-wdma
> +              - mediatek,mt8183-disp-wdma
> +              - mediatek,mt8186-disp-wdma
> +              - mediatek,mt8192-disp-wdma
> +              - mediatek,mt8195-disp-wdma
>               - const: mediatek,mt8173-disp-wdma

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=9

Reply via email to