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: 824296 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="oa1yt6Ax"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yBnbp6vH5z9t3H for ; Wed, 11 Oct 2017 19:44:54 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757044AbdJKIow (ORCPT ); Wed, 11 Oct 2017 04:44:52 -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-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@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(-)