Received: by 10.192.165.148 with SMTP id m20csp4038394imm; Mon, 30 Apr 2018 10:34:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp+dVZRq0WDV2wTGt2IilsXKg8DDJb3AAQp8BnsX4OKAqqTT8NKzJMC0xeeHBx7GJzYgsoV X-Received: by 2002:a65:4acc:: with SMTP id c12-v6mr3686329pgu.329.1525109677526; Mon, 30 Apr 2018 10:34:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525109677; cv=none; d=google.com; s=arc-20160816; b=QvDYae3Jh+BytSaoc5p6B+JYQgh5BrizUghYC22HAxAH4V22+HBxfB3p8jYyWHZWRN MJ+YolXTjB3d47gZzcTeCbFLEWHvZAPaJA65gGqST0dYW4Rv8zq7b0H+5D9zh8meV5Zm Wmraeb5are/bFGg0JgGh8EyLOgC7ot91ZV9na3PM7Qen3O62E0fJwuRD8MB9oo6gTZuR JJwyH6CXNhL5a5OMuJuwgnH9QX8HXGdVMILXe14glNhNbfI/5X+XQZEFD2qpa01a7qJs fKAS6IJVJU1l2PK8VSkyErKSKvyTOPnhBy7Mzo5xtHvL/Y7y3y8/PaT2JJ2gUF36HVzI vvFA== 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=05RbyHLDcVsw9WtzhYdRPvb3OF0MIV9M6nzWFqMpIdo=; b=wbo2LZbujVNXd5cfLUg6G8Xztv/Pw8yM023LPl4Pwr4/T5R5Z0+iq2iDu11C8U+C6p 2vUOpk5Ro9OEjHiK675pTKCrBmFMA/fiSi3zV/fSwnD8auSrzg2sFA7zFiWnAfFw4XkN 6T2Ve5Qbln2YEDx9/cx9ONJz1WrNSQ1YYrHpVad6oFh9RU7b3XOhsyaAS6t+1PGiiHO7 vWAWUJOk+VrfzE5+3W8Erm6BsoQZ1EMx28ReBdGhVhOaQD6olQ/l9zCFyq8M4k3HI+0V Eu83FX7lVYWjgGzk+BpbOMcPylOslyFHzWTAOMGY8lKco4gdfzbWgOrNfcuJmN1UFMJu VWuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=OmRYhscb; 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 o1-v6si7442550plk.577.2018.04.30.10.33.53; Mon, 30 Apr 2018 10:34:37 -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=OmRYhscb; 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 S1754130AbeD3Rd3 (ORCPT + 99 others); Mon, 30 Apr 2018 13:33:29 -0400 Received: from smtprelay.synopsys.com ([198.182.37.59]:52431 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753425AbeD3Rd0 (ORCPT ); Mon, 30 Apr 2018 13:33:26 -0400 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 93E691E03F4; Mon, 30 Apr 2018 19:33:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1525109604; bh=L/BnbQI4lxtAtvv3UIIIgwsXArQo78tQdjMJ+g2Tpkg=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=OmRYhscb0Y0wwg37eLMCHoynrYPjSk5eyz+9xJH6KcboWy55k2X95EgTQhiHHqC+I IQgnDu+8iAPdfEq45YogSukGWa4HazXVcVQ83qI4zkSz4bxA0Jo0yyWyBmKMYSEZkR 6GUcGMfw88hOgSw9whT6YVIJpdZfgCTIrvNZheB99At2MZaxCFhe5Ld4mYkA2ijyua kk4fyvcIpINBjpuhC41bX6lsk3Npdsm5oCKbe42J7wfsmXR3fhb0q5+ZQ84eH5MbF6 G/rtRfnrfWmCQxvrMx3OCRkf/1EyX/BHGjkgVd5TL1/QDI3gXaf9gJ8iChbnELCSD0 FG3BTrr89hDcw== Received: from pt02.synopsys.com (pt02.internal.synopsys.com [10.107.23.240]) by mailhost.synopsys.com (Postfix) with ESMTP id 403B75F97; Mon, 30 Apr 2018 10:33:22 -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 92BBF3D5B8; Mon, 30 Apr 2018 18:33:21 +0100 (WEST) Subject: Re: [PATCH v7 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: <20180426165605.GA6370@e107981-ln.cambridge.arm.com> From: Gustavo Pimentel Message-ID: Date: Mon, 30 Apr 2018 18:32:07 +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: <20180426165605.GA6370@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 On 26/04/2018 17:56, Lorenzo Pieralisi wrote: > On Tue, Apr 24, 2018 at 02:44:40PM +0100, Gustavo Pimentel wrote: >> Adds a seconds entry on the pci_epf_test_ids structure that disables the > > "Add a second entry to..." > >> linkup_notifier parameter on driver for the designware EP. >> >> This allows designware EPs that doesn't have linkup notification signal >> to work with pcitest. >> >> Updates the binding documentation accordingly. > > Valid for all the series: use imperative sentences. > > eg: > > "Update the binding documentation accordingly". > > not > > "Updates the binding documentation accordingly". > Ok, I will do an overall check to fix the entries. >> 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. >> >> 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. > > The link between the "name" and the device created is quite obscure and > reading pci-test-howto.txt certainly does not clarify it. I will add more information about it. > > In pci-test-howto.txt an explanation should be added to the configs > device creation paragraph to clarify it. That's true, it should exist some explanation of that. To be honest I didn't remember of the pci-test-howto.txt file existence. > >> 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, >> + }, >> {}, > > Should not this be a property derived from the controller compatible > property instead of the test device name written in configfs ? > > I think I am missing something in the whole scheme of things, please > clarify. This type of configuration / configuration was suggested by Kishon. I can only assume that it would not be possible (or no one thought of it) to correlate the compatible string of the controller to select the configuration, perhaps Kishon could give his opinion on the feasibility of this and even to provide some example of it. :) If it is possible, it will be quite straightforward. > > Thanks, > Lorenzo >