Toshiba ToPIC developer info

Ryan Underwood nemesis-lists at icequake.net
Sat Jul 2 06:19:33 EDT 2005


On Tue, Jun 28, 2005 at 10:36:52PM +0200, Daniel Ritz wrote:
> > > 
> > > now that i read the whole thread...you say in 2.4+pcmcia-cs you can
> > > get the same flags if you comment out the topic_set_opts, topic_set_state,
> > > topic_get_state in i82365.c. now can you figure out what exactly makes the
> > > difference there?
> > 
> > Sure, I'll have a look.
> 
> thanks. i didn't see what could make the difference there.

I don't see either.  Only the last two bits of topic_set_state seem to
do anything out of the ordinary, and I have applied the parts of
topic_set_opts that were posted in a previous patch to topic97_override
with no effect.  Aside from that there isn't much different.  I'll check
pcmcia-cs without modifications again to ensure that the difference
really is in that area.

> --- a/drivers/pcmcia/yenta_socket.c	2005-06-28 22:31:37.000000000 +0200
> +++ b/drivers/pcmcia/yenta_socket.c	2005-06-28 22:32:22.000000000 +0200
> @@ -307,8 +307,10 @@
>  			}
>  		}
>  
> -		if (reg != old)
> +		if (reg != old) {
> +			cb_writel(socket, CB_SOCKET_CONTROL, 0);
>  			exca_writeb(socket, I365_POWER, reg);
> +		}
>  	} else {
>  		u32 reg = 0;	/* CB_SC_STPCLK? */
>  		switch (state->Vcc) {
>

It didn't hurt anything, but had no observable effect on the strange
socket state flags, the nobody cared IRQ, or the sluggishness on eject.

> so it's only on eject? i'll have a look at it on the weekend...

Yes, at eject, the system at first seems sluggish (hang-run-hang-run),
and then hangs altogether for 15-20 seconds, after which I hear the
pcmcia acknowledgement beep.

-- 
Ryan Underwood, <nemesis at icequake.net>



More information about the linux-pcmcia mailing list