Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp653033pxu; Fri, 11 Dec 2020 10:54:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcHiC19CvbD1e0LfHGRce+x/drlct20rXDiJQAib6zkgJSjL8x6GoDwbCzscqBx7qOPyM3 X-Received: by 2002:a05:6402:8d9:: with SMTP id d25mr12983072edz.278.1607712853058; Fri, 11 Dec 2020 10:54:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607712853; cv=none; d=google.com; s=arc-20160816; b=h6AiRC8gy9xaV3nJ41GOmzzuoEsZgPgs/MPunHW6A9XNi1kkweiDcOSLXZ4VdZcaaB cJccBgCYp4gF6hCJ3t4GOwgJsa802ON0mpM78gE7u90oApqmBYDVMyb7eHyS8BEq8Tkq yI/ym2XxvgkxV65FCziQsXqP0uzwVQ6RkhkG6Q06rKf9HbXBolcSA6hN7mW7hWplKok1 wWnjeBHPwX9VFWGfGBiXpkjC9Aff5RHGG/YE0d4YOIBKKuBzo1h4qtpia6sEy/bnmPqn 6j6AHu5ho2hZVDes5M90R2Ax0RMOkMqUZHZWRWtaJCxFWCAzJNeEtXBwPSlxQPVQf4rB Bnyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Lk4GdhLa0ZFKQ9IbJzSJADTtifZ4aE+X2kVATilcpVg=; b=xczFlBi5fj5EqTY0C2lnt8XaECkEUXJPtSRH5wMJq6/HB8UFxDp5nnqJJxCeVdGGrW 0sspy5iRHGea/O75Xu90+BSPgopZmOHnQQyUvuJzK1qM1dFcRhwsD8WMFx93Cy0O1luo 7a6siRS4VAEV5XiaC1C+fywatIY/RE6zGohItVsd1EPoqyCOusN/mG26nHCIZ9s7qxwR 7JfwkL1BF8wXqQ8jjQ1lawq8ie7YL+bCyALwsMOs/JCjKYMxlJtf+yp8Mct25GhnF7a2 1Z0cHPP1QU49aRloUVZUxNt1h2/LtRIxyGTJhVoU8grru3jw5J+6uAWHbr6R3Oim42F4 aAbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I4hM40l0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 38si5371193edq.246.2020.12.11.10.53.50; Fri, 11 Dec 2020 10:54:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I4hM40l0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394015AbgLKREO (ORCPT + 99 others); Fri, 11 Dec 2020 12:04:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:42110 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732975AbgLKRDW (ORCPT ); Fri, 11 Dec 2020 12:03:22 -0500 X-Gm-Message-State: AOAM53178bA+nCbFcIII+02iSM8zYFOh9cBF2vy7h/n1oiublmNnnqJ1 N0w6MQfQ1uweOfSkJ2FvB30Xq7t02ea1SautGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607706161; bh=y0iNFo76mlQYUJFryBQiNquPjuWXnGlz2WqZxVAwjgA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=I4hM40l0M6OrHcn/orBRf8m08bD+W2kUjwQDYMu2dfdLEI5iOFFPUSLVVTyk7i9l8 zi6unOryox1CdcqSQHhktMrMxrprrvFLvpkdIkZKWmO44Yk49kK856rd/aZyqPk6WV Ej1iZelReO+bLICKMFqermLcYO7n5eylnLFq6UQvrp5duCI4T4Yz5RWyJNop/+x8Rs tSnN/SFuJ/xQNQozCxzxsYgJpLgKh1e43SeLFKhXtWliuRJeEA6BXZdm1Ku9qTp6sp YSMgwg6VFuqW3VvnBeLRmxTEdozphBKjSN+ob5R7uRT8uNGMOpL88SzHDldObBhtA5 F34QuRR9E4EKQ== X-Received: by 2002:a17:906:ae43:: with SMTP id lf3mr10982133ejb.130.1607706159765; Fri, 11 Dec 2020 09:02:39 -0800 (PST) MIME-Version: 1.0 References: <20201211144236.3825-1-nadeem@cadence.com> <20201211144236.3825-2-nadeem@cadence.com> In-Reply-To: <20201211144236.3825-2-nadeem@cadence.com> From: Rob Herring Date: Fri, 11 Dec 2020 11:02:26 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 1/2] dt-bindings: pci: Retrain Link to work around Gen2 training defect. To: Nadeem Athani Cc: Tom Joseph , Lorenzo Pieralisi , Bjorn Helgaas , PCI , "linux-kernel@vger.kernel.org" , Kishon Vijay Abraham I , devicetree@vger.kernel.org, Milind Parab , Swapnil Kashinath Jakhade , pthombar@cadence.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 11, 2020 at 9:03 AM Nadeem Athani wrote: > > Cadence controller will not initiate autonomous speed change if strapped as > Gen2. The Retrain Link bit is set as quirk to enable this speed change. > Adding a quirk flag based on a new compatible string. > > Signed-off-by: Nadeem Athani > --- > Documentation/devicetree/bindings/pci/cdns,cdns-pcie-host.yaml | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/pci/cdns,cdns-pcie-host.yaml b/Documentation/devicetree/bindings/pci/cdns,cdns-pcie-host.yaml > index 293b8ec318bc..204d78f9efe3 100644 > --- a/Documentation/devicetree/bindings/pci/cdns,cdns-pcie-host.yaml > +++ b/Documentation/devicetree/bindings/pci/cdns,cdns-pcie-host.yaml > @@ -15,7 +15,9 @@ allOf: > > properties: > compatible: > - const: cdns,cdns-pcie-host > + enum: > + - cdns,cdns-pcie-host > + - cdns,cdns-pcie-host-quirk-retrain So, we'll just keep adding quirk strings on to the compatible? I don't think so. Compatible strings should map to a specific implementation/platform and quirks can then be implied from them. This is the only way we can implement quirks in the OS without firmware (DT) changes. Rob