From patchwork Sun Dec 6 15:41:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Marsh X-Patchwork-Id: 7778971 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C94BA9F387 for ; Sun, 6 Dec 2015 15:42:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E9FEF203E1 for ; Sun, 6 Dec 2015 15:42:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D8ABC203DB for ; Sun, 6 Dec 2015 15:42:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753170AbbLFPlq (ORCPT ); Sun, 6 Dec 2015 10:41:46 -0500 Received: from ipmail06.adl6.internode.on.net ([150.101.137.145]:17659 "EHLO ipmail06.adl6.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752215AbbLFPlp (ORCPT ); Sun, 6 Dec 2015 10:41:45 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BqBwDgVmRWPK+r0nZegmlRiCC0UYQWgzyCUoEhTQEBAQEBAQcBAQEBQT+EXgQRHiIBGB0CBRQCCwILAwIBAgEnChoNCAKIKq8VkDcBLIEBhVOMdIFEBYdMhxCEG4NqqimCdB2BaSuGIwEBAQ Received: from ppp118-210-171-175.lns20.adl6.internode.on.net (HELO localhost) ([118.210.171.175]) by ipmail06.adl6.internode.on.net with ESMTP; 07 Dec 2015 02:11:30 +1030 Received: from localhost ([127.0.0.1]) by localhost with esmtp (Exim 4.86) (envelope-from ) id 1a5bRI-0004sP-MY; Mon, 07 Dec 2015 02:11:28 +1030 To: Jiang Liu Cc: linux-scsi@vger.kernel.org From: Arthur Marsh Subject: eata module for DPT SCSI cards Message-ID: <56645728.3040202@internode.on.net> Date: Mon, 7 Dec 2015 02:11:28 +1030 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Icedove/38.4.0 MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, I'm still having to have the following applied to be able to use the eata driver for my DPT2044W SCSI card. Is there any chance that this could be mainlined or another fix implemented that can be mainlined? As it is with the following patches applied, I still have to unload and reload the eata driver before mounting filesystems on the disk attached to the DPT2044W SCSI card that uses the eata driver, otherwise kexec reboots fail. Without the patches applied, the machine locks up when it tries to load the eata module. Arthur. ## end --- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index d7ffd66..8321c46 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c @@ -391,6 +391,7 @@ int __weak pcibios_alloc_irq(struct pci_dev *dev) { return 0; } +EXPORT_SYMBOL_GPL(pcibios_alloc_irq); void __weak pcibios_free_irq(struct pci_dev *dev) { diff --git a/drivers/scsi/eata.c b/drivers/scsi/eata.c index 227dd2c..7e6eaf8 100644 --- a/drivers/scsi/eata.c +++ b/drivers/scsi/eata.c @@ -1061,6 +1061,7 @@ static void enable_pci_ports(void) driver_name, dev->bus->number, dev->devfn); #endif + pcibios_alloc_irq(dev); if (pci_enable_device(dev)) printk ("%s: warning, pci_enable_device failed, bus %d devfn 0x%x.\n", @@ -1520,6 +1521,7 @@ static void add_pci_ports(void) if (!(dev = pci_get_class(PCI_CLASS_STORAGE_SCSI << 8, dev))) break; + pcibios_alloc_irq(dev); if (pci_enable_device(dev)) { #if defined(DEBUG_PCI_DETECT) printk