Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5825861rwb; Tue, 1 Aug 2023 08:23:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlFV1FOr5Niuz7gMPVeWtBaSyfeu5hRfqdb6xX8fPLsDo7CMB4E7363Yi6ho8pEykB0R7Yf3 X-Received: by 2002:a17:90a:fe94:b0:268:307a:c3cd with SMTP id co20-20020a17090afe9400b00268307ac3cdmr15677373pjb.21.1690903406741; Tue, 01 Aug 2023 08:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690903406; cv=none; d=google.com; s=arc-20160816; b=nZvIoy95VMppoU2J3wBGQPf3mIjOBZOeh4+u3PEnPIMtwhMsbee9Fon7D5QVTdmfFI cFsZsWlUmLN8PhpBUoQ8dAsZ0dKKyHvyCA5Q0ty5/nN/+6rnasLFY2AQqbNK7PWL/MZ7 kM+0Dfe9RhHl1Sz6l7/Mbn8GoMqDZqklOztLDZPxt1MgyQYnU7MuuTYfF4XINU7Kr8lw NgKLoaqup9EelNTaC6POcnT0aM1h42QVCwcY6Dy9WY4IdcxCMRrEqSris8JQ64jd0U6h mieU49GPVLgEYGiuc4Tx3rZHIjtNF2eBCi83lz4Tn8sqMyCqPCxha7o/3VenLIqEhUfs bQoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LUj+8az/TvwRgpbFEf7Nvx3kk1NHURHWkyWroAajVSw=; fh=LroA/i1EM0DOjWSTFbQc0E4XLyK+5NHY20upRsJ5XaQ=; b=iK/e5NX3D73mwgeZRiwV2QSc+iZqGaU128o2VOfUJ77o3CBliHo7IvrjYzRMemnEWP U3KEwfJtuNL+KlXrQYc4ZsetxgwI/YMsD7XKH2ya0npawOOljtPqgVoOnfrpzGj1cDYE ZZ0kLrd7zSQXjtRymPBX2eql0dQC0zntJ2WWVVkAZLbDRoFBxhTnO4xEoKxISBbm4mb/ cwdGdraWp/5vuNOosOotFsbByq7r+1tRDz0hIrPRO/scLppto2RNWUTK5qqV7RuPM+Jz IZAX8oQcq14f/YNCrFedHyMq7Db//BEGqKZRG9aI5VFAaYCLJLjF+PxI1wKyph/9MJ0Z SamQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=p4JUshEl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n4-20020a170902d2c400b001bc17ab8d6esi3205141plc.530.2023.08.01.08.22.44; Tue, 01 Aug 2023 08:23:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=p4JUshEl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231951AbjHAOKK (ORCPT + 99 others); Tue, 1 Aug 2023 10:10:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232681AbjHAOKI (ORCPT ); Tue, 1 Aug 2023 10:10:08 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0D821B2; Tue, 1 Aug 2023 07:10:04 -0700 (PDT) Received: from [192.168.88.20] (91-154-35-171.elisa-laajakaista.fi [91.154.35.171]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 4C5983D4; Tue, 1 Aug 2023 16:08:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1690898940; bh=u2NEHRX1VvMSmCOwwkokJqfq2GoVR2BGYJfYsplZ4Ek=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=p4JUshElOC5nKtlaGnmKYar7bxg7WEqV6Ripk7F59Ko4WKH5KVJgj9hdE6UNNcE/q b/pT9QE2Dr+7bBX9trBJwBSYMRnd9yJyD/VaykKzQNsEtt5BFqA7QCcOl4x5/SUHIb 5Ds4nAsY3bpngd8ulpMOaC9BVlk1ymCmS+qukeYA= Message-ID: Date: Tue, 1 Aug 2023 17:09:59 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v8 02/16] media: dt-bindings: Make sure items in data-lanes are unique Content-Language: en-US To: Jai Luthra , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sakari Ailus , Laurent Pinchart Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mauro Carvalho Chehab , Maxime Ripard , niklas.soderlund+renesas@ragnatech.se, Benoit Parrot , Vaishnav Achath , Vignesh Raghavendra , nm@ti.com, devarsht@ti.com References: <20230731-upstream_csi-v8-0-fb7d3661c2c9@ti.com> <20230731-upstream_csi-v8-2-fb7d3661c2c9@ti.com> From: Tomi Valkeinen In-Reply-To: <20230731-upstream_csi-v8-2-fb7d3661c2c9@ti.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/07/2023 11:29, Jai Luthra wrote: > From: Pratyush Yadav > > The data-lanes property maps the logical lane numbers to the physical > lane numbers. The position of an entry is the logical lane number and > its value is the physical lane number. Since one physical lane can only > map to one logical lane, no number in the list should repeat. Add the > uniqueItems constraint on the property to enforce this. > > Signed-off-by: Pratyush Yadav > Signed-off-by: Jai Luthra > Reviewed-by: Laurent Pinchart > Acked-by: Rob Herring > --- > v7->v8: No change > > Documentation/devicetree/bindings/media/video-interfaces.yaml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/media/video-interfaces.yaml b/Documentation/devicetree/bindings/media/video-interfaces.yaml > index a211d49dc2ac..26e3e7d7c67b 100644 > --- a/Documentation/devicetree/bindings/media/video-interfaces.yaml > +++ b/Documentation/devicetree/bindings/media/video-interfaces.yaml > @@ -160,6 +160,7 @@ properties: > $ref: /schemas/types.yaml#/definitions/uint32-array > minItems: 1 > maxItems: 8 > + uniqueItems: true > items: > # Assume up to 9 physical lane indices > maximum: 8 > Reviewed-by: Tomi Valkeinen Tomi