lkml.org 
[lkml]   [2003]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: Problems with PCMCIA (Texas Instruments PCI1450)
Date
On Fri September 5 2003 20:38, Russell King wrote:
> On Fri, Sep 05, 2003 at 08:19:28PM +0200, Daniel Ritz wrote:
> > ok, now i can reproduce the problem on my ti1410 too. on boot detection
> > works fine with an UP kernel and fails with an SMP kernel. thanx for the
> > hint.
> >
> > i go to look at the csets a bit and try to find out more....
> > (i think i know which change...)
>
> Care to provide a hint?

yes. just tested. patch below makes on boot detection with a SMP kernel
working again (for me). which is nice, but i don't see why it is better
that way...


===== cs.c 1.56 vs edited =====
--- 1.56/drivers/pcmcia/cs.c Sun Aug 3 14:48:43 2003
+++ edited/cs.c Fri Sep 5 21:42:09 2003
@@ -316,7 +316,6 @@

wait_for_completion(&socket->thread_done);
BUG_ON(!socket->thread);
- pcmcia_parse_events(socket, SS_DETECT);

return 0;
}
@@ -1524,6 +1523,9 @@
if (client == NULL)
return CS_OUT_OF_RESOURCE;

+ if (++s->real_clients == 1)
+ pcmcia_parse_events(s, SS_DETECT);
+
*handle = client;
client->state &= ~CLIENT_UNBOUND;
client->Socket = s;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.147 / U:1.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site