Message ID | 20240222082819.10321-1-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-76099-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp108287dyb; Thu, 22 Feb 2024 00:28:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVOPFSnH1XyqaPRuxaegL9vJbaWqVt6JeIHjzvmQfZbAQmYQ3u4rbPCATfl6JGsP1mySR8de0KqW0bA7vTrRPFdLBVlHA== X-Google-Smtp-Source: AGHT+IE34Juz8xRLdlaSZHD3wUhqZZdJwS6o+LJ0HqZxgCu4DVALFj27NetzDHaCdkDzt7h+qTzm X-Received: by 2002:a0c:8bd9:0:b0:68f:2edf:e81b with SMTP id a25-20020a0c8bd9000000b0068f2edfe81bmr22026662qvc.10.1708590524716; Thu, 22 Feb 2024 00:28:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708590524; cv=pass; d=google.com; s=arc-20160816; b=EWTQCbzIiiSFNsDc0aV8owTNwsqkLhXozCJl0h5q+9Gtsz/osFs+x0b/W9g1Xxa4of tvGc1yne7Fq35O2NdKfRNnOKAMtOrrNVPZTlEvOAWl1USh3aIUxEGBBxex2BnyZtMPld d5JSsF6SAVA/+0EYrNnkg6zTUe0y+XKK8X1oSjjabhE9CvxvHc5/QmIzY6RluGbpq8Qz 3q1ek2C6Ultnh8RGIsEO7MLQJrn9SPVe+agAl1Qdevka4c9JplGUOz/b7g8D9ChPxxcC XZbB2h+dbBmGaPLnufWegmoS2LMxshxA/jai2Pa4T1FwXPmekTqd76lcuqfIyRAXKOQp QJfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=0K0y7mMwQ6eINvxBjtceE3os6xVsWexBerMPUbtyFps=; fh=e2BQnJwJ5KaLEcbkSuPwheyIwrciueLNJsaWJG8b9fM=; b=nRlvJub65XhR+e6QdaoNb5DHmrkHLKrtwXscEy3rOSI2W8nt2rjgZE3FtCDxFC4uqI b2/fq1riwJgBHbhIB/HiUaBowYODAk6bqwMks+ZXMaDCuRkMass+OisXOz71R97D6R/m 5thTLNjbndA8iBqKAbLhlpqcuWII6yBiAXsSOm991RgQFJebujmGSHT9P/CozJ46+fDf 0YQB+vF8IEJAOZdgOdfGVf5R/TLLi5xxhXpMrbDMYebHs8Y6uvgM1e53B2I97fcrMhSs 2erPXgVpXns8p3umRui6V2L1PWmru2uDoqOFPd9ZKv4CHhye5qGLILpmj6CClknCvbAb eQsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xpTbwESL; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-76099-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76099-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g3-20020a0562140ac300b0068f2ba3a976si13282495qvi.122.2024.02.22.00.28.44 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 00:28:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76099-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xpTbwESL; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-76099-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76099-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7E2911C22BAE for <ouuuleilei@gmail.com>; Thu, 22 Feb 2024 08:28:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5934820B27; Thu, 22 Feb 2024 08:28:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xpTbwESL" Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21A93182CF for <linux-kernel@vger.kernel.org>; Thu, 22 Feb 2024 08:28:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708590506; cv=none; b=aHhbJUaZLBA3Fs/ATdnGUe6p4HkZqfC5y14a9veZ/p2B9BrCcni/2Daz99c0zUOnofNpt58/SS36TatZOr8f/0iY/H5BemtA9J0QDaE9K0vTDvrin04IAjXjXcCCiuqGnFp+4qo5APYmRxqFklIe+ACA6GecAkwGrec3h8xVUvo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708590506; c=relaxed/simple; bh=EvteK50wyl2kprR8zyPWEQOJdijQCkbQp/sp4jSnARc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=LqYG2J4sOtUEQpK7hEL61pyxMEDGrQ6Ah45tQz3/bqhfs1NY7hX5oWld0p2IN5Vs0B8i4tdly6qeRXbzRf+TZtbB85MWnO7myC422caPjw/ztcumKaL5WNQDsPSQ+8iFG1seJUaSpWPDvdvva7FHELhIUV8pq6ONvo+RWqwHbBM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=xpTbwESL; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a26ed1e05c7so1045842766b.2 for <linux-kernel@vger.kernel.org>; Thu, 22 Feb 2024 00:28:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708590503; x=1709195303; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0K0y7mMwQ6eINvxBjtceE3os6xVsWexBerMPUbtyFps=; b=xpTbwESLemYSup/R3juAirb3bJPYOF7B1ZcUO1Z2OE7nUNBJkfUSywLntAEKPiOxU3 GSEzjwIM979u9w0J7uIwRwKqnm/9yKmVnVNRj64ouQb7WvRPp1Ckrw/3xbMJ9cUGEPQM WD3J+X9GCXGVvYE1XP1ehgqgmqkv0cb14pWvTlRUxcWXzS03b4yBxcixk3oJfgfoQwuh 3WTRbNnbNvuWAon1BIG5ro23l/L7YKe36nVCn4J2/FOJhV91z9S9xaLbTsTCDMsaQyUc ikbRBdXpMB72cubkJu5RJWKsbax9sT7hfAsBwVICPHju4u6GlJ45WAq3ZdU1mHz+Y67b EvIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708590503; x=1709195303; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0K0y7mMwQ6eINvxBjtceE3os6xVsWexBerMPUbtyFps=; b=m3aPSne8kBt01sHxfMcvyeDw9NFYU+x5PCGZJfZy/m4cjCXCPESA7qxLC3Pxlbk2fQ I+SWvqdegUyo5XPlzcugvimhNoRt6o2sS3bAANNHtVwzuacBTo8hI0lFo1K+mbM6ow1h 4HhkUcOom25pQIbRweEh9j9X+89rnLXjUOpqTPCLUupkhTVk04oEWoUcJQW1ZBy9Coeb L+3wrVY8o0Dr81n0udLmik1vFv0dt4aTBb9QFWdHcBw056gUFt8PPHi7+14zTdgqDchP Q7A2sCIEl1wkXGTtW3ObZEyChotbAImlFeYL3104CrskgICouSB+O5mIRDvLuReLiV+J ogmg== X-Forwarded-Encrypted: i=1; AJvYcCXrgCvcPjdctbHYRUYYz5ccsSefQwUXq/d082vnYsm+GmfiHseu4QfaixfKJQY5vnUubIlhS8Eb/p31nBgyQBPwuqjqmMpTWSRpzMKb X-Gm-Message-State: AOJu0YwSvTw3JPsiA9KcN4XkEYYZ7SpS2O30KI9isYHsgeSPPNOwoydY t7e/P1BPT1FFzkyEHgIBKVqjPqd3dmh5MJIm1eZRH3WwfFAyYpvEmXfFKCJ2qBY= X-Received: by 2002:a17:907:375:b0:a3f:6b7f:11fe with SMTP id rs21-20020a170907037500b00a3f6b7f11femr1200803ejb.66.1708590503535; Thu, 22 Feb 2024 00:28:23 -0800 (PST) Received: from krzk-bin.. ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id vh8-20020a170907d38800b00a3f28bf94f8sm1600210ejc.199.2024.02.22.00.28.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 00:28:23 -0800 (PST) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Xin Ji <xji@analogixsemi.com>, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Pavel Machek <pavel@ucw.cz> Subject: [PATCH] dt-bindings: usb: analogix,anx7411: drop redundant connector properties Date: Thu, 22 Feb 2024 09:28:19 +0100 Message-Id: <20240222082819.10321-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791587017907668428 X-GMAIL-MSGID: 1791587017907668428 |
Series |
dt-bindings: usb: analogix,anx7411: drop redundant connector properties
|
|
Commit Message
Krzysztof Kozlowski
Feb. 22, 2024, 8:28 a.m. UTC
The binding references usb-connector.yaml schema, which lists all
allowed properties and ends with unevaluatedProperties:false, so we can
simplify analogix,anx7411 binding by dropping everything covered by
usb-connector.yaml.
Suggested-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
.../devicetree/bindings/usb/analogix,anx7411.yaml | 13 -------------
1 file changed, 13 deletions(-)
Comments
On Thu, Feb 22, 2024 at 09:28:19AM +0100, Krzysztof Kozlowski wrote: > The binding references usb-connector.yaml schema, which lists all > allowed properties and ends with unevaluatedProperties:false, so we can > simplify analogix,anx7411 binding by dropping everything covered by > usb-connector.yaml. > > Suggested-by: Pavel Machek <pavel@ucw.cz> > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > .../devicetree/bindings/usb/analogix,anx7411.yaml | 13 ------------- > 1 file changed, 13 deletions(-) > > diff --git a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml > index e4d893369d57..3f5857aee3b0 100644 > --- a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml > +++ b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml > @@ -23,24 +23,11 @@ properties: > connector: > type: object > $ref: ../connector/usb-connector.yaml > - unevaluatedProperties: false The connector schema sets `additionalProperties: true`. Is removing this correct? > - > - description: > - Properties for usb c connector. > > properties: > compatible: > const: usb-c-connector > > - power-role: true > - > - data-role: true > - > - try-power-role: true > - > - required: > - - compatible > - > required: > - compatible > - reg > -- > 2.34.1 >
On 22/02/2024 17:08, Conor Dooley wrote: > On Thu, Feb 22, 2024 at 09:28:19AM +0100, Krzysztof Kozlowski wrote: >> The binding references usb-connector.yaml schema, which lists all >> allowed properties and ends with unevaluatedProperties:false, so we can >> simplify analogix,anx7411 binding by dropping everything covered by >> usb-connector.yaml. >> >> Suggested-by: Pavel Machek <pavel@ucw.cz> >> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >> --- >> .../devicetree/bindings/usb/analogix,anx7411.yaml | 13 ------------- >> 1 file changed, 13 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml >> index e4d893369d57..3f5857aee3b0 100644 >> --- a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml >> +++ b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml >> @@ -23,24 +23,11 @@ properties: >> connector: >> type: object >> $ref: ../connector/usb-connector.yaml >> - unevaluatedProperties: false > > The connector schema sets `additionalProperties: true`. Is removing this > correct? > I think you look at some old version: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/connector/usb-connector.yaml?h=v6.8-rc5#n327 Best regards, Krzysztof
On Thu, Feb 22, 2024 at 05:56:12PM +0100, Krzysztof Kozlowski wrote: > On 22/02/2024 17:08, Conor Dooley wrote: > > On Thu, Feb 22, 2024 at 09:28:19AM +0100, Krzysztof Kozlowski wrote: > >> The binding references usb-connector.yaml schema, which lists all > >> allowed properties and ends with unevaluatedProperties:false, so we can > >> simplify analogix,anx7411 binding by dropping everything covered by > >> usb-connector.yaml. > >> > >> Suggested-by: Pavel Machek <pavel@ucw.cz> > >> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > >> --- > >> .../devicetree/bindings/usb/analogix,anx7411.yaml | 13 ------------- > >> 1 file changed, 13 deletions(-) > >> > >> diff --git a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml > >> index e4d893369d57..3f5857aee3b0 100644 > >> --- a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml > >> +++ b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml > >> @@ -23,24 +23,11 @@ properties: > >> connector: > >> type: object > >> $ref: ../connector/usb-connector.yaml > >> - unevaluatedProperties: false > > > > The connector schema sets `additionalProperties: true`. Is removing this > > correct? > > > > I think you look at some old version: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/connector/usb-connector.yaml?h=v6.8-rc5#n327 Huh, you are correct. I had a stable kernel checked out somehow in the git worktree I apply dt patches to while reviewing them rather than linux-next. Sorry about that.. Acked-by: Conor Dooley <conor.dooley@microchip.com> Cheers, Conor.
Hi! > The binding references usb-connector.yaml schema, which lists all > allowed properties and ends with unevaluatedProperties:false, so we can > simplify analogix,anx7411 binding by dropping everything covered by > usb-connector.yaml. > Reviewed-by: Pavel Machek <pavel@ucw.cz> Thank you. > +++ b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml > @@ -23,24 +23,11 @@ properties: > connector: > type: object > $ref: ../connector/usb-connector.yaml You wanted me to use absolute path here -- $ref: /schemas/connector/usb-connector.yaml -- so it may be worth fixing here as well. Best regards, Pavel
diff --git a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml index e4d893369d57..3f5857aee3b0 100644 --- a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml +++ b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml @@ -23,24 +23,11 @@ properties: connector: type: object $ref: ../connector/usb-connector.yaml - unevaluatedProperties: false - - description: - Properties for usb c connector. properties: compatible: const: usb-c-connector - power-role: true - - data-role: true - - try-power-role: true - - required: - - compatible - required: - compatible - reg