linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] xtensa: don't offer ATA
@ 2008-04-14 19:55 Adrian Bunk
  2008-04-17 19:39 ` Jeff Garzik
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2008-04-14 19:55 UTC (permalink / raw)
  To: chris, jgarzik; +Cc: linux-ide, linux-kernel

Trying to build libata for xtensa fails with the following error:

<--  snip  -->

...
  CC [M]  drivers/ata/libata-core.o
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c: In function 'ata_devchk':
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:1034: error: implicit declaration of function 'iowrite8'
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:1043: error: implicit declaration of function 'ioread8'
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c: In function 'ata_data_xfer':
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:5027: error: implicit declaration of function 'ioread16_rep'
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:5029: error: implicit declaration of function 'iowrite16_rep'
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:5037: error: implicit declaration of function 'ioread16'
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:5041: error: implicit declaration of function 'iowrite16'
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c: In function 'ata_wait_register':
/home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:7700: error: implicit declaration of function 'ioread32'
make[3]: *** [drivers/ata/libata-core.o] Error 1

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
aa579e7ab065e41a9d1e27e1f4b7af6b0508018c diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig
index 25aba69..f34e9d1 100644
--- a/drivers/ata/Kconfig
+++ b/drivers/ata/Kconfig
@@ -6,7 +6,7 @@ menuconfig ATA
 	tristate "Serial ATA (prod) and Parallel ATA (experimental) drivers"
 	depends on HAS_IOMEM
 	depends on BLOCK
-	depends on !(M32R || M68K) || BROKEN
+	depends on !(M32R || M68K || XTENSA) || BROKEN
 	depends on !SUN4 || BROKEN
 	select SCSI
 	---help---


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

* Re: [2.6 patch] xtensa: don't offer ATA
  2008-04-14 19:55 [2.6 patch] xtensa: don't offer ATA Adrian Bunk
@ 2008-04-17 19:39 ` Jeff Garzik
  2008-04-21 19:39   ` Adrian Bunk
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Garzik @ 2008-04-17 19:39 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: chris, linux-ide, linux-kernel

Adrian Bunk wrote:
> Trying to build libata for xtensa fails with the following error:
> 
> <--  snip  -->
> 
> ...
>   CC [M]  drivers/ata/libata-core.o
> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c: In function 'ata_devchk':
> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:1034: error: implicit declaration of function 'iowrite8'
> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:1043: error: implicit declaration of function 'ioread8'
> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c: In function 'ata_data_xfer':
> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:5027: error: implicit declaration of function 'ioread16_rep'
> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:5029: error: implicit declaration of function 'iowrite16_rep'
> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:5037: error: implicit declaration of function 'ioread16'
> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:5041: error: implicit declaration of function 'iowrite16'
> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c: In function 'ata_wait_register':
> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:7700: error: implicit declaration of function 'ioread32'
> make[3]: *** [drivers/ata/libata-core.o] Error 1
> 
> <--  snip  -->
> 
> Signed-off-by: Adrian Bunk <bunk@kernel.org>
> 
> ---
> aa579e7ab065e41a9d1e27e1f4b7af6b0508018c diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig
> index 25aba69..f34e9d1 100644
> --- a/drivers/ata/Kconfig
> +++ b/drivers/ata/Kconfig
> @@ -6,7 +6,7 @@ menuconfig ATA
>  	tristate "Serial ATA (prod) and Parallel ATA (experimental) drivers"
>  	depends on HAS_IOMEM
>  	depends on BLOCK
> -	depends on !(M32R || M68K) || BROKEN
> +	depends on !(M32R || M68K || XTENSA) || BROKEN
>  	depends on !SUN4 || BROKEN
>  	select SCSI

XTENSA offers HAS_IOMEM but not iomem functions?  That seems like the 
problem to me.

Overall, we should not be adding specific arches to an exclusion list, 
we should defining HAS_IOFOO or MISSING_IOFOO or another symbol in the 
appropriate arch.

	Jeff

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

* Re: [2.6 patch] xtensa: don't offer ATA
  2008-04-17 19:39 ` Jeff Garzik
@ 2008-04-21 19:39   ` Adrian Bunk
  2008-04-25  7:58     ` Christian Zankel
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2008-04-21 19:39 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: chris, linux-ide, linux-kernel

On Thu, Apr 17, 2008 at 03:39:29PM -0400, Jeff Garzik wrote:
> Adrian Bunk wrote:
>> Trying to build libata for xtensa fails with the following error:
>>
>> <--  snip  -->
>>
>> ...
>>   CC [M]  drivers/ata/libata-core.o
>> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c: In function 'ata_devchk':
>> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:1034: error: implicit declaration of function 'iowrite8'
>> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:1043: error: implicit declaration of function 'ioread8'
>> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c: In function 'ata_data_xfer':
>> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:5027: error: implicit declaration of function 'ioread16_rep'
>> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:5029: error: implicit declaration of function 'iowrite16_rep'
>> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:5037: error: implicit declaration of function 'ioread16'
>> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:5041: error: implicit declaration of function 'iowrite16'
>> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c: In function 'ata_wait_register':
>> /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-core.c:7700: error: implicit declaration of function 'ioread32'
>> make[3]: *** [drivers/ata/libata-core.o] Error 1
>>
>> <--  snip  -->
>>
>> Signed-off-by: Adrian Bunk <bunk@kernel.org>
>>
>> ---
>> aa579e7ab065e41a9d1e27e1f4b7af6b0508018c diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig
>> index 25aba69..f34e9d1 100644
>> --- a/drivers/ata/Kconfig
>> +++ b/drivers/ata/Kconfig
>> @@ -6,7 +6,7 @@ menuconfig ATA
>>  	tristate "Serial ATA (prod) and Parallel ATA (experimental) drivers"
>>  	depends on HAS_IOMEM
>>  	depends on BLOCK
>> -	depends on !(M32R || M68K) || BROKEN
>> +	depends on !(M32R || M68K || XTENSA) || BROKEN
>>  	depends on !SUN4 || BROKEN
>>  	select SCSI
>
> XTENSA offers HAS_IOMEM but not iomem functions?  That seems like the  
> problem to me.

Chris, can you comment on this?

> Overall, we should not be adding specific arches to an exclusion list,  
> we should defining HAS_IOFOO or MISSING_IOFOO or another symbol in the  
> appropriate arch.
>
> 	Jeff

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

* Re: [2.6 patch] xtensa: don't offer ATA
  2008-04-21 19:39   ` Adrian Bunk
@ 2008-04-25  7:58     ` Christian Zankel
  0 siblings, 0 replies; 4+ messages in thread
From: Christian Zankel @ 2008-04-25  7:58 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Jeff Garzik, linux-ide, linux-kernel

Hi Adrian,

Adrian Bunk wrote:
>> XTENSA offers HAS_IOMEM but not iomem functions?  That seems like the  
>> problem to me.
> 
> Chris, can you comment on this?

Yes, the iomem functions are missing. I finally have a board that allows 
me to test io functionality. I don't just want to add the functions 
without having the chance to test them.

-Chris

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

end of thread, other threads:[~2008-04-25  7:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-14 19:55 [2.6 patch] xtensa: don't offer ATA Adrian Bunk
2008-04-17 19:39 ` Jeff Garzik
2008-04-21 19:39   ` Adrian Bunk
2008-04-25  7:58     ` Christian Zankel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).