Received: by 10.192.165.148 with SMTP id m20csp3983931imm; Mon, 30 Apr 2018 09:39:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqBPVkMFOqQZNiAeEgzlhmlKx4cvagAs6t+cprAcM0uBFPK4HFkQn9offcjNr4j13pG3F3+ X-Received: by 2002:a17:902:bd8e:: with SMTP id q14-v6mr13339086pls.322.1525106386160; Mon, 30 Apr 2018 09:39:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525106386; cv=none; d=google.com; s=arc-20160816; b=szk79ZbyuF1+KPkocLzsOCBfJqBPQtoENBB4eiBHwRTkCarVkFunWsk6Y9rBx9vbz8 t4jEjFbQTAF5CD9FnkTLYDHuRkhOo1uhzPUXa0pznzQRdBmzWaYiFtzgfDgRfeWYXrBk e+LH593vz/M06PJSH7Qa/GJ+wkL8v8b8B4nktnMEH6GIYor567L6F5G4iTECos2Dvjr8 Ex1QrLBCiAnMV7oXs3D96f2ptzDgpZlBMCFnv/0FllpWnRYAICF8lUhCucaoIH3wCX8P hFD7KE1OJdlmH60RmgEWBu7GFf5aD6sGv5soAm19MNj9exhxcNHKIP+B3hW+f35P5SdU cz7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=nOb+FJ/OshAIzCs7M4HZzNwhj/SO+/prIJJ3vvSRZKo=; b=t4/f6nR6V8RPQ8VSev32RLFG3j2CnuiNALW+SF0l0Ivpfop7lvoUZOvuy9McY4714Y r/Sz4z0gsbtokqe/tNzDmFflqfjmNtnHJW9O86e+P9V7gsEIv5HrdJb2TP62U8yNdX2L re4+VSIjg5E830hwzCCoNgvoeup9h2lGYlpy5+5hBv5h8SjTZywRx22NVTDvycAIKMt/ 84GltJd6rmJt1/bDC+Sk6BRJAh9IOm3CWQTopyc/kVVnEicF6BaT1lBvSjw5+6oaf5Cd mOdy+SUExtG7HiwQhpQ48Kd+Of1yyvp1z9p9pE/GmVSmsWrg0wJAPRvBjfCBjpvi/8Tt 2EpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=M3VX8tx7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b68si7779176pfg.94.2018.04.30.09.39.31; Mon, 30 Apr 2018 09:39:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=M3VX8tx7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755069AbeD3QiC (ORCPT + 99 others); Mon, 30 Apr 2018 12:38:02 -0400 Received: from smtprelay6.synopsys.com ([198.182.37.59]:52251 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755056AbeD3QiA (ORCPT ); Mon, 30 Apr 2018 12:38:00 -0400 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id 009D91E0179; Mon, 30 Apr 2018 18:37:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1525106279; bh=U8acKRVBi1tMmyVoqpJVeRkr1HRXZ+xJT1RXxQ3EhXw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=M3VX8tx7lZuxs7fpTr4t4y09uPeWq1ZZTma7uqVaPxaRi8nQbBra21rddHIO6Y+rZ 86Cwk6oHB/u4r/wWyUGq+XO9z7kusLN5pLJphLu3nDBBdS2zb9KZbK+jHuCms8298q fBUXOsoFdVSJgty4X1NUH7VCsHo/TaJw738Qso+/HuLsaD76K19dCtG/TwNnbciAJx pgu4u/GKAxtYN7rs3dO1z1eQ2WAS1tt6aHH94CD1wuej4nEXZrde7qd+Q0REWI0Gvi YTQpQ2SJLiPzb72Yhtik+ulnO/D1dSkvFv/P0gzGzglNNExK8IgNMZ3L6f3qO9aeuh j8ZVmFGMzDjfw== Received: from pt02.synopsys.com (pt02.synopsys.com [10.107.23.240]) by mailhost.synopsys.com (Postfix) with ESMTP id D0F4233DE; Mon, 30 Apr 2018 09:37:57 -0700 (PDT) Received: from [127.0.0.1] (gustavo-e7480.internal.synopsys.com [10.107.25.102]) by pt02.synopsys.com (Postfix) with ESMTP id 0720E3D1A2; Mon, 30 Apr 2018 17:37:57 +0100 (WEST) Subject: Re: [PATCH v8 3/9] PCI: endpoint: functions/pci-epf-test: Add second entry To: Lorenzo Pieralisi Cc: "bhelgaas@google.com" , "Joao.Pinto@synopsys.com" , "jingoohan1@gmail.com" , "kishon@ti.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" References: <20180430142213.GC32033@e107981-ln.cambridge.arm.com> From: Gustavo Pimentel Message-ID: <425dfb4f-b249-8496-aa9f-d2a48d0b64b9@synopsys.com> Date: Mon, 30 Apr 2018 17:36:42 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180430142213.GC32033@e107981-ln.cambridge.arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lorenzo, On 30/04/2018 15:22, Lorenzo Pieralisi wrote: > On Fri, Apr 27, 2018 at 12:59:58PM +0100, Gustavo Pimentel wrote: >> Add a seconds entry on the pci_epf_test_ids structure that disables the > > "Add a second entry..." Fixed, sorry for letting it slip... > >> linkup_notifier parameter on driver for the DesignWare EP. >> >> Allow DesignWare EPs that doesn't have linkup notification signal to work >> with pcitest. >> >> Update the binding documentation accordingly. >> >> Signed-off-by: Gustavo Pimentel >> Acked-by: Kishon Vijay Abraham I >> --- >> Change v2->v3: >> - Added second entry in pci_epf_test_ids structure. >> - Remove test_reg_bar field assignment on second entry. >> Changes v3->v4: >> - Nothing changed, just to follow the patch set version. >> Changes v4->v5: >> - Changed pci_epf_test_cfg2 to pci_epf_test_designware. >> Changes v5->v6: >> - Changed name field from pci_epf_test_designware to pci_epf_test_dw. >> Changes v6->v7: >> - Changed variable name from data_cfg2 to data_linkup_notifier_disabled. >> Changes v7->v8: >> - Patch description rework for an imperative verbal mode. >> >> Documentation/PCI/endpoint/function/binding/pci-test.txt | 2 ++ >> drivers/pci/endpoint/functions/pci-epf-test.c | 8 ++++++++ >> 2 files changed, 10 insertions(+) >> >> diff --git a/Documentation/PCI/endpoint/function/binding/pci-test.txt b/Documentation/PCI/endpoint/function/binding/pci-test.txt >> index 3b68b95..dc39f47 100644 >> --- a/Documentation/PCI/endpoint/function/binding/pci-test.txt >> +++ b/Documentation/PCI/endpoint/function/binding/pci-test.txt >> @@ -1,6 +1,8 @@ >> PCI TEST ENDPOINT FUNCTION >> >> name: Should be "pci_epf_test" to bind to the pci_epf_test driver. >> +name: Should be "pci_epf_test_dw" to bind to the pci_epf_test driver >> + with a custom configuration for the designware EP. >> >> Configurable Fields: >> vendorid : should be 0x104c >> diff --git a/drivers/pci/endpoint/functions/pci-epf-test.c b/drivers/pci/endpoint/functions/pci-epf-test.c >> index 7cef851..4ab463b 100644 >> --- a/drivers/pci/endpoint/functions/pci-epf-test.c >> +++ b/drivers/pci/endpoint/functions/pci-epf-test.c >> @@ -459,10 +459,18 @@ static int pci_epf_test_bind(struct pci_epf *epf) >> return 0; >> } >> >> +static const struct pci_epf_test_data data_linkup_notifier_disabled = { >> + .linkup_notifier = false >> +}; >> + >> static const struct pci_epf_device_id pci_epf_test_ids[] = { >> { >> .name = "pci_epf_test", >> }, >> + { >> + .name = "pci_epf_test_dw", >> + .driver_data = (kernel_ulong_t)&data_linkup_notifier_disabled, > > You have not answered my question on this though: > > https://urldefense.proofpoint.com/v2/url?u=https-3A__marc.info_-3Fl-3Dlinux-2Dpci-26m-3D152476180723047-26w-3D2&d=DwIBAg&c=DPL6_X_6JkXFx7AXWqB0tg&r=bkWxpLoW-f-E3EdiDCCa0_h0PicsViasSlvIpzZvPxs&m=KsCYNT_jNohKd03qgHN_Q73bRDsN78isEgeuYF8SypU&s=N1gpsLtS4or3TlSamRxP49rYAJv6gjEq7apuhN7paLs&e= I did not see those questions, sorry. I will respond on top of that email. Regards, Gustavo > >> + }, >> {}, >> }; >> >> -- >> 2.7.4 >> >> >