can't find the pcmcia socket

Dominik Brodowski linux at dominikbrodowski.net
Fri Jul 15 13:21:15 EDT 2005


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