From patchwork Tue Dec 31 11:35:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 182679 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp7471633ild; Tue, 31 Dec 2019 03:34:50 -0800 (PST) X-Google-Smtp-Source: APXvYqydzPz1BUpKkUQx3v9CgE2SRek0r+0JF4X9G1cRUG84fdy+iuTpfE6oH9Wj2PZ03h24H18n X-Received: by 2002:a05:6830:1f19:: with SMTP id u25mr81609243otg.170.1577792090089; Tue, 31 Dec 2019 03:34:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577792090; cv=none; d=google.com; s=arc-20160816; b=I69W0mTule8xEUnqxjd43ZJn6S51LXK0wm8EGKbysvsBrV5CLO7kUWqh6N1QIzYAP7 NLxB9wPs/EPwJyvn8Gz4RVB9/I4x6arL3lr39eO3WIBASVX3jI/1tRJ5Y8PGwg7ooPav kb5EdjuYtDQe9cy8y4YqwrJbr/Zv8iMjyFfsNo3iJKQzSWH9rwpCfRsMp1cjgl2d6gGD OgvbH9CGEfddYqUoHbzoREdw8+ljrRRTCNbS6wVdTD7/uLBcqd1t8Wstlvu5qnXF+mIL seTWmxq8zU6ElFviNYrW8652IWeqZvNQ20R4FmOivGBhkiEVNGidLXnJx6F90aLSoHVI ELlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=wyWNxMP+yMhE2vhg63JvjcfQkIOPbmIBjduJwe6FrHA=; b=Glh/0rDbx/WNYBGk+pElxKT3qA7zGQkpBRWDWlE7K9hpJPm/DnyQnPen7pt476NT6f /2B883cV1uXLpK7h33mA9Tt0WtAS6PoLytu8RmMy8+cHTBMODGRPW0YcPGFnGvhPzhpL gN9hl45xLjmlMiNf4sZ7m6qsT6eyHO0SpMqWq5pTk9uvTdx90VGgXEsLQKEQcBWzwPD6 HxdKaAqxhN5kzuNcIUytKs53IQQXS02P5u7gBEsvcDNRNs4+/ON4aJtO12auKKj0eir3 zqledNEQF2ssoRaDMIEQnw5qPvVggMDC/zSC3b5AQvaENwwLhWvt25lx2WknnHzJFSdJ 39zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=MHqSgTK5; 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 j9si14497779oii.195.2019.12.31.03.34.49; Tue, 31 Dec 2019 03:34:50 -0800 (PST) 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=MHqSgTK5; 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 S1727254AbfLaLes (ORCPT + 27 others); Tue, 31 Dec 2019 06:34:48 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:32842 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727121AbfLaLeq (ORCPT ); Tue, 31 Dec 2019 06:34:46 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id xBVBYHGs097830; Tue, 31 Dec 2019 05:34:17 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1577792057; bh=wyWNxMP+yMhE2vhg63JvjcfQkIOPbmIBjduJwe6FrHA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=MHqSgTK5pL83EbaxttUKDQWDjwyKXlVMYbglNHVZ0qkO9XVsmr4QHJFIjAK4Noimo 7wG375clbDJ/tHkNGuzmVBeoj470VECaxsoFDay3H6uhjOmstQheQqy37JV2xDjYsr 3+1Z52ijtA7UB9qHEGXy7IAnlWdHyAG8Vx1rrmxM= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xBVBYHQB091197 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 31 Dec 2019 05:34:17 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 31 Dec 2019 05:34:17 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Tue, 31 Dec 2019 05:34:17 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBVBXX38024759; Tue, 31 Dec 2019 05:34:11 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Lorenzo Pieralisi , Bjorn Helgaas , Andrew Murray , Tom Joseph , Rob Herring , Arnd Bergmann , Jingoo Han , Gustavo Pimentel , Shawn Lin , Heiko Stuebner CC: , , Jonathan Corbet , Greg Kroah-Hartman , , , , Subject: [PATCH 7/7] misc: pci_endpoint_test: Populate sriov_configure ops to configure SR-IOV device Date: Tue, 31 Dec 2019 17:05:34 +0530 Message-ID: <20191231113534.30405-8-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191231113534.30405-1-kishon@ti.com> References: <20191231113534.30405-1-kishon@ti.com> MIME-Version: 1.0 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 Populate sriov_configure ops with pci_sriov_configure_simple to configure SR-IOV device. Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/pci_endpoint_test.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/drivers/misc/pci_endpoint_test.c b/drivers/misc/pci_endpoint_test.c index b2458988939e..0f448c33f45c 100644 --- a/drivers/misc/pci_endpoint_test.c +++ b/drivers/misc/pci_endpoint_test.c @@ -840,6 +840,7 @@ static struct pci_driver pci_endpoint_test_driver = { .id_table = pci_endpoint_test_tbl, .probe = pci_endpoint_test_probe, .remove = pci_endpoint_test_remove, + .sriov_configure = pci_sriov_configure_simple, }; module_pci_driver(pci_endpoint_test_driver);