Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1284776rdb; Sun, 7 Jan 2024 12:10:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGrOL8lFqGwJhvWOsP7VRLX46CEPU1rGKuVRZKqlJb9Q5vDqoZHHJcID4VOH4z/EP5pkqcC X-Received: by 2002:a05:6871:d302:b0:203:f3b8:412a with SMTP id pn2-20020a056871d30200b00203f3b8412amr3019029oac.49.1704658253652; Sun, 07 Jan 2024 12:10:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704658253; cv=none; d=google.com; s=arc-20160816; b=sbShkdC9MkqpJU5+5Ai0xbGypVJzFTbTyWwDMsJ8VTCcR/Nyvm2s9t9/LipP29ibVZ UL7qW2VT6XOEg9atFNcDF4hqBvKbKl+j6U8F7WiIF/2E9naDaTLVt+mzP616n1LL5ACh KitaBkCzuBVDzUho21pIcfDKR4mythyEXtXo9VxfV7H9VcLoqetyvQzcvVQZXFNYkkd5 bq+eocaetxMMuzjabsi5w7gZ6ZUfbbUD3WGj53tths4KwznMGC/rC8MNfUnvROa1r/iC boBaVz0Lp1FhaTpc2eMU4SwFP1Na3YsvHle1VkXFJCW5e7VNIT8OqjtjloEeiHHe6jLF G0WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qaJWomBUGOWZwKBbr+CxKGUdDqR+QRKmIC9Sup/5TvM=; fh=+LdBgT+8TGxK7oApvOLexBlf5JbhPJT2gijORzHb2oU=; b=EZ58VrdoYsuv6plpqoL6SIcyaj14OihcKmaHwKgMBUEqBZYfcVWNhkvVs6Y3RQOMv1 6yInc1Dlv03SNFA4BkoxHG/deg5sVbKG6uDxaTmXs6yRrGfZkMdzf108r0CK/FoGsYqG Yxhef9bf7ElGve2p3TxIdiLgUkf7D6vsxf8QzLIMSy4jsaim0xgpft63iOcJ9CuO/GqI +hSyEQeCK66xip3XdKCJSNNQ1XgJ1GfRxfR5tPnA5Uel6Asy88W22HkdYh2mjZh6djLN qZXy0dfqIlHLmJl5zsQBut7qs1KbtlAtHhQkL+rupiPJbvQ9XwqcALFzCkz+MxFr9q+/ mx+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZXTDcXzC; spf=pass (google.com: domain of linux-kernel+bounces-18976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d30-20020a63735e000000b005c66e60900csi4896542pgn.239.2024.01.07.12.10.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 12:10:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZXTDcXzC; spf=pass (google.com: domain of linux-kernel+bounces-18976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 40B7B281AA3 for ; Sun, 7 Jan 2024 20:10:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C5BF1170D; Sun, 7 Jan 2024 20:10:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZXTDcXzC" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 3722011703; Sun, 7 Jan 2024 20:10:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-50e7c6e3c63so960731e87.3; Sun, 07 Jan 2024 12:10:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704658240; x=1705263040; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=qaJWomBUGOWZwKBbr+CxKGUdDqR+QRKmIC9Sup/5TvM=; b=ZXTDcXzCM2+6XcE1UwNNpnoxU9G+73yEMgMxcdYOnkra7HaGgVYp4UODcWup113F/b jab1vTMLrZEZrg9n4zcd9nKC5k+OD71NA0emCEZsZ5Yb89MSXlLUdB3yEi8Ma0ODPwGA AHEBXQUa88okX6hTEkWDZ5vmts6jpYkpTkUGIhWDNWSt/f3vngjiulh7fglYHUa5AvJm FzMfjR3M0TOHU0SPsXWGIwyF4+ZxLyIBHDjHcKSFAl0AZx9wcaw7duMgakvbzocutI60 gyq2FPlloo+0Gfnp6bAl0JnCO/IBEWDAbZi+rd1Keme286HGFGzpTwyzmt7qYNeyBq8k hy5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704658240; x=1705263040; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qaJWomBUGOWZwKBbr+CxKGUdDqR+QRKmIC9Sup/5TvM=; b=XcTBKAfeRlKYpLUaUvv32Vg6V3PYDaEWRYb4kBUXTXoAQ4WxPxpdXsdPLvLFljw7BD PVM8YmBPHc8xpmrL05oT42DN38JW4ntn+RrpRi38IGsD8o7tdrxORmNXSE+DagZjgL8X OO7kIzzd/vGjvjL11b6wi7jcqSqPcLtOPWTJ4bmZADsYaV9z2xCX13l6cKfolfiRtED3 xS2yJFHXN2AMRMGYClnOPYF5LdW26WXoZpkSiC8+uXRRRZpj10NvSPbp5dtST+0JxJFd E8OL4GH7H7CGHadA7FvEpM5jTZgnWhz1taqVB8341sRJkvjq4Gi+igpdBxG3uk1WwGOp RQag== X-Gm-Message-State: AOJu0YwaDmFFeZ/63Q8D+uQqLQPAcdBYYMt8fGT2DXiS/XBPVSkWgu/Z GHMtpREgQ5c1ZcC2QlFpZHc= X-Received: by 2002:ac2:4dac:0:b0:50e:305c:25fb with SMTP id h12-20020ac24dac000000b0050e305c25fbmr406141lfe.216.1704658240025; Sun, 07 Jan 2024 12:10:40 -0800 (PST) Received: from mobilestation ([95.79.203.166]) by smtp.gmail.com with ESMTPSA id w3-20020ac254a3000000b0050e7e8644c3sm914216lfk.289.2024.01.07.12.10.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 12:10:39 -0800 (PST) Date: Sun, 7 Jan 2024 23:10:37 +0300 From: Serge Semin To: Leong Ching Swee , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Maxime Coquelin , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Giuseppe Cavallaro , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, Rohan G Thomas Subject: Re: [PATCH net-next v2 1/4] dt-bindings: net: snps,dwmac: per channel irq Message-ID: References: <20240105070925.2948871-1-leong.ching.swee@intel.com> <20240105070925.2948871-2-leong.ching.swee@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240105070925.2948871-2-leong.ching.swee@intel.com> On Fri, Jan 05, 2024 at 03:09:22PM +0800, Leong Ching Swee wrote: > From: Swee Leong Ching > > Add dt-bindings for per channel irq. > > Signed-off-by: Rohan G Thomas > Signed-off-by: Swee Leong Ching > --- > .../devicetree/bindings/net/snps,dwmac.yaml | 24 +++++++++++++------ > 1 file changed, 17 insertions(+), 7 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml > index 5c2769dc689a..e72dded824f4 100644 > --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml > +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml > @@ -103,17 +103,27 @@ properties: > > interrupts: > minItems: 1 > - items: > - - description: Combined signal for various interrupt events > - - description: The interrupt to manage the remote wake-up packet detection > - - description: The interrupt that occurs when Rx exits the LPI state > + maxItems: 19 > > interrupt-names: > minItems: 1 > + maxItems: 19 > items: > - - const: macirq > - - enum: [eth_wake_irq, eth_lpi] > - - const: eth_lpi > + oneOf: > + - description: Combined signal for various interrupt events > + const: macirq > + - description: The interrupt to manage the remote wake-up packet detection > + const: eth_wake_irq > + - description: The interrupt that occurs when Rx exits the LPI state > + const: eth_lpi > + - description: DMA Tx per-channel interrupt > + pattern: '^dma_tx[0-7]?$' > + - description: DMA Rx per-channel interrupt > + pattern: '^dma_rx[0-7]?$' > + > + allOf: > + - contains: > + const: macirq In order to restore the v1 discussion around this change, here is my comment copied from there: > As Rob correctly noted it's also better to make sure that 'macirq' is placed first > in the array. So instead of the constraint above I guess the next one would > make sure both the array has 'macirq' name and it's the first item: > > allOf: > - maxItems: 34 > items: > - const: macirq Leong said it didn't work: https://lore.kernel.org/netdev/CH0PR11MB54904615B45E521DE6B1A7B3CF61A@CH0PR11MB5490.namprd11.prod.outlook.com/ Rob, Krzysztof, Conor could you please clarify whether this change is ok the way it is or it would be better to preserve the stricter constraint and fix the DT-schema validation tool somehow? -Serge(y) > > clocks: > minItems: 1 > -- > 2.34.1 > >