PCMCIA card eject does not work?

4 messages, 3 authors, 2000-09-22 · open the first message on its own page

PCMCIA card eject does not work?

From: Albrecht Dre_ <hidden>
Date: 2000-09-19 15:03:50

I am currently playing with PCMCIA/Cardbus stuff on several machines. On the
Wallstreet, there is no "manual" way to eject a card (except with a paper clip).
I added a patch by Harald Roelle to the pcmcia package which talks to the pmu to
do this (see http://www.roelle.com/wvlanPPC/data/pcmcia-3.1.17-pmac.patch).
Although the software talks to the PMU (I added a few debug lines to via_pmu.c),
the card is _not_ ejected. Were there any recent changes in the pmu stuff? I use
Ben's latest stable test kernel (2.2.17pre20-ben3). Any ideas how I could track
down the problem?

BTW, do the Lombard and Pismo support automatic ejection of CardBus cards? This
would be _really_ cool...

Thanks in advance, Albrecht.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: PCMCIA card eject does not work?

From: T.R. Kobayashi <hidden>
Date: 2000-09-20 08:40:30

I am currently playing with PCMCIA/Cardbus stuff on several machines. On the
Wallstreet, there is no "manual" way to eject a card (except with a paper clip).
I added a patch by Harald Roelle to the pcmcia package which talks to the pmu to
do this (see http://www.roelle.com/wvlanPPC/data/pcmcia-3.1.17-pmac.patch).
Although the software talks to the PMU (I added a few debug lines to via_pmu.c),
the card is _not_ ejected. Were there any recent changes in the pmu stuff? I use
Ben's latest stable test kernel (2.2.17pre20-ben3). Any ideas how I could track
down the problem?
Harald Roelle's pcmcia-3.1.17-pmac.patch does not work well on my PB2400c.
I fixed this problem and wrote usb_cb.c for CardBus USB OHCI cards.
These functions may be available, as you use following sources.

http://www.ike-dyn.ritsumei.ac.jp/~tkoba/linuxppc/patches/2.2.18pre4-pb-mol-usb.diff
against Ben's kernel
http://kernel.xorsis.com/source/linux-pmac-benh.tar.gz (Sep. 12 2000)

http://www.ike-dyn.ritsumei.ac.jp/~tkoba/linuxppc/patches/pcmcia-cs-3.1.20-usb-pmac.tar.bz2

==============
T. R. Kobayashi


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: PCMCIA card eject does not work?

From: Albrecht Dre_ <hidden>
Date: 2000-09-22 11:20:30

"T.R. Kobayashi" wrote:
Harald Roelle's pcmcia-3.1.17-pmac.patch does not work well on my PB2400c.
I fixed this problem and wrote usb_cb.c for CardBus USB OHCI cards.
These functions may be available, as you use following sources.

http://www.ike-dyn.ritsumei.ac.jp/~tkoba/linuxppc/patches/2.2.18pre4-pb-mol-usb.diff
against Ben's kernel
http://kernel.xorsis.com/source/linux-pmac-benh.tar.gz (Sep. 12 2000)

http://www.ike-dyn.ritsumei.ac.jp/~tkoba/linuxppc/patches/pcmcia-cs-3.1.20-usb-pmac.tar.bz2
Thanks for your links... Your patches do indeed eject a CardBus card on my
Wallstreet. Great! However, I think the mechanics is a little problematic on
this box, as the card sometimes seems to have contact to the connector after the
eject. This leads to an immediate re-recognition of the card, and as the contact
is everything but perfect, I get a panic. Maybe I try to file more than one
eject command to the PMU and see what happens...

Thanks again, Albrecht.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: PCMCIA card eject does not work?

From: Benjamin Herrenschmidt <hidden>
Date: 2000-09-22 16:56:53

Thanks for your links... Your patches do indeed eject a CardBus card on my
Wallstreet. Great! However, I think the mechanics is a little problematic on
this box, as the card sometimes seems to have contact to the connector
after the
eject. This leads to an immediate re-recognition of the card, and as the
contact
is everything but perfect, I get a panic. Maybe I try to file more than one
eject command to the PMU and see what happens...
Here, 2.4 may help. I think the PCMCIA layer has some de-bouncing
mecanism, and inb/outb should no longer cause a panic when accessing non-
existent HW. For memory-mapped devices, you may still have a problem,
which could be solved by the oops patch (in linuxppc_2_5 but not in _2_3
yet) which would cause the driver to oops rather than panic (well, in
most cases...)

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help