Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 9 Mar 2003 12:11:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 9 Mar 2003 12:11:17 -0500 Received: from lopsy-lu.misterjones.org ([62.4.18.26]:12049 "EHLO young-lust.wild-wind.fr.eu.org") by vger.kernel.org with ESMTP id ; Sun, 9 Mar 2003 12:11:13 -0500 To: "Justin T. Gibbs" Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] EISA aic7770 broken References: <229560000.1047229710@aslan.scsiguy.com> Organization: Metropolis -- Nowhere X-Attribution: maz Reply-to: mzyngier@freesurf.fr From: Marc Zyngier Date: 09 Mar 2003 18:20:05 +0100 Message-ID: In-Reply-To: <229560000.1047229710@aslan.scsiguy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1246 Lines: 35 >>>>> "Justin" == Justin T Gibbs writes: Justin> Take a look in kernel/resource.c. request_region returns Justin> *non-zero* if the region is already in use. The driver Justin> doesn't want to try and probe a region that is in use by Justin> another device. Your patch is incorrect. request_region returns a pointer to the newly allocated resource when it succeds, and NULL when it failed. It's the opposite logic check_region uses. Or am I *that* blind ? Without this patch, the driver happily requests all EISA IO space, and exits without any probing. >> But the driver crashes badly while probing the card, somewhere in >> ahc_runq_tasklet. >> >> Any idea ? Justin> Not without more information. Ok, what can I do ? System is a dual PII-300, with two integrated PCI AIC-7xxx. Moreover, I have one 1740 and one 2740, which crashes at probe time. Is there any trace you want me to put in ? Thanks, M. -- Places change, faces change. Life is so very strange. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/