Message ID | 20230320020714.955800-1-peng.fan@oss.nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp977693wrt; Sun, 19 Mar 2023 19:34:35 -0700 (PDT) X-Google-Smtp-Source: AK7set/2P3bMYxtDqOsGM8OTzaC2IDMLaMygm1Kt9bUfoh2+0KbdyYaRMIaivP8vOeLWvtc+yrPM X-Received: by 2002:a17:902:b682:b0:19c:13d2:44c5 with SMTP id c2-20020a170902b68200b0019c13d244c5mr15982679pls.3.1679279675050; Sun, 19 Mar 2023 19:34:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679279675; cv=pass; d=google.com; s=arc-20160816; b=ztqcL85IpZ2NPfW0WqnTYDuUKwdLSRKIy+BMRxGIatfY5kkZPRbNVLGnNHE0S+Qxvr 9ho9DF0tuH9WKYp9TL7yBTtxFj0ZMcgY1KftuGmOymjYdDK7vmW4rC/Jo9PUI/F7sE5k 41StWN6bQ1vMFhsqvUYh1Ur7MTTmVEiydXT0E8uUgRho778C/eviqVMIDMQ74uxT3tar Gc9qgxAZtwBchy5OFzjULfa/WTkKaWF/OvXdQt4Yw4QLpalfFa9LUs8BYhGkS87yil65 uaq9lt/HWTQdbdizFmMKRxJXu0LtEtuq+B3e9QkPc2xBw0EN5OzfkkK3u7VgLpOFITVQ M9mw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=cgZRNcGRIvypY14Lru6xKciFiaCbRWx+y5A3fo0h3UM=; b=mvlHPlYwZzSvueXl/4VbFwK1svAKy7JUgAYw5Zpg0ciHWYMaoI5S+J8+uToN0531CR z6oIG1gzqG+anYjopuGX3p+sGnKdMzHnpzaHu4Ii5l6zp0pU2pf3m0y7DPo8W4KramvD JREpy1tfIqET3no6UC9wo0ahWLdN5oT9z9ZsSrnEY+rZcgPztA5XCqS/mLmDpaVgYwT3 AmWYvjJTJiDVK0hP4096bDt3YTrkgiJJtMC3V09p9LriB4ymI8EcCwN0+DIu6Ai0vggf xwXoDB0JqQW/pYyOl0M4TybWT4P0IGFPUGCSfDkbUgD4CW61WGTnT0R4xycU/UjelPLO P81w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=Hsyi00ez; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a17090a8a9800b002368e89eecesi7454178pjn.180.2023.03.19.19.34.19; Sun, 19 Mar 2023 19:34:34 -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 header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=Hsyi00ez; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229764AbjCTCCX (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Sun, 19 Mar 2023 22:02:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbjCTCCV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 19 Mar 2023 22:02:21 -0400 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2080.outbound.protection.outlook.com [40.107.14.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5872F618D; Sun, 19 Mar 2023 19:02:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z56H0P6NX6Bmx0LSkq5IC9AaARM0fCJuURguJlODov3gkb1v4YMvGgst92P+Jma++oOHyTS1F8naksOjoZuM7mRCeIeTjThnk6xPy9J+ZK8e2RqFz87HzDbbT1yY872Fa6FKpo9oSYNSLLcdflqJcZrFwKBc8rr36zAC0fw6HIxj1YaYhCdilFzWffptY4SIbCa8JaFm17YuSbu6HNFelYBn4Tj7F7J98Ph8A9QPDLOcglU/gbevHNHAZyz4x2AuseH4UQBE7PU4t+df7CAENn2cXK8GBccvC8ptoOelM3zkEOMYBZEr83MybGl5l5vX2r8IcA1guUwyRYrAfxbivg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cgZRNcGRIvypY14Lru6xKciFiaCbRWx+y5A3fo0h3UM=; b=hK2e5vyV4XiYYBV4QvgV9S2twdoq8IGmpOkc1tr9j88FBOWRb5ozKvMl9/cx2OwEx88nlrGDUDcOYH54JrU6zk5coGwHl1PByxqZOfP81znVwrypB6deuJn26olNFvlezUvUJ/zOxRJHRb+Z3aNyzAUVlntDcQTgPZGwEXtcvuUdk/6xMOaM9ycDvM7awZFdrwzqOhcUT2tjexCFsM9aogYzszEkcB2/tvKnt7qlR7hKrXMqccl2nPwBC6159oy9tk6ZmHZYK6G8Vw0WBjMdfAhL9gDh7xv96eUh/B5eFLeyyBQjLJWOgfPHEhewvS9DtOl++LRusKhLeAZe68iwcA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cgZRNcGRIvypY14Lru6xKciFiaCbRWx+y5A3fo0h3UM=; b=Hsyi00ezQMOiVh/QM9LXtMky1vIiTY8/Q1K/ztID+rA81K55z0xUgLepCHEntujZWoC12dgehYj6Uw03jP+R+6AjMBdArY/4BPjOwxJgRJIv8WQ0bojVxe+TXpUTATth3xQFc2ySa8EtxAW+zJG7V0NXiHq6n02G23NO0BupKVY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by PAXPR04MB8543.eurprd04.prod.outlook.com (2603:10a6:102:216::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Mon, 20 Mar 2023 02:02:14 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::f55a:cf12:da08:6d2a]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::f55a:cf12:da08:6d2a%7]) with mapi id 15.20.6178.037; Mon, 20 Mar 2023 02:02:09 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, xu.yang_2@nxp.com Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jun.li@nxp.com, Peng Fan <peng.fan@nxp.com> Subject: [PATCH linux-next] dt-bindings: usb: snps,dwc3: correct i.MX8MQ support Date: Mon, 20 Mar 2023 10:07:14 +0800 Message-Id: <20230320020714.955800-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR06CA0004.apcprd06.prod.outlook.com (2603:1096:4:186::20) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|PAXPR04MB8543:EE_ X-MS-Office365-Filtering-Correlation-Id: ac5d07a2-9a02-4e54-c9c2-08db28e71cf9 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: naHhvrQ1ZKcfDWE6N7uQMFZfuC/M/1CNiKEc6+DcEPMzL4P00agfRz6Y4axmZyFlVxrnrmyTCcT/D5hR27VaCeeCdiwU2oXo5enVhvqpmLpAmlYTbfaMD2kZu5lD3ASeuUAVBWp8jPF5FNYTQ4y2Jmj35wqK6tfVIc4dTyH1PYkd20b071FvazE1arySfQ/IL+OsMtGXPiv2xg+oYy1Zg3mUuYmD9+OlLXYESYI7gR6HG0JMEyg4d+w6cW1TpoVZkRJSR03P1LISYMSEG0v/+93+J6uyWegH7aLZA3XDZlBeqqUYftdfnSqQnpaXiBKxQlOTvBAftiXVCQ1Kgh2S3TEJiZx+IPFW+YG8rswplplPR+Enk2KCweOY+KaKOcMN9ghBTIR96v21JaVqe8MeKhzm418rZAwDMLqY40cG3pQ9K9UDyvfJk/IuDoX73wRRQ5GbzSfbYSqmzRddafv9+L9hWS4pdGnEDP/SK+5rsfA4pHjkxAxHyeImbuM+DIKM9tb2W5aHj3GlYARaEIT9jUXGbiUUZxaxxhXsc80YYP1hO11UjstObPUQzl8pQuQTzuhG5qxZQeEWh6OZGEeZyDKOZpOWEYzGGUMt1AJYTyHqYTKQByF8qlS0+6/YYhsVpHVKn5pQYkgOX+LhZHJjP1EQCcq/PYIoDfPgaOUznh47tD6Zs2rTv2XjgknLEodlvBlkMFqBjv/YX+Zbi7OWMg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(39860400002)(376002)(396003)(346002)(136003)(366004)(451199018)(2616005)(83380400001)(52116002)(6512007)(6506007)(478600001)(6486002)(7416002)(6666004)(5660300002)(316002)(1076003)(26005)(186003)(38100700002)(86362001)(38350700002)(2906002)(66946007)(8936002)(4326008)(66476007)(41300700001)(8676002)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hvGTo6BRHGCxdmD8070GSgQohz4t/g7+JN9v6YINjwt/UzsygI2kRrkXxtTHn464nLGUx5tHLRfRdYlot3ZinKGvK0O+pBCg6v+bwcTihqzs5NjC+EQvrV+JvyhcugRRfN0saDvZOzqfVcbEstQPqzKC3L00TYX1FxyZCazetTykR1WD48aL8KDHG9T+9/A/IPIp31g0bGDKJ2iNwcyEEHvCSHoFeD27JiViLHac9Mo7Ur9I995qarPfRzOo54upQFaep66Wt6Wn8zfrQyMnigrSVN5MbzQSS4I7jLNPXwQl3UTEHo7SgiYrpcvg7f998acGYpg+l4zpcjR2fFmPuGVSnoK4ak8GMHosWLDV1OxRpJEkkEfmP72YVmJe/YkiGhGF9gWtYuAhdR+igOUvI6Yq3ZZkc6lcVKie/K10a5XAyw3/esAiGSFRg4UM4xiDVu7kbIQX8EIedw4TKRZzATOKL+sxdw/Xq9nsFBz7wjO9h4bTSleSv/jcT6xziF3Ak8TR2ElB19TDMjP3ECVWJPyy434IUCuIvK+eh9GXid2FuUQ6ZxGx4pre95ITlST86Qmd1PvsbCGYu4Qk+7pBTmcxnwsIaRaV3ohnq0WwRdn4A+JegyGHM6DqyDJItVHBsaqPyMLknzCxR7yhw8wGgzV+o7UoochAmQr+UNZpqJ79oWES6psbuKq1O1mT3GlV+iyEECkbd16sTNYuRefYSzxpy6ehv7YacLBVNGlwtyj3otMswq/vy2fE2Ts10Ll4eUrOWnQsvMb3SHKodIeKVKaQO0SD1WjHCXX7CNGxK/x3blcLLF9ZI/QMdKFypIR9C4uVGu8kaePrIX+hXy4/0u4K5UBMW48IUkjMdg1aWI/IcM41IgCyiP7YLkUZx/56rA7GZ9J2d/aZudUH2oBxmBFb5/Yvlup++gAG8Jh1qXayXIkdpWrRXVqekbLZRfADc/RM5mZEi0GiV5v69PM7R3APxeKgHqVNBhVNW5+wzXpQFi8s9F35hI0VnRzfpbrMEnbTe6DM5oE9LL2Rr3uTbo1bgKL9VykJWI17kVEWYI6AX4bN16SZjqk0r4hkI8CdHIxbuQZ+cCX0nXo7Y8dY2ml/jngKvzG/VgbR452V3rNRmtTktFhObL2MBCMGQYd2xE0+MilYNsMbHM0iqHT9Jl/Ow68jhod9ebLNrG/jxDYsxATbHR2AYLb0LmC2wgLnelIqgxRy4dUCasB2+KOr+k+UfzrMu8+0jWsefj2Hur2Qf7c9Fi9nDrexS++p8aeTe2nrE4x+forC7atGaHfEgBlxwBk3fXvx2Azy6t1QMaFtiFs7vfXXRFryTSycn+LxLLJToIUvG3VYkaPO4J0kUuwZ3BnEK6+lELhpkpYGfkEHWbfzCrCgWKmyjaSU52At5q/s0VmSuhnTaVGtPq5hPtr2AaYVvkzKB+XJ2u7iDJH6FAybWcY/QcqKI9XO2Mck2uSikUiuHHjC+L+ZGG2UPTkynUc0UrfwDyghvVzI97sLlstW++AZFgKWvRO9go0jLjLyKGq+IMfxTZry5i4J+CjdeHAfN+7ZRZ8ilWgUVxX1rQv4zrBe8v9fp/qt25yH X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ac5d07a2-9a02-4e54-c9c2-08db28e71cf9 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2023 02:02:09.6912 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ep51t7uOoxA702opw3TWrqDOjSWRp74f/RpO6qQx9fvG6A0dWLRyLPgi7bbNuu+ozThMVCNZGElcoTY4/z0z/Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8543 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760852364672793191?= X-GMAIL-MSGID: =?utf-8?q?1760852364672793191?= |
Series |
[linux-next] dt-bindings: usb: snps,dwc3: correct i.MX8MQ support
|
|
Commit Message
Peng Fan (OSS)
March 20, 2023, 2:07 a.m. UTC
From: Peng Fan <peng.fan@nxp.com> The previous i.MX8MQ support breaks rockchip,dwc3 support, so use select to restrict i.MX8MQ support and avoid break others. Fixes: 3754c41c7686 ("dt-bindings: usb: snps,dwc3: support i.MX8MQ") Signed-off-by: Peng Fan <peng.fan@nxp.com> --- .../devicetree/bindings/usb/snps,dwc3.yaml | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-)
Comments
On 20/03/2023 03:07, Peng Fan (OSS) wrote: > From: Peng Fan <peng.fan@nxp.com> > > The previous i.MX8MQ support breaks rockchip,dwc3 support, > so use select to restrict i.MX8MQ support and avoid break others. > > Fixes: 3754c41c7686 ("dt-bindings: usb: snps,dwc3: support i.MX8MQ") > Signed-off-by: Peng Fan <peng.fan@nxp.com> > --- > .../devicetree/bindings/usb/snps,dwc3.yaml | 21 ++++++++++++------- > 1 file changed, 14 insertions(+), 7 deletions(-) > > diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > index 16c7d06c9172..6347a6769ee3 100644 > --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > @@ -28,15 +28,22 @@ allOf: > else: > $ref: usb-xhci.yaml# > > +select: > + properties: > + compatible: > + contains: > + enum: > + - fsl,imx8mq-dwc3 And what about all snps,dwc3 devices there (without specific compatible)? Previously they were selected and now they are not... so you just disabled schema for all of them. > + required: > + - compatible > + > properties: > compatible: > - oneOf: > - - items: > - - const: fsl,imx8mq-dwc3 I don't understand why you remove your compatible. Best regards, Krzysztof
> Subject: Re: [PATCH linux-next] dt-bindings: usb: snps,dwc3: correct > i.MX8MQ support > > On 20/03/2023 03:07, Peng Fan (OSS) wrote: > > From: Peng Fan <peng.fan@nxp.com> > > > > The previous i.MX8MQ support breaks rockchip,dwc3 support, so use > > select to restrict i.MX8MQ support and avoid break others. > > > > Fixes: 3754c41c7686 ("dt-bindings: usb: snps,dwc3: support i.MX8MQ") > > Signed-off-by: Peng Fan <peng.fan@nxp.com> > > --- > > .../devicetree/bindings/usb/snps,dwc3.yaml | 21 ++++++++++++------- > > 1 file changed, 14 insertions(+), 7 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > > b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > > index 16c7d06c9172..6347a6769ee3 100644 > > --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > > +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > > @@ -28,15 +28,22 @@ allOf: > > else: > > $ref: usb-xhci.yaml# > > > > +select: > > + properties: > > + compatible: > > + contains: > > + enum: > > + - fsl,imx8mq-dwc3 > > And what about all snps,dwc3 devices there (without specific compatible)? > Previously they were selected and now they are not... so you just disabled > schema for all of them. [Peng Fan] I am not sure how to address: https://lore.kernel.org/all/CAL_Jsq+nrqTX5ND3=+kFUmStx-+b=qpE_WsL_Le-YX8c285-5A@mail.gmail.com/ Rob suggested use select, but I am not sure how to use it here. Use an extra yaml file with select or else. > > > + required: > > + - compatible > > + > > properties: > > compatible: > > - oneOf: > > - - items: > > - - const: fsl,imx8mq-dwc3 > > I don't understand why you remove your compatible. [Peng Fan] My last change drops 'contains' by mistake, and breaks rockchip,dwc3, so just bring back the original content Thanks, Peng. > > Best regards, > Krzysztof
On 20/03/2023 12:02, Peng Fan wrote: >> Subject: Re: [PATCH linux-next] dt-bindings: usb: snps,dwc3: correct >> i.MX8MQ support >> >> On 20/03/2023 03:07, Peng Fan (OSS) wrote: >>> From: Peng Fan <peng.fan@nxp.com> >>> >>> The previous i.MX8MQ support breaks rockchip,dwc3 support, so use >>> select to restrict i.MX8MQ support and avoid break others. >>> >>> Fixes: 3754c41c7686 ("dt-bindings: usb: snps,dwc3: support i.MX8MQ") >>> Signed-off-by: Peng Fan <peng.fan@nxp.com> >>> --- >>> .../devicetree/bindings/usb/snps,dwc3.yaml | 21 ++++++++++++------- >>> 1 file changed, 14 insertions(+), 7 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml >>> b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml >>> index 16c7d06c9172..6347a6769ee3 100644 >>> --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml >>> +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml >>> @@ -28,15 +28,22 @@ allOf: >>> else: >>> $ref: usb-xhci.yaml# >>> >>> +select: >>> + properties: >>> + compatible: >>> + contains: >>> + enum: >>> + - fsl,imx8mq-dwc3 >> >> And what about all snps,dwc3 devices there (without specific compatible)? >> Previously they were selected and now they are not... so you just disabled >> schema for all of them. > [Peng Fan] > > I am not sure how to address: > https://lore.kernel.org/all/CAL_Jsq+nrqTX5ND3=+kFUmStx-+b=qpE_WsL_Le-YX8c285-5A@mail.gmail.com/ > > Rob suggested use select, but I am not sure how to use it here. Use > an extra yaml file with select or else. > >> >>> + required: >>> + - compatible >>> + >>> properties: >>> compatible: >>> - oneOf: >>> - - items: >>> - - const: fsl,imx8mq-dwc3 >> >> I don't understand why you remove your compatible. > [Peng Fan] > > My last change drops 'contains' by mistake, and breaks This I understand. > rockchip,dwc3, so just bring back the original content This is not a reason to make your compatible undocumented. You basically revert your patch. It does not make any sense to me. Best regards, Krzysztof
> Subject: Re: [PATCH linux-next] dt-bindings: usb: snps,dwc3: correct > i.MX8MQ support > > On 20/03/2023 12:02, Peng Fan wrote: > >> Subject: Re: [PATCH linux-next] dt-bindings: usb: snps,dwc3: correct > >> i.MX8MQ support > >> > >> On 20/03/2023 03:07, Peng Fan (OSS) wrote: > >>> From: Peng Fan <peng.fan@nxp.com> > >>> > >>> The previous i.MX8MQ support breaks rockchip,dwc3 support, so use > >>> select to restrict i.MX8MQ support and avoid break others. > >>> > >>> Fixes: 3754c41c7686 ("dt-bindings: usb: snps,dwc3: support i.MX8MQ") > >>> Signed-off-by: Peng Fan <peng.fan@nxp.com> > >>> --- > >>> .../devicetree/bindings/usb/snps,dwc3.yaml | 21 ++++++++++++------- > >>> 1 file changed, 14 insertions(+), 7 deletions(-) > >>> > >>> diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > >>> b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > >>> index 16c7d06c9172..6347a6769ee3 100644 > >>> --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > >>> +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > >>> @@ -28,15 +28,22 @@ allOf: > >>> else: > >>> $ref: usb-xhci.yaml# > >>> > >>> +select: > >>> + properties: > >>> + compatible: > >>> + contains: > >>> + enum: > >>> + - fsl,imx8mq-dwc3 > >> > >> And what about all snps,dwc3 devices there (without specific compatible)? > >> Previously they were selected and now they are not... so you just > >> disabled schema for all of them. > > [Peng Fan] > > > > I am not sure how to address: > > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore > > .kernel.org%2Fall%2FCAL_Jsq%2BnrqTX5ND3%3D%2BkFUmStx- > %2Bb%3DqpE_WsL_Le > > -YX8c285- > 5A%40mail.gmail.com%2F&data=05%7C01%7Cpeng.fan%40nxp.com%7C1e > > > 67df79692243f058fa08db2937befd%7C686ea1d3bc2b4c6fa92cd99c5c30163 > 5%7C0% > > > 7C0%7C638149091586933618%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC > 4wLjAwMDAiL > > > CJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&s > data=r1 > > fesB1c%2B3YxohCGM36xySFucVU25WVYIMlpgGkdoWk%3D&reserved=0 > > > > Rob suggested use select, but I am not sure how to use it here. Use an > > extra yaml file with select or else. > > > >> > >>> + required: > >>> + - compatible > >>> + > >>> properties: > >>> compatible: > >>> - oneOf: > >>> - - items: > >>> - - const: fsl,imx8mq-dwc3 > >> > >> I don't understand why you remove your compatible. > > [Peng Fan] > > > > My last change drops 'contains' by mistake, and breaks > > This I understand. > > > rockchip,dwc3, so just bring back the original content > > This is not a reason to make your compatible undocumented. You basically > revert your patch. It does not make any sense to me. [Peng Fan] ok, let me think more. Honestly not have good idea (: If you have any guidance, that would be helpful. Thanks, Peng. > > > Best regards, > Krzysztof
On 20/03/2023 12:44, Peng Fan wrote: >> Subject: Re: [PATCH linux-next] dt-bindings: usb: snps,dwc3: correct >> i.MX8MQ support >> >> On 20/03/2023 12:02, Peng Fan wrote: >>>> Subject: Re: [PATCH linux-next] dt-bindings: usb: snps,dwc3: correct >>>> i.MX8MQ support >>>> >>>> On 20/03/2023 03:07, Peng Fan (OSS) wrote: >>>>> From: Peng Fan <peng.fan@nxp.com> >>>>> >>>>> The previous i.MX8MQ support breaks rockchip,dwc3 support, so use >>>>> select to restrict i.MX8MQ support and avoid break others. >>>>> >>>>> Fixes: 3754c41c7686 ("dt-bindings: usb: snps,dwc3: support i.MX8MQ") >>>>> Signed-off-by: Peng Fan <peng.fan@nxp.com> >>>>> --- >>>>> .../devicetree/bindings/usb/snps,dwc3.yaml | 21 ++++++++++++------- >>>>> 1 file changed, 14 insertions(+), 7 deletions(-) >>>>> >>>>> diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml >>>>> b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml >>>>> index 16c7d06c9172..6347a6769ee3 100644 >>>>> --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml >>>>> +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml >>>>> @@ -28,15 +28,22 @@ allOf: >>>>> else: >>>>> $ref: usb-xhci.yaml# >>>>> >>>>> +select: >>>>> + properties: >>>>> + compatible: >>>>> + contains: >>>>> + enum: >>>>> + - fsl,imx8mq-dwc3 >>>> >>>> And what about all snps,dwc3 devices there (without specific compatible)? >>>> Previously they were selected and now they are not... so you just >>>> disabled schema for all of them. >>> [Peng Fan] >>> >>> I am not sure how to address: >>> >> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore >>> .kernel.org%2Fall%2FCAL_Jsq%2BnrqTX5ND3%3D%2BkFUmStx- >> %2Bb%3DqpE_WsL_Le >>> -YX8c285- >> 5A%40mail.gmail.com%2F&data=05%7C01%7Cpeng.fan%40nxp.com%7C1e >>> >> 67df79692243f058fa08db2937befd%7C686ea1d3bc2b4c6fa92cd99c5c30163 >> 5%7C0% >>> >> 7C0%7C638149091586933618%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC >> 4wLjAwMDAiL >>> >> CJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&s >> data=r1 >>> fesB1c%2B3YxohCGM36xySFucVU25WVYIMlpgGkdoWk%3D&reserved=0 >>> >>> Rob suggested use select, but I am not sure how to use it here. Use an >>> extra yaml file with select or else. >>> >>>> >>>>> + required: >>>>> + - compatible >>>>> + >>>>> properties: >>>>> compatible: >>>>> - oneOf: >>>>> - - items: >>>>> - - const: fsl,imx8mq-dwc3 >>>> >>>> I don't understand why you remove your compatible. >>> [Peng Fan] >>> >>> My last change drops 'contains' by mistake, and breaks >> >> This I understand. >> >>> rockchip,dwc3, so just bring back the original content >> >> This is not a reason to make your compatible undocumented. You basically >> revert your patch. It does not make any sense to me. > [Peng Fan] > > ok, let me think more. Honestly not have good idea (: > If you have any guidance, that would be helpful. You should only need a select, however most likely selecting also snps,dwc3 (without specific compatible). Anyway this binding - including how it is referenced by others - is getting unmanagable. I think I commented about this on some other occasion. The point is that no one refactors it thus it grows and grows leading to more of such tricky scenarios. How it should be refactored? Probably just like all other with re-usable components: common part and device specific bindings including it. While snps,dwc3 alone should not be allowed anymore. Best regards, Krzysztof
> -----Original Message----- > From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > Sent: 2023年3月20日 20:06 > To: Peng Fan <peng.fan@nxp.com>; Peng Fan (OSS) > <peng.fan@oss.nxp.com>; gregkh@linuxfoundation.org; > robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; > shawnguo@kernel.org; s.hauer@pengutronix.de; Xu Yang > <xu.yang_2@nxp.com> > Cc: kernel@pengutronix.de; festevam@gmail.com; dl-linux-imx <linux- > imx@nxp.com>; linux-usb@vger.kernel.org; devicetree@vger.kernel.org; > linux-kernel@vger.kernel.org; linux-arm-kernel@lists.infradead.org; Jun Li > <jun.li@nxp.com> > Subject: Re: [PATCH linux-next] dt-bindings: usb: snps,dwc3: correct > i.MX8MQ support > > On 20/03/2023 12:44, Peng Fan wrote: > >> Subject: Re: [PATCH linux-next] dt-bindings: usb: snps,dwc3: correct > >> i.MX8MQ support > >> > >> On 20/03/2023 12:02, Peng Fan wrote: > >>>> Subject: Re: [PATCH linux-next] dt-bindings: usb: snps,dwc3: > >>>> correct i.MX8MQ support > >>>> > >>>> On 20/03/2023 03:07, Peng Fan (OSS) wrote: > >>>>> From: Peng Fan <peng.fan@nxp.com> > >>>>> > >>>>> The previous i.MX8MQ support breaks rockchip,dwc3 support, so use > >>>>> select to restrict i.MX8MQ support and avoid break others. > >>>>> > >>>>> Fixes: 3754c41c7686 ("dt-bindings: usb: snps,dwc3: support > >>>>> i.MX8MQ") > >>>>> Signed-off-by: Peng Fan <peng.fan@nxp.com> > >>>>> --- > >>>>> .../devicetree/bindings/usb/snps,dwc3.yaml | 21 ++++++++++++---- > --- > >>>>> 1 file changed, 14 insertions(+), 7 deletions(-) > >>>>> > >>>>> diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > >>>>> b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > >>>>> index 16c7d06c9172..6347a6769ee3 100644 > >>>>> --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > >>>>> +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > >>>>> @@ -28,15 +28,22 @@ allOf: > >>>>> else: > >>>>> $ref: usb-xhci.yaml# > >>>>> > >>>>> +select: > >>>>> + properties: > >>>>> + compatible: > >>>>> + contains: > >>>>> + enum: > >>>>> + - fsl,imx8mq-dwc3 > >>>> > >>>> And what about all snps,dwc3 devices there (without specific > compatible)? > >>>> Previously they were selected and now they are not... so you just > >>>> disabled schema for all of them. > >>> [Peng Fan] > >>> > >>> I am not sure how to address: > >>> > >> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flor > >> > e%2F&data=05%7C01%7Cpeng.fan%40nxp.com%7Cb85a372a1a3d467fbf55 > 08db293b > >> > 699d%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C63814910733 > 4034389% > >> > 7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLC > JBTiI6I > >> > k1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=etbl63jX3d0LVM3 > %2B8P8%2BB > >> 2z8dcBddkns%2Fx0O63UHc2E%3D&reserved=0 > >>> .kernel.org%2Fall%2FCAL_Jsq%2BnrqTX5ND3%3D%2BkFUmStx- > >> %2Bb%3DqpE_WsL_Le > >>> -YX8c285- > >> > 5A%40mail.gmail.com%2F&data=05%7C01%7Cpeng.fan%40nxp.com%7C1e > >>> > >> > 67df79692243f058fa08db2937befd%7C686ea1d3bc2b4c6fa92cd99c5c30163 > >> 5%7C0% > >>> > >> > 7C0%7C638149091586933618%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC > >> 4wLjAwMDAiL > >>> > >> > CJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&s > >> data=r1 > >>> > fesB1c%2B3YxohCGM36xySFucVU25WVYIMlpgGkdoWk%3D&reserved=0 > >>> > >>> Rob suggested use select, but I am not sure how to use it here. Use > >>> an extra yaml file with select or else. > >>> > >>>> > >>>>> + required: > >>>>> + - compatible > >>>>> + > >>>>> properties: > >>>>> compatible: > >>>>> - oneOf: > >>>>> - - items: > >>>>> - - const: fsl,imx8mq-dwc3 > >>>> > >>>> I don't understand why you remove your compatible. > >>> [Peng Fan] > >>> > >>> My last change drops 'contains' by mistake, and breaks > >> > >> This I understand. > >> > >>> rockchip,dwc3, so just bring back the original content > >> > >> This is not a reason to make your compatible undocumented. You > >> basically revert your patch. It does not make any sense to me. > > [Peng Fan] > > > > ok, let me think more. Honestly not have good idea (: > > If you have any guidance, that would be helpful. > > You should only need a select, however most likely selecting also > snps,dwc3 (without specific compatible). Anyway this binding - including > how it is referenced by others - is getting unmanagable. I think I commented > about this on some other occasion. The point is that no one refactors it thus > it grows and grows leading to more of such tricky scenarios. > > How it should be refactored? Probably just like all other with re-usable > components: common part and device specific bindings including it. While > snps,dwc3 alone should not be allowed anymore. Thanks, I may take rockchip,dwc3.yaml or other vendor,dwc3.yaml as reference to introduce fsl-imx8mq,dwc3.yaml to just add a select, and drop the fsl,imx8mq-dwc3 compatible from snps,dwc3.yaml. Thanks, Peng. > > Best regards, > Krzysztof
diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml index 16c7d06c9172..6347a6769ee3 100644 --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml @@ -28,15 +28,22 @@ allOf: else: $ref: usb-xhci.yaml# +select: + properties: + compatible: + contains: + enum: + - fsl,imx8mq-dwc3 + required: + - compatible + properties: compatible: - oneOf: - - items: - - const: fsl,imx8mq-dwc3 - - const: snps,dwc3 - - const: snps,dwc3 - - const: synopsys,dwc3 - deprecated: true + contains: + oneOf: + - const: snps,dwc3 + - const: synopsys,dwc3 + deprecated: true reg: maxItems: 1