* PCMCIA card eject does not work?
@ 2000-09-19 15:03 Albrecht Dre_
2000-09-20 8:40 ` T.R. Kobayashi
0 siblings, 1 reply; 4+ messages in thread
From: Albrecht Dre_ @ 2000-09-19 15:03 UTC (permalink / raw)
To: LinuxPPC-Dev Liste
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PCMCIA card eject does not work?
2000-09-19 15:03 PCMCIA card eject does not work? Albrecht Dre_
@ 2000-09-20 8:40 ` T.R. Kobayashi
2000-09-22 11:20 ` Albrecht Dre_
0 siblings, 1 reply; 4+ messages in thread
From: T.R. Kobayashi @ 2000-09-20 8:40 UTC (permalink / raw)
To: linuxppc-dev
> 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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PCMCIA card eject does not work?
2000-09-20 8:40 ` T.R. Kobayashi
@ 2000-09-22 11:20 ` Albrecht Dre_
2000-09-22 16:56 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 4+ messages in thread
From: Albrecht Dre_ @ 2000-09-22 11:20 UTC (permalink / raw)
To: T.R. Kobayashi; +Cc: linuxppc-dev
"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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PCMCIA card eject does not work?
2000-09-22 11:20 ` Albrecht Dre_
@ 2000-09-22 16:56 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 4+ messages in thread
From: Benjamin Herrenschmidt @ 2000-09-22 16:56 UTC (permalink / raw)
To: Albrecht Dre_, T.R. Kobayashi, linuxppc-dev
>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/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-09-22 16:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-19 15:03 PCMCIA card eject does not work? Albrecht Dre_
2000-09-20 8:40 ` T.R. Kobayashi
2000-09-22 11:20 ` Albrecht Dre_
2000-09-22 16:56 ` Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).