From patchwork Mon Dec 30 12:33:15 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: 182609 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp6283229ild; Mon, 30 Dec 2019 04:31:49 -0800 (PST) X-Google-Smtp-Source: APXvYqy/wimTa1+hCo1DszY7n+U6z9ZtVw+8TGyGVdvFBciVgdsEByikz2NOtCAuUYwZnUmDVMmH X-Received: by 2002:a05:6830:1257:: with SMTP id s23mr74291089otp.241.1577709109779; Mon, 30 Dec 2019 04:31:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577709109; cv=none; d=google.com; s=arc-20160816; b=nzZkuIf5/4zFVpE68DK6BKMh2QFyRBh+n6M2ehO8L3h1PFRD7qSrwPIDkfA9KeWGny 7fzKq7LkcLWH/sRYzhGswcGI8v0SIF0ZUKA0asNBqktDDq8qPPEU8SETO2JA/LprNpst dmq39ijE3SKawNT0y34F43wLbdYZD0mgM7gsGjHwRTXRLnWXYAtsQZUjI7m8LT1VWEPU F1gHrb98C61KpmezguLcAEiM0T2Wp1XYLZ2bojIEkcXVkAA0+te3h3WCCThkM2NIm6LE Klk7uX7ZiR1c5u9UIL0uEqiWfjyW40ejRIiEfMeHcvUxC/3oNEHuSzXFE76nfeHDfGtB N9Uw== 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=NU/rxry6lKNRKG7KKBr3jvZ2rcYxkceQL6qF8JkV+fA=; b=kSubaZ5P5rTSRSacJMzVT7PU3YJnn8OdRfwiNap3Gog3qWT6S9OER79AcZzq75hpXU WXMjFq/lsB7HHqCvM06fGki0kwoeBO1eMBAv4y2jWd09D89vFYXMDoDdvLzDI4Ks91uF HfowM1S42aHL5ZAQzEoFAwoFoXD12HUEfBqu+ylNzw3zDKIYRUzNkbe4dE7SqkvpM/E8 u5m2lFFtBL21ypsk3RKUmjRNcbI5wPAPcra6lWPvMnh5L166tpkBn+kBTcpf/zyrhszR EH2b5KqJCxLbC1Vs2pgOoQi6539FOzX69+HjkZ3ehREKmlMhQ6PCT3qBOzzoqzxheOvp Yztw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=KT1NIGdT; 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 v76si21085570oif.207.2019.12.30.04.31.49; Mon, 30 Dec 2019 04:31:49 -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=KT1NIGdT; 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 S1727526AbfL3Mbs (ORCPT + 27 others); Mon, 30 Dec 2019 07:31:48 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:46088 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727496AbfL3Mbn (ORCPT ); Mon, 30 Dec 2019 07:31:43 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id xBUCVa09100332; Mon, 30 Dec 2019 06:31:36 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1577709096; bh=NU/rxry6lKNRKG7KKBr3jvZ2rcYxkceQL6qF8JkV+fA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=KT1NIGdTMEf6Xo2ouarRFsJQczg0WOfU3fBrANPpgQR9EwmSgUodDw5kgt8eQsB4i VE5NCUKOOoGCPsCbUOUsCo3Q2n/Ob3958dM2ZfEVKc5629zwWwXZmXgtUyF0XUBdtf erf5xOkEkOcKIY67bw3kt7VvZkiQxrPA5E6/mjmE= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xBUCVa7T095292 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 30 Dec 2019 06:31:36 -0600 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Mon, 30 Dec 2019 06:31:35 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) 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; Mon, 30 Dec 2019 06:31:35 -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 xBUCVEhT002491; Mon, 30 Dec 2019 06:31:33 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Lorenzo Pieralisi , Arnd Bergmann CC: Greg Kroah-Hartman , Bjorn Helgaas , , Subject: [PATCH 7/7] misc: pci_endpoint_test: Enable legacy interrupt Date: Mon, 30 Dec 2019 18:03:15 +0530 Message-ID: <20191230123315.31037-8-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191230123315.31037-1-kishon@ti.com> References: <20191230123315.31037-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 PCI core does not enable legacy interrupt if it finds MSI or MSIX interrupt. Explicitly enable legacy interrupt here in order to perform legacy interrupt tests. 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 dae450c1a653..b2458988939e 100644 --- a/drivers/misc/pci_endpoint_test.c +++ b/drivers/misc/pci_endpoint_test.c @@ -701,6 +701,7 @@ static int pci_endpoint_test_probe(struct pci_dev *pdev, } pci_set_master(pdev); + pci_intx(pdev, true); if (!(is_am654_pci_dev(pdev) || is_j721e_pci_dev(pdev))) { if (!pci_endpoint_test_alloc_irq_vectors(test, irq_type))