can't find the pcmcia socket

rolf liu rolfliu at gmail.com
Fri Jul 15 16:22:38 EDT 2005


I tried it already and just wanted to let you know, it works. 


On 7/15/05, Dominik Brodowski <linux at dominikbrodowski.net> wrote:
> Hi,
> 
> On Wed, Jul 13, 2005 at 11:35:38AM -0700, rolf liu wrote:
> > I walked through the code. The initialization failure is in
> > pcmcia_register_socket(..).
> > In this case, the socket->resource_ops is NULL, which can pass the sanity check.
> > What is the usage of the resource_ops? Is it necessary?
> 
> Yes it is necessary.
> 
> > The socket driver for db1550 is in au1000_db1x00.c and
> > au1000_generic.c. There is no mention of resource_ops in these two
> > files.  You suggestion?
> 
> Could you try out this patch? It's completely untested, of course; I do not
> know which other changes might be needed to get PCMCIA to work again.
> 
> If it works, I'll push it upstream.
> 
>        Dominik
> 
> 
> Index: 2.6.13-rc3-git2/drivers/pcmcia/au1000_generic.c
> ===================================================================
> --- 2.6.13-rc3-git2.orig/drivers/pcmcia/au1000_generic.c
> +++ 2.6.13-rc3-git2/drivers/pcmcia/au1000_generic.c
> @@ -388,6 +388,7 @@ int au1x00_pcmcia_socket_probe(struct de
>                struct au1000_pcmcia_socket *skt = PCMCIA_SOCKET(i);
>                memset(skt, 0, sizeof(*skt));
> 
> +               skt->socket.resource_ops = &pccard_static_ops;
>                skt->socket.ops = &au1x00_pcmcia_operations;
>                skt->socket.owner = ops->owner;
>                skt->socket.dev.dev = dev;
> 
>



More information about the linux-pcmcia mailing list