From patchwork Wed Oct 11 08:44:35 2017 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: 115522 Delivered-To: patch@linaro.org Received: by 10.80.163.170 with SMTP id s39csp389755edb; Wed, 11 Oct 2017 01:44:56 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDRT2AgbX6EcM+GWB3TEPPkhqIqZmy4jTzOHCr0Zq+2M3iEUep+rEMW6YDuuuGa4pgpWtl2 X-Received: by 10.98.157.156 with SMTP id a28mr9989884pfk.74.1507711496474; Wed, 11 Oct 2017 01:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507711496; cv=none; d=google.com; s=arc-20160816; b=M2GZuaYBK9dOVF1j+/rz766rYV/XvhnDsFyKIn0APb/osKeXgzHWEOkgkAgDDTTjoO 9YQ21o54/N7h/vWu98PB5OPyoEZ19XB+BgfopE8KNWxJwmJTSRcNbQtw5YVmLNxpuvvR WJ6sEZKxsPkAoMKG8w2tiz2HxNdyYLasR2MuOZNt4V7pEbQYmBmaZS5u5ZnZD7oDxmb2 tDuTVVe2RANyhoeH3rtouFu0R2gDjpuIU8TGnZTnu5UuaxFEolZpJ7vRSs8oYFyOA4Cf UmCfuk4yOyc6q5WrO/4b6f7vW2PS2K0Tcd4x2l9ACx8j+zyq+nbwVyjP1wkO9hG7lrZW lSXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature:arc-authentication-results; bh=SyN6S+36seEQ1dqWPMKMeIm540+XYyXH8SJcyruvD94=; b=ivNq3tinrdbzs2MrBeDmEHH+PGyDPqcOBKT42lLM2q5KDUZ6r3F2dG8mvMCGYgUYW1 F749lAB20+VXdUt3bFt2IOgRyK+s43JvDqb4+peQuxLfL9x0DUjKsgcpCyigb6z+HdhC qAxqtTZUXSTg8fhd+EgmmiuMNzTNCGrrIcR1rnr1l8NrRp+eSIyQP3AmnzpLgW3sRdzG tNidF41TJ3acoSRHjvYilxmswbcg43VqlAwz8CmfmJMY5Y2uxNzmd/KGjG4efhg/6Sgw 0JHXbgpO4tze4JMLG0SLZcmipmTjDs32SHXc282F1iiQBISEKEhsYMWhmU4zF00YW7F3 Ll7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oa1yt6Ax; 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 e17si9645420pgt.493.2017.10.11.01.44.56; Wed, 11 Oct 2017 01:44:56 -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=oa1yt6Ax; 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 S1757239AbdJKIox (ORCPT + 26 others); Wed, 11 Oct 2017 04:44:53 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:28480 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756569AbdJKIou (ORCPT ); Wed, 11 Oct 2017 04:44:50 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v9B8ikoE010080; Wed, 11 Oct 2017 03:44:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1507711486; bh=hta6yt8jS+hXssqXFZ/BY7LERbI6azmXoGx7NJrzveI=; h=From:To:CC:Subject:Date; b=oa1yt6Ax+3moMneW7noGbeIFly6xCkq1rWYaVdqNdxGrBnvZOf0bFZSafkNkKND2I EUIBfJAb4M9M2YSQzG4Z2kAJH4CoIAXkbAUlOOnk/ck4ZBa9a2wO9bVwIjAxMxn6bY UiFoH0kV6qCwRTNvPg9X6W0tqPACahLSUdQ78KlE= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v9B8ikC3005840; Wed, 11 Oct 2017 03:44:46 -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_256_CBC_SHA384_P256) id 15.1.845.34; Wed, 11 Oct 2017 03:44:45 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) 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.845.34 via Frontend Transport; Wed, 11 Oct 2017 03:44:45 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v9B8ih2p019232; Wed, 11 Oct 2017 03:44:43 -0500 From: Kishon Vijay Abraham I To: Arnd Bergmann , Greg Kroah-Hartman , Kishon Vijay Abraham I CC: , , , Subject: [PATCH 0/3] pci_endpoint_test: Fix module removal/insertion cycle Date: Wed, 11 Oct 2017 14:14:35 +0530 Message-ID: <20171011084438.8296-1-kishon@ti.com> X-Mailer: git-send-email 2.11.0 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 This series fixes module removal/insertion cycle of pci_endpoint_test. Without this series, when trying to modprobe pci_endpoint_test after rmmod pci_endpoint_test results in the following errors. pci-endpoint-test 0000:01:00.0: BAR 0: can't reserve [mem 0x20204600-0x202046ff] pci-endpoint-test 0000:01:00.0: Cannot obtain PCI resources pci-endpoint-test: probe of 0000:01:00.0 failed with error -16 Kishon Vijay Abraham I (3): misc: pci_endpoint_test: Fix failure path return values in probe misc: pci_endpoint_test: Fix pci_endpoint_test not releasing resources on remove misc: pci_endpoint_test: Fix BUG_ON error during pci_disable_msi drivers/misc/pci_endpoint_test.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) -- 2.11.0