Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [patch] generate error when trying to compile PCMCIA driver without 64 bit addresses
@ 2005-02-23  8:47 Ulrich Eckhardt
  2005-02-23 11:19 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Eckhardt @ 2005-02-23  8:47 UTC (permalink / raw)
  To: linux-mips

Greetings!

PCMCIA controller registers are mapped in an area that requires the upper four 
of the 36 bit addresses, so this can't work without 64 bit physical address 
support. Sick thing is that due to some stupid casts the whole thing compiles 
without warnings even without 64 bit support but of course doesn't run. 
However, that's a topic for a different patch.

Uli

Changes:
 * generate error when compiled without 64bit physical address support

---
Index: drivers/pcmcia/au1000_generic.h
===================================================================
RCS file: /home/cvs/linux/drivers/pcmcia/au1000_generic.h,v
retrieving revision 1.4
diff -u -r1.4 au1000_generic.h
--- drivers/pcmcia/au1000_generic.h 19 Oct 2004 07:26:37 -0000 1.4
+++ drivers/pcmcia/au1000_generic.h 23 Feb 2005 08:40:05 -0000
@@ -30,6 +30,10 @@
 #include <pcmcia/cistpl.h>
 #include "cs_internal.h"
 
+#if !defined(CONFIG_64BIT_PHYS_ADDR)
+#  error "need 64bit physical address support to access PCMCIA controller"
+#endif
+
 #define AU1000_PCMCIA_POLL_PERIOD    (2*HZ)
 #define AU1000_PCMCIA_IO_SPEED       (255)
 #define AU1000_PCMCIA_MEM_SPEED      (300)

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

* Re: [patch] generate error when trying to compile PCMCIA driver without 64 bit addresses
  2005-02-23  8:47 [patch] generate error when trying to compile PCMCIA driver without 64 bit addresses Ulrich Eckhardt
@ 2005-02-23 11:19 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2005-02-23 11:19 UTC (permalink / raw)
  To: Ulrich Eckhardt; +Cc: linux-mips

On Wed, Feb 23, 2005 at 09:47:53AM +0100, Ulrich Eckhardt wrote:

> PCMCIA controller registers are mapped in an area that requires the upper four 
> of the 36 bit addresses, so this can't work without 64 bit physical address 
> support. Sick thing is that due to some stupid casts the whole thing compiles 
> without warnings even without 64 bit support but of course doesn't run. 
> However, that's a topic for a different patch.

> +#if !defined(CONFIG_64BIT_PHYS_ADDR)
> +#  error "need 64bit physical address support to access PCMCIA controller"
> +#endif
> +
>  #define AU1000_PCMCIA_POLL_PERIOD    (2*HZ)
>  #define AU1000_PCMCIA_IO_SPEED       (255)
>  #define AU1000_PCMCIA_MEM_SPEED      (300)

No.  In drivers/pcmcia/Kconfig do something like:

config PCMCIA_AU1X00
        tristate "Au1x00 pcmcia support"
	select 64BIT_PHYS_ADDR
        depends on SOC_AU1X00 && PCMCIA

  Ralf

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

end of thread, other threads:[~2005-02-23 11:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-23  8:47 [patch] generate error when trying to compile PCMCIA driver without 64 bit addresses Ulrich Eckhardt
2005-02-23 11:19 ` Ralf Baechle

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