Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3153817pxu; Mon, 14 Dec 2020 23:15:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJzljjx9HiN5oLWAjvQglYTrs29WhUlSlFQtnxBLcU0gemc2igKfYjrwS0/nEj8djHrSjLeW X-Received: by 2002:a17:906:3704:: with SMTP id d4mr6067337ejc.338.1608016523726; Mon, 14 Dec 2020 23:15:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608016523; cv=none; d=google.com; s=arc-20160816; b=SP/WH5bbVta9ufwwFfT/dtoFvSh7Ph2ExM5t9dr+XozNgnDn2EpsfXGlGjmOCF7qPH QBpMz3N0IMdfQKrdSgP9YWWSopJwXO8ZU4O1EroBq+rUGHSIH9wkbrKkDI3pvMXMUYAW 3Iu6q3K0Ou/oJU6jirmeTQa4vTU3bBvsjtLoZzleYtG+RZ2W8x3TuCxYk1joCFRsMyK8 B2vxgHME+YbjmMUoMSnvP9tNzwnCbJ17XuqMhMrNaKbROy2uvIOkc89+hMRMb4hk21Md U+6ln11OG8qT3E3Y0t4Fpl1BalXLZ8NdOhALrnE3vgjOePpHyIe207B1Ahl274xP5vEJ I1vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=fNRq+gOfrdMwuLy2nUKc+a0umMFiha80ZqqipUQ7GjI=; b=W7ZD9gKigKnLxYU21UjT3wenLqnOorXii6C11K/PBjJQ8D91ol51Ran3NUozrjcCLK 19pW8kDSLwiU1H91EIJOh1eCOMiL6vySbun8YIz9X816MyBP9i7lx2yCe9SCkQAl78Iu MZCqvWytbAZ2GsfMMik4ADLCKzdaTTb0w3hKM8tvqor3BdA60A/P/dMdXW2xIPxwpy5s 1kGEBvSiP4S3fqbGjLA6hyTTsCDIcHMTE4uoluHpg1h5xC/u5xomQexEYXtGu/0Tfjaw GgWskLDZC30z5ApvpPXYqnxQVhBjYceIx4BM/IyM/MAraXaoTE19NzMQ55V4A++Y+Lrx KT1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nIfK4Umt; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o11si414709ejg.118.2020.12.14.23.14.59; Mon, 14 Dec 2020 23:15:23 -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=@ti.com header.s=ti-com-17Q1 header.b=nIfK4Umt; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726249AbgLOHKv (ORCPT + 99 others); Tue, 15 Dec 2020 02:10:51 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:51360 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725975AbgLOHKv (ORCPT ); Tue, 15 Dec 2020 02:10:51 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0BF799Zu047587; Tue, 15 Dec 2020 01:09:09 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1608016149; bh=fNRq+gOfrdMwuLy2nUKc+a0umMFiha80ZqqipUQ7GjI=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=nIfK4UmtJX+4YT+uFZjIfdGIROvpQMEUPq69q+VnzUUNKEv6l1ZqiFK+mYyHP+B71 oKzNXVzg6crDJV+KpHJwRsR+chryLG6CDGMfKQwzO8xwQXpyc3Wck+2s483ZUcP+Ap jhRRefqu1yf5pLoXhzIovUwX6KB1ZJNJhT5UaUQc= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0BF799k0063765 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 15 Dec 2020 01:09:09 -0600 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 15 Dec 2020 01:09:08 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Tue, 15 Dec 2020 01:09:08 -0600 Received: from [10.250.235.36] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0BF794NZ109620; Tue, 15 Dec 2020 01:09:05 -0600 Subject: Re: [PATCH v4 1/2] dt-bindings: pci: Retrain Link to work around Gen2 training defect. To: Rob Herring CC: Athani Nadeem Ladkhan , Tom Joseph , Lorenzo Pieralisi , Bjorn Helgaas , PCI , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , Milind Parab , Swapnil Kashinath Jakhade , Parshuram Raju Thombare References: <20201211144236.3825-1-nadeem@cadence.com> <20201211144236.3825-2-nadeem@cadence.com> <912c1efa-6c25-9e5d-5094-6c9dd8e3755d@ti.com> From: Kishon Vijay Abraham I Message-ID: <95f35432-3360-c855-9f87-cec4e3f57282@ti.com> Date: Tue, 15 Dec 2020 12:38:58 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 14/12/20 8:35 pm, Rob Herring wrote: > On Sun, Dec 13, 2020 at 10:21 PM Kishon Vijay Abraham I wrote: >> >> Hi Nadeem, >> >> On 12/12/20 12:37 pm, Athani Nadeem Ladkhan wrote: >>> Hi Rob / Kishon, >>> >>>> -----Original Message----- >>>> From: Rob Herring >>>> Sent: Friday, December 11, 2020 10:32 PM >>>> To: Athani Nadeem Ladkhan >>>> 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 >>>> ; Parshuram Raju Thombare >>>> >>>> Subject: Re: [PATCH v4 1/2] dt-bindings: pci: Retrain Link to work around >>>> Gen2 training defect. >>>> >>>> EXTERNAL MAIL >>>> >>>> >>>> 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. >>> Ok, I will change the compatible string to " ti,j721e-pcie-host" in place of " cdns,cdns-pcie-host-quirk-retrain" . >>> @Kishon Vijay Abraham I: Is this fine? Or will you suggest an appropriate name? >> >> IMHO it should be something like "cdns,cdns-pcie-host-vX", since the >> quirk itself is not specific to TI platform rather Cadence IP version. > > That's fine if Cadence has a need for it, but for TI platforms use the > TI compatible string. ECOs on version X IP without changing X is not > uncommon. Okay. I re-worked the patch to be applicable only to TI's J721E SoC http://lore.kernel.org/r/20201215070009.27937-1-kishon@ti.com Thank You, Kishon