public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] aic7xxx driver doesn't release region
@ 2002-07-24 20:32 KOCHI, Takayoshi
  2002-07-24 22:28 ` Justin T. Gibbs
  0 siblings, 1 reply; 10+ messages in thread
From: KOCHI, Takayoshi @ 2002-07-24 20:32 UTC (permalink / raw)
  To: linux-kernel; +Cc: pcihpd-discuss

Hi,

This is a patch to fix releasing memory and io regions for the
aic7xxx driver.  This applies both 2.4- and 2.5-series.
Without this, you will fail to hot-remove the device.

This patch is tested on an IA32 server with ACPI PCI hotplug,
and reported to work.

--- aic7xxx_linux_pci.c.orig	Tue Nov 13 09:19:41 2001
+++ aic7xxx_linux_pci.c	Wed Jul 17 18:03:51 2002
@@ -98,6 +98,10 @@
 			break;
 		}
 	}
+#ifdef MMAPIO
+	release_mem_region(pci_resource_start(pdev, 1), 0x1000);
+#endif
+	release_region(pci_resource_start(pdev, 0), 256);
 }
 #endif /* !LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0) */
 


Thanks,
-- 
KOCHI, Takayoshi <t-kouchi@cq.jp.nec.com/t-kouchi@mvf.biglobe.ne.jp>


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [PATCH] aic7xxx driver doesn't release region
@ 2002-07-24 23:22 KOCHI, Takayoshi
  0 siblings, 0 replies; 10+ messages in thread
From: KOCHI, Takayoshi @ 2002-07-24 23:22 UTC (permalink / raw)
  To: gibbs; +Cc: linux-kernel, pcihpd-discuss


On Wed, 24 Jul 2002 16:28:48 -0600
"Justin T. Gibbs" <gibbs@scsiguy.com> wrote:

> >Hi,
> >
> >This is a patch to fix releasing memory and io regions for the
> >aic7xxx driver.  This applies both 2.4- and 2.5-series.
> 
> I don't recall when exactly this was fixed in the aic7xxx driver,
> but probably 6.2.5 or so.  The 2.5.X kernel must not be using
> a recent version of the driver.  Marcelo's tree has 6.2.8
> which definitely does not require this patch (won't even apply).

Oops, I should have to check the latest 2.4.19-rc series first.
I assumed that 2.5.x contains the latest.
Sorry for bothering you and thanks.

Thanks,
-- 
KOCHI, Takayoshi <t-kouchi@cq.jp.nec.com/t-kouchi@mvf.biglobe.ne.jp>


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-07-25 15:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-24 20:32 [PATCH] aic7xxx driver doesn't release region KOCHI, Takayoshi
2002-07-24 22:28 ` Justin T. Gibbs
2002-07-25 13:21   ` Jens Axboe
2002-07-25 14:55     ` Justin T. Gibbs
2002-07-25 14:58       ` Jens Axboe
2002-07-25 15:24         ` Justin T. Gibbs
2002-07-25 15:28           ` Jens Axboe
2002-07-25 15:31             ` Justin T. Gibbs
2002-07-25 15:47               ` Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2002-07-24 23:22 KOCHI, Takayoshi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox