Received: by 10.192.165.156 with SMTP id m28csp721671imm; Mon, 16 Apr 2018 07:42:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx48eRf50I84QhJJYAHWOf81ESNRdUigMBOaQg04kqxe7d6j3x4Ffrsfe4+fcTO5sh7tChzOw X-Received: by 10.99.185.8 with SMTP id z8mr6375540pge.436.1523889734956; Mon, 16 Apr 2018 07:42:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523889734; cv=none; d=google.com; s=arc-20160816; b=zN0fsswfPs4bU5i63ae2SMfwfcLlVdvIhr0ad6VbLAPJHysgfIHxY2JJmNsxYaPUSS 9MgROzaBadIuppmQE/SXXqT/s8qQPPaePcajblO4Mqh2AeirBMJ3komTh1Mucp+WCKzq vdmkNRBXiaJG29uDRKb/KKwXm4WXjDlhPS/MTq6t5W32WOpApf7Cu9nFqL2d/2926+lk 0rExMEX1qRzHIF/U3SrgWmDCEqEwYSQcS0fxldfo6NBf/VE/A93PJzuzKKeCvFnNKSJO d5Jh2pMy7tWSi+bit2q0Xy3SLriR8OEMSd+xI73sdEjtLnR/vmpb6PLoh+0k6iPJqVEJ rEIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=C1Ztgl/ir5EB6P+oiNDEGqdI/kwTYTdl8Rrw4X5qZl0=; b=fFUVC+fHDaL+SpZJaM9siXpgvGXbGOL0A+54UdGFk3RXqNga3qhX718mJND1DSOWgd f4wKrEopVtBNl3zgPLtmgpo2fSpcDFnjQUnYNiL+V8mm2vms5KYIesIL5g2BTT4z9ERr JmQWEE9BA1e20TzpERhaipOZODsgFG5a0D/pNrz8Yj/NsmjBVlJVX48KIMWj1tP5GnJB Dg794II2w6VdvFcO71/2O5njyA5n5Fc4WsryYA/qb99LXyX5D7hhRC/XURWmFo19E8od Kixr+IAsExFmolp+FX1rpcpNbaSff3ju3YfHfW45i+D0YE/jWgKdjJ7VL28x+eYC1+TI IcxA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 l3si9884513pgs.315.2018.04.16.07.42.00; Mon, 16 Apr 2018 07:42:14 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752914AbeDPOkN (ORCPT + 99 others); Mon, 16 Apr 2018 10:40:13 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:38311 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751146AbeDPOiJ (ORCPT ); Mon, 16 Apr 2018 10:38:09 -0400 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 9403624E1EE9; Mon, 16 Apr 2018 07:38:08 -0700 (PDT) Received: from pt02.synopsys.com (pt02.synopsys.com [10.107.23.240]) by mailhost.synopsys.com (Postfix) with ESMTP id 52CDF53E6; Mon, 16 Apr 2018 07:38:08 -0700 (PDT) Received: from UbuntuMate-64Bits.internal.synopsys.com (gustavo-e7480.internal.synopsys.com [10.107.19.134]) by pt02.synopsys.com (Postfix) with ESMTP id A4A1B8B70; Mon, 16 Apr 2018 15:38:07 +0100 (WEST) From: Gustavo Pimentel To: bhelgaas@google.com, lorenzo.pieralisi@arm.com, Joao.Pinto@synopsys.com, jingoohan1@gmail.com, kishon@ti.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, gustavo.pimentel@synopsys.com Subject: [PATCH v4 03/10] PCI: endpoint: functions/pci-epf-test: Add second entry Date: Mon, 16 Apr 2018 15:37:51 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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", + .driver_data = (kernel_ulong_t)&data_cfg2, + }, {}, }; -- 2.7.4