linux 2.6 pcmcia power issues

David Hinds dhinds at sonic.net
Fri Feb 25 17:03:14 EST 2005


On Fri, Feb 25, 2005 at 10:00:40PM +0100, Dominik Brodowski wrote:
>
> try out "reserve=0x1e000000,0x01000000" instead -- I assume you have
> 512 MB RAM. 

You know, I'd recommend that a sanity check be added to the yenta
driver so that it just bombs out with a more specific error message if
the bridge is not accessible.

This would catch several sorts of errors: bad ACPI memory maps, bad
BIOS resource assignments, some PCI bridging problems.

The pcmcia-cs drivers use the following code for this.

-- Dave


  static int check_cb_mapping(socket_info_t *s)
  {
      u_int state = cb_readl(s, CB_SOCKET_STATE) >> 16;
      /* A few sanity checks to validate the bridge mapping */
      if ((cb_readb(s, 0x800+I365_IDENT) & 0x70) ||
          (cb_readb(s, 0x800+I365_CSC) && cb_readb(s, 0x800+I365_CSC) &&
           cb_readb(s, 0x800+I365_CSC)) || cb_readl(s, CB_SOCKET_FORCE) ||
          ((state & ~0x3000) || !(state & 0x3000)))
          return 1;
      return 0;
  }



More information about the linux-pcmcia mailing list