Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp332876rdb; Wed, 17 Jan 2024 03:34:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IGgjYttUA9saQemzGuoJ7sBFer2H5nbwbIf4hTGppUuM6Mx9joGt38MBGkTzRW/4kID3O0e X-Received: by 2002:a25:97c3:0:b0:dc2:2af6:6aca with SMTP id j3-20020a2597c3000000b00dc22af66acamr1583408ybo.41.1705491283467; Wed, 17 Jan 2024 03:34:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705491283; cv=pass; d=google.com; s=arc-20160816; b=NtplqhEoKPw6cVJQ7R4+kN+9qZDK82cgdBymJW6pDjRmUe3B0yDHtUivmnHnqeLD4m daPvr1UVGFQ8hwjl7/vWa1JwHbWXPS68SFD0k1WZ/pRtlzlJTUwG5n8Nfi5LTND01RuF 8lTeE5c5rDraeiqCdMFD0oraFm+2YYhcCLVskjjrNgkB2y4bweuE/1lVt4VhUvd9EEPh X7r/wx75YbWfbHJ6S0Hpp/fL2LaoU7pWS9II5qRlp8d40zVaq6802pzyZKdumgs1m3AN R2wm/uA6mjCZ4r6rrtg2uiGwOR5Tm+a4bQXjtbnmVVLiDEs7hd7+kKk1Pg8d3z1exI9a amoA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=Ghh+YL54tSMsxEEYxkWsEx/jgOTuVdo03gH5TqGxUNY=; fh=mCZdUzSqo6P6LbFnhNuV6O54foZqYE2bhj5QALUq7mo=; b=dCHCoKPl478RkHWADtN+pBwt9yGNXH861JmF+vSv9JqAk+yAXfnwoOnCiCtusz1Bpa +XUKEAFkMVpgoJEmnoMBZ/WB6r+yUjBPHDhzMcpxpalWWS0V2Y+L211fDPgnvIXlkmxy ItYw+7Lk/dl995iGJJTABEEf+SkJvPhFywl0K/FW5IFLApysm971wQCyQOl3nXI3qHU+ MY83g1xAwcLxjXd6SyWTK5e/U1C/KyiRNGHlvvgXSXi/8YRYghTw/g0j7SMpS3/tIVzt rVWSlkc/Ugdx94asiYE368COMIMicIXK8lK69t3sKPS9BuhC4w3D2ZabaMh6sTtnLKHj pN6Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jCNGsMzN; 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-28915-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b28-20020a0cb3dc000000b0068178fa8a8dsi1573993qvf.592.2024.01.17.03.34.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 03:34:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28915-linux.lists.archive=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=jCNGsMzN; 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-28915-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28915-linux.lists.archive=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 18ED71C21374 for ; Wed, 17 Jan 2024 11:34:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44BC31DFCB; Wed, 17 Jan 2024 11:34:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jCNGsMzN" Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 A33C61DFC4 for ; Wed, 17 Jan 2024 11:34:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705491270; cv=none; b=O2OhiOnfBEPPl8nMiu3R7TFI/xxNdEbPmttXJTsOGJXNA5PZCRyRwZmmgi0xYfte1o9RqYQLDyCFo960ycrtGe9QUbnwtjkagJplu8Gq1gLXoyB9075PdGEHNxz/O6IGPgShgXFzBXyFnWwttNp5h1QISXVhP3G9FcpCEwkPMoE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705491270; c=relaxed/simple; bh=9NBh4JdtstgNI9XwFTqjeTIIJilG4HZUB+nfE7edhIk=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:Content-Language: To:Cc:References:From:Autocrypt:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=YxOFgi+USKzSEwbk5gwgMaWYoQL/zDa3kNik3x8m5n/jYw1QMB7B4Ld2FSfmGG2Cx+jgpInzSLhUJHPeRA7XFRGgTMH5hiZXjqYF2AFRG5K0/n/SDgrvhRbfqudxD6SLIl2SJubNlZpoQxQHkqnLAy/uOE+UCKPpp2ROkHpBTvM= 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=jCNGsMzN; arc=none smtp.client-ip=209.85.218.44 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-f44.google.com with SMTP id a640c23a62f3a-a277339dcf4so1222205366b.2 for ; Wed, 17 Jan 2024 03:34:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705491267; x=1706096067; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Ghh+YL54tSMsxEEYxkWsEx/jgOTuVdo03gH5TqGxUNY=; b=jCNGsMzNVPP8rNB9jNfMdK7IM9FjZJxTZoSKS/IssbTgtWwLIMOoSYBU6q/NkAkuyd cHW2FRw7e1kV/4KwpsxqEyZ6LFSJVUbbq8IpV49Ih/lg31CXYiGzPQc8yhkJDQMAHFWg K8Cr7fdfECZDFcxMDQETyrMfOJ5O2tUyR02IUyV0P0Y1tRB24lGrGdbKB4KD8Mr1rGRD EV5LqObhLeCmikpdYzI1PAJfjtVf8XcYcTeEz8FW4l0E+bf4P1UU05gzD2ACcqHbZzVg YXQhM9xj6dthxK8CAXw80vUwKmFhh2oL8rlf8G+UdpY5Rpk2YSdhFSTKcGhD+lQIeEuC Y7pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705491267; x=1706096067; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ghh+YL54tSMsxEEYxkWsEx/jgOTuVdo03gH5TqGxUNY=; b=q6b7PH/1bWNSxTVZU+uOhh/xA1ZAVj7kJ3oC4gazVOrnvNVEzXQiMoXRK+qLi5CGkP uZnVXcUUtwUhLO5020H4UKSR11xX0kQq9HYk2Zx4NAZNzAf48Eq33P9r3+TGkdOtctB3 5ao8rmkRWDg+8sSXbJ8Zsd5ve+1ouiNTY7elotk+3Tsqg82uKcTGjblP5PCVPIk0s/Ou 6kAoNLos6fmdUXlIpM/C5oLiZzGlla62hN5Dj7oQ7SKsqeW3jpwBBgHSYikOVE1eoHyk 7Xa9hd+5L9QS5lWbirVAo7sTguFNWliuRnBqsM/tkEXqkaiq+UB0ZGWzv5ztdr3ojSxO m2dQ== X-Gm-Message-State: AOJu0YxB6wMrLz4+qY59sSq2qdOYPUOlx9801ugBsCHYCm9tdL+xF82q v0CqeNwtfxHwYRlVyRS+aHHvUVXrraPGEg== X-Received: by 2002:a17:907:7646:b0:a2e:bdaf:9302 with SMTP id kj6-20020a170907764600b00a2ebdaf9302mr466766ejc.121.1705491266855; Wed, 17 Jan 2024 03:34:26 -0800 (PST) Received: from [192.168.1.20] ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id m23-20020a17090607d700b00a233efe6aa7sm7672931ejc.51.2024.01.17.03.34.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Jan 2024 03:34:26 -0800 (PST) Message-ID: <9e71bb6c-5fac-4398-8048-88b0f7aabfe9@linaro.org> Date: Wed, 17 Jan 2024 12:34:24 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] dt-bindings: PCI: ti,j721e-pci-*: Add checks for max-link-speed Content-Language: en-US To: Siddharth Vadapalli Cc: bhelgaas@google.com, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, vigneshr@ti.com, afd@ti.com, srk@ti.com References: <20240117102526.557006-1-s-vadapalli@ti.com> <20240117102526.557006-3-s-vadapalli@ti.com> <4282b248-cb7f-4486-bde6-105a3aed6be2@linaro.org> <92ceb1ea-78db-4bc4-af1f-a1690eaca24c@ti.com> <42f44ecc-c7f4-4209-8cb5-805891c35413@linaro.org> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX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lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 17/01/2024 12:22, Siddharth Vadapalli wrote: > > > On 17/01/24 16:49, Krzysztof Kozlowski wrote: >> On 17/01/2024 12:15, Siddharth Vadapalli wrote: >>> >>> >>> On 17/01/24 16:30, Krzysztof Kozlowski wrote: >>>> On 17/01/2024 11:58, Siddharth Vadapalli wrote: >>>>> On 17/01/24 16:05, Krzysztof Kozlowski wrote: >>>>>> On 17/01/2024 11:25, Siddharth Vadapalli wrote: >>>>>>> Extend the existing compatible based checks for validating and enforcing >>>>>>> the "max-link-speed" property. >>>>>> >>>>>> Based on what? Driver or hardware? Your entire change suggests you >>>>> >>>>> Hardware. The PCIe controller on AM64 SoC supports up to Gen2 link speed while >>>>> the PCIe controllers on other SoCs support Gen3 link speed. >>>>> >>>>>> should just drop it from the binding, because this can be deduced from >>>>>> compatible. >>>>> >>>>> Could you please clarify? Isn't the addition of the checks for "max-link-speed" >>>>> identical to the checks which were added for "num-lanes", both of which are >>>>> Hardware specific? >>>> >>>> Compatible defines these values, at least what it looks like from the patch. >>> >>> In this patch, I have added checks for the "max-link-speed" property in the same >>> section that "num-lanes" is being evaluated. >> >> I know what you did in patch. I read it. >> >>> The values for "max-link-speed" are >>> based on the Hardware support and this patch is validating the "max-link-speed" >>> property in the device-tree nodes for the devices against the Hardware supported >>> values which this patch is adding in the corresponding section. Kindly let me >>> know if I misunderstood what you meant to convey. >> >> Nothing of this is relevant. >> >> I used two entirely different wordings for this and you still don't get >> it, so I don't know if I have third one. >> >> Maybe this: >> Move it to driver match data. > > Ok. I will drop the checks for "max-link-speed" and move them to the driver. But > I wonder why the checks for "num-lanes" are needed in the first place when they > could be in the driver as well. Yes, that's why I commented in your next patch. Best regards, Krzysztof