[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sparc scsi esp depends on pci & hangs on boot



FYI i had compile both sparc32/sparc64 with these patch
and finally that fu**ing PCI dependency is gone! thank you :)

This should be done in asm-generic/dma-mapping.h IMHO with
others archs in mind.

-solca

On Wed, Jul 23, 2003 at 12:20:08AM -0700, David S. Miller wrote:
> On Wed, 23 Jul 2003 08:02:22 +0100
> Christoph Hellwig <hch@infradead.org> wrote:
> 
> > On Tue, Jul 22, 2003 at 11:57:14PM -0700, David S. Miller wrote:
> > > I don't see why this is a problem.  Either do this, or fix
> > > asm-generic/dma-mapping.h which is not GENERIC because it
> > > depends upon something SPECIFIC, specifically PCI.
> > 
> > The latter is what need to be done.  
> 
> I'll do the following for now.
> 
> # This is a BitKeeper generated patch for the following project:
> # Project Name: Linux kernel tree
> # This patch format is intended for GNU patch command version 2.5 or higher.
> # This patch includes the following deltas:
> #	           ChangeSet	1.1518  -> 1.1519 
> #	include/asm-sparc64/dma-mapping.h	1.1     -> 1.2    
> #	include/asm-sparc/dma-mapping.h	1.1     -> 1.2    
> #
> # The following is the BitKeeper ChangeSet Log
> # --------------------------------------------
> # 03/07/23	davem@nuts.ninka.net	1.1519
> # [SPARC]: Do not include asm-generic/dma-mapping.h if !CONFIG_PCI.
> # --------------------------------------------
> #
> diff -Nru a/include/asm-sparc/dma-mapping.h b/include/asm-sparc/dma-mapping.h
> --- a/include/asm-sparc/dma-mapping.h	Wed Jul 23 00:06:03 2003
> +++ b/include/asm-sparc/dma-mapping.h	Wed Jul 23 00:06:03 2003
> @@ -1 +1,5 @@
> +#include <linux/config.h>
> +
> +#ifdef CONFIG_PCI
>  #include <asm-generic/dma-mapping.h>
> +#endif
> diff -Nru a/include/asm-sparc64/dma-mapping.h b/include/asm-sparc64/dma-mapping.h
> --- a/include/asm-sparc64/dma-mapping.h	Wed Jul 23 00:06:03 2003
> +++ b/include/asm-sparc64/dma-mapping.h	Wed Jul 23 00:06:03 2003
> @@ -1 +1,5 @@
> +#include <linux/config.h>
> +
> +#ifdef CONFIG_PCI
>  #include <asm-generic/dma-mapping.h>
> +#endif



Reply to: