Thread (18 messages) 18 messages, 5 authors, 2005-09-24

Re: [RFC/BUG?] ide_cs's removable status

From: Russell King <hidden>
Date: 2005-09-22 14:36:42
Also in: lkml

On Thu, Sep 22, 2005 at 03:21:16PM +0100, Richard Purdie wrote:
3. ide-cs sometimes can't/doesn't detect the removal of an ide
controller.
This is the one I'm particularly interested in, and I think it's
responsible for a lot of problems in this area.

"can't" is correct - from what I now understand from Alan, it seems
that there are PCMCIA to CF adapters out there which tie the PCMCIA
card detect lines to ground, rather than passing them through to the
CF socket.

This means that if you leave the PCMCIA to CF adapter in the slot,
pull out the CF card, replace it with another CF card, PCMCIA will
not notice the change.

You could even plug this adapter into the slot with a CF IDE card in,
unplug the CF IDE card and replace it with a CF network card.  Then
watch the fun and games when IDE tries to access the CF network card!

Therefore, it's completely unsafe to assume anything about what's
plugged in with such a broken adapter... the only way you could be
sure is to regularly check the CIS matches the PCMCIA cached version,
provided you have enough of the CIS cached.

I think this basically comes down to a buggy CF adapter which needs
bining.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help