Re: Problem recognizing card
Mayank Sharma <[email protected]> Wed, 19 Mar 2003 09:49:17 +0530
| Newsgroups | gmane.linux.pcmcia.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi David,
little update on the problem that i am facing. When the card is
inserted, the pcmcia driver detects the insertion and tries to configure
the card. uring configuration it first resets the card, calling the
pcmcia_low_level function to reset the card. After resetting the card it
makes an ioctl on the ds driver with the command DS_VALIDATE_CIS. As
part of this command it goes and reads the cis from the card
(read_cis_mem() in cistpl.c). While executing this function it hangs the
system and only card removal restores the system to sane state.
Apparently looks like after reseting the card, the first command to read
from the card is hanging(blocking). Any idea how can i debug this problem ?
The problem disappears if i put some random printk's in the code,
moreover when the problem disappears, it appears on the other slot.
Looks like some timing issue, but am not able to figure out. It happens
only on two particular cards that i have (one is PHS modem card and the
other is GPRS/GSM modem card, both serial)
Any Help in this regard will be usefull, i am strugling hard for the
past couple of days to get this thing working.
Thx,
Mayank
David Hinds wrote:
>On Fri, Mar 14, 2003 at 01:55:22PM +0530, Mayank Sharma wrote:
>
>>>So... I take it that this "linux machine" is not the one with the
>>>problem? The card works fine on this system?
>>>
>>I am not sure 'cause i really can't use the card. it's PHS modem card
>>and can be used only in japan, and i am in India. but it gets a terminal
>>/dev/ttyS2. But in the status it shows [busy]
>>
>
>The [busy] doesn't indicate anything. You could try running the
>"test_modem" script from the pcmcia-cs package, but if it got this far
>it is probably working.
>
>
>>other serial cards (even a PHS by a different manufacturer) works fine.
>>only this particular card was having problem. I get the following
>>message when i insert the card in /var/log/message
>>cs: socket c1ea2000 timed out during reset. Try increasing setup_delay
>>when i do cardctl status i get the following message
>>Socket 1:
>> 3.3V 16-bit PC Card
>> function 0: [busy]
>>
>>and when i do cardctl ident, it hangs untill i plug out the card. Can
>>you tell me how to get more log messages, i'll compile the driver
>>accordingly and get more messages
>>
>
>In your original message you said the system hung when you inserted
>the card. Now you say it hangs when you do "cardctl ident". Which is
>correct?
>
>The "socket timed out" message is bad news. That is a very low level
>failure; the card never signalled "ready" after it was powered up.
>
>Can you run "dump_cis" on the card in the other (laptop?) machine? I
>wonder if maybe this card draws too much power for the palmtop?
>
>You could also try putting:
>
> CORE_OPTS="unreset_limit=100"
>
>in /etc/sysconfig/pcmcia.
>
>-- Dave
>
-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink?
You could win a Tablet PC. Get a free Tablet PC hat just for playing.
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en