Received: by 10.192.165.148 with SMTP id m20csp4679956imm; Tue, 24 Apr 2018 06:49:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx49TL3MW8gEsGpgRT41Jmm/wqNklDg6jZfB4ZNJ8zv8nx0RbZVxSPfsGGqDYhbcpSpmzZMrX X-Received: by 10.98.67.217 with SMTP id l86mr24178348pfi.40.1524577753087; Tue, 24 Apr 2018 06:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524577753; cv=none; d=google.com; s=arc-20160816; b=O/AO7HvEVY1fz83fpCx7QNsh8gcdWDTrvLzep0NNFDeTrZCfV4OxL+ASm8kEbfVh3K Lsfccj1Kp42VWabStV+0TSbZqzIzWUSBkvfmu4LKfpARAUf35J1epsVGO9+JFOMkWdGX HJUDfPZlyQ9r7UK7wMqCkPpUgwn4QnPS39tStm0+jivtMgmP6HfojvLJVS0Rg+pc16uj hjE/8IXkkvjigjw9vMhPqDIDxlbxuNNcYxcm05I4uRqqF5TvNpI9JBz2Kdy/BF4PnzRh XmqWDFvb90GwnC+Opc6iFtoOcx6Ud5m0c+4E3hW5s9wOu92MEEwJs3k9EDFqxWYQTTfa PHNg== 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:dkim-signature :arc-authentication-results; bh=mLB7TTc35M07tfPE4UtGo5PKwr9rcaXIzUvJJvrHuBE=; b=LdJHlY3WGFBwrXnL03reO6aAxXLkvZIxvj9f+nrzw0MP1aU8iM8y6u29ROT/lHTCfo /WD3FUyhSdiWl80CbKbU3MkZhJiVoAb229cWOlwI9LoYdZiQ9ChZ+/5zxlZAWC8P1ieq U5srAV8wsPW0NnKqEOSUNrtec56VpvqOI3ngDbGdTgBHZ5U1JfHNlnBnWsVuQIzkE5YN rNtiA724eT80trZj8BLeoMhoRDDVbM2p/g+7dm2E6PvlaiUSUxbjYdXieeSBPoKZ+rwh e3IfTdHZfKI10aDAcPb0xdymerUWUMFJfl+ZBXBJLacCMuWQlG78SGiSv9zRwkXwMyC+ aG9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=HkSJqdIB; 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 y11si11772663pgq.435.2018.04.24.06.48.58; Tue, 24 Apr 2018 06:49:13 -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=HkSJqdIB; 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 S1758158AbeDXNq5 (ORCPT + 99 others); Tue, 24 Apr 2018 09:46:57 -0400 Received: from smtprelay.synopsys.com ([198.182.37.59]:49536 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934530AbeDXNpA (ORCPT ); Tue, 24 Apr 2018 09:45:00 -0400 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id 683B21E14A3; Tue, 24 Apr 2018 15:44:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1524577498; bh=TUy259KD6dy+epl60O0qiBuPuzqP3TAtaXfsx2eaOUY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=HkSJqdIBt/anKFHtlt3zQFwSjhop6P3r0h2FkdNG+XQDV6Zae3SBIk/VhfH2U6x4q x/8tYbiQkSIjcBd4dhZUBxTgSbKrFdP0tKan2oAHl6Cg9wKa+6IHsfoeqShBv42JVi GBNlQglz+VWVgeQnYEkyx/2XHQtgngCgVR/GnuzJpgOaMEAxRzeMDm1ZwRadoLPxmM SusaNfAwNeM8HfWA5PpMkLCiTJF0vT8AOSUVlKcaqorvAbw+JJjfGwZqyT2zcal6xp 78PFAbUBku0uHqtO+Q7sQPvBxqYRwq+LCpegOZPVFeqBZK4/kNWgHP1US3kHx0JXgN psFYs3N62xSfA== Received: from pt02.synopsys.com (pt02.internal.synopsys.com [10.107.23.240]) by mailhost.synopsys.com (Postfix) with ESMTP id 7BA203F2A; Tue, 24 Apr 2018 06:44:57 -0700 (PDT) Received: from UbuntuMate-64Bits.internal.synopsys.com (gustavo-e7480.internal.synopsys.com [10.107.25.102]) by pt02.synopsys.com (Postfix) with ESMTP id D1B5588C5; Tue, 24 Apr 2018 14:44:56 +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 v7 3/9] PCI: endpoint: functions/pci-epf-test: Add second entry Date: Tue, 24 Apr 2018 14:44:40 +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 for the designware EP. This allows designware EPs that doesn't have linkup notification signal to work with pcitest. Updates 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. 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, + }, {}, }; -- 2.7.4