Received: by 10.192.165.156 with SMTP id m28csp1613876imm; Tue, 17 Apr 2018 02:21:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/j3qCnlcEsDrlKpbF4Gl2xVidFaAa+j78Ze1NEcs1vo+Nbnmf/BND5yqQNTceRRkiqbwSx X-Received: by 10.99.143.3 with SMTP id n3mr1166107pgd.136.1523956878080; Tue, 17 Apr 2018 02:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523956878; cv=none; d=google.com; s=arc-20160816; b=Yrp0uMsaS9NLDvZ3D19RMT8nldFqBkbvMX5capnvfHTNYdqmZLQkQmNukZ9xPOC4Lq I877QLnd2sOOo9UkhZWOhbdOzERQU4aCCDaSRLyFQw+ZX2mh+mMxq3IYVG75xA6aZttp uk08tVeshuYW8qxTlK70rorWjq0sdBr8Xn/aeBQ6Lh6zTver7RtEJAx2kMdbQp7eEBlA PF9Z02WDHtxcjmOatJkrDxJzttUgQCuBD3KKPtCZu+K/HVYbMIZZ5hakQhEvXVcKxQ7n OoXucf6yON5xxt4YkURUeE5dicncusxngiGmZkg7L0etnCoUbVZvvqNrCZ5tYLf0DGlh YOgw== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:arc-authentication-results; bh=gCJF8tz+3k/qgWYgYpyyv9OATy1TFKDTJmQRp1vd048=; b=yI1WMhldQ2t6NSZT4vSFoacHiHxiKk61PkgXw+dJAzMzHeWkw/IcDUGdaJkW/JdlPh 6dmzjpGQkIiB+2tVTnZvH9CGzyR9akPHe+Fxl1rLTLTbT8yDJFGjy6D/KS3F63J82Iio h5TqwaICRmOxLKE76vqrzMGhWp6ne7m9y15jTfmHZpBpOQlMkA1bKidxzbhakdJuS/2K ou0YL1XdiRePCPTf0o3wijz8v7Da8/bK9DQo0vYG+d0lg9Kzv+6Qy4CWQhCKyTiy8XVY 2Er0tNHshDH3rcFPt0QqYXbMwXbDldHW9kIk9OUqfJccpSVVickgI240X/kXYSV1I49C 891g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NML8roQE; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si12748946pfh.354.2018.04.17.02.21.04; Tue, 17 Apr 2018 02:21:18 -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=@ti.com header.s=ti-com-17Q1 header.b=NML8roQE; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752659AbeDQJTs (ORCPT + 99 others); Tue, 17 Apr 2018 05:19:48 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:14255 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752048AbeDQJTq (ORCPT ); Tue, 17 Apr 2018 05:19:46 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w3H9Jf6R019107; Tue, 17 Apr 2018 04:19:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1523956781; bh=e3sqNVwAXcC4qoTnA7O8Rj8d6ntHWJ6P6K8WkwhGLws=; h=Subject:To:References:CC:From:Date:In-Reply-To; b=NML8roQEZ//z5VUAGEeGY+uBHjMuU/0nc3AXDKQsol2NE14yLBjMNzwB2kKy2DKRD FQCY0Ctm6n3PZ9iNOk6FjbqGdLd6EzwQDgqdZX8EZlnBU26gv4sgL9lJ9eDzvVQeaz zTq/SpRvqb4VMdzKETPCkk2u6yo6waOhNuZO9za8= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3H9Jfxr025590; Tue, 17 Apr 2018 04:19:41 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Tue, 17 Apr 2018 04:19:41 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Tue, 17 Apr 2018 04:19:40 -0500 Received: from [172.24.190.233] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3H9Jb0s008254; Tue, 17 Apr 2018 04:19:38 -0500 Subject: Re: [PATCH v4 03/10] PCI: endpoint: functions/pci-epf-test: Add second entry To: Gustavo Pimentel , , , , , , References: CC: , , From: Kishon Vijay Abraham I Message-ID: <56bdafe6-1725-6e55-68a4-38667f114e5c@ti.com> Date: Tue, 17 Apr 2018 14:49:37 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Monday 16 April 2018 08:07 PM, Gustavo Pimentel wrote: > Adds a seconds entry on the pci_epf_test_ids structure that disables the > linkup_notifier parameter on driver. > > This allows EPs that doesn't have linkup notification signal to work > with pcitest. > > Signed-off-by: Gustavo Pimentel > --- > 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. > > drivers/pci/endpoint/functions/pci-epf-test.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/pci/endpoint/functions/pci-epf-test.c b/drivers/pci/endpoint/functions/pci-epf-test.c > index 7cef851..63dca44 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_cfg2 = { > + .linkup_notifier = false > +}; > + > static const struct pci_epf_device_id pci_epf_test_ids[] = { > { > .name = "pci_epf_test", > }, > + { > + .name = "pci_epf_test_cfg2", I'd prefer this to be named pci_epf_test_designware so that configfs entry is self explanatory. Thanks Kishon