linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: PCMCIA Card Service
  2000-11-29  2:57 ` PCMCIA Card Service Nguyen Xuan Hoang
@ 2000-11-28 17:50   ` Matthew Locke
  2000-11-29 23:03     ` Nguyen Xuan Hoang
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Locke @ 2000-11-28 17:50 UTC (permalink / raw)
  To: Nguyen Xuan Hoang; +Cc: support, linuxppc-embedded


Nguyen Xuan Hoang wrote:
>
> Hi,
>
> I'm trying to get the PCMCIA CardService  running on an mpc823 board
> (RPX Lite). I pick up the code from Jo-Ellen Mathews of AbsoluteValue
> Systems,and I can do something like remap memory, read data from IO
> port...But end up with IRQ probe fail (I start with PCMCIA Flash Card).  I
> did an investigating and find out the reason, that is PCMCIA card service
> already occupy the PCMCIA interrupt and I can not use request_8xxirq to
> register another handler .
>
> I am thinking that I may have to rewrite request_8xxirq and pcmcia interrupt
> handler to solve this case. Is there any better solution? Have any one have
> done it? I am very appreciated for any help.

yeah, I have done it.  use my patches on
ftp://ftp.mvista.com/pub/Area51/ppc_8xx.  I still have not done a
README, but if you have a MV support contract just contact support and
they will help you out.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* PCMCIA Card Service
       [not found] <DKEFKEENEHPHKNLLKHCGGEEICDAA.support@mvista.com>
@ 2000-11-29  2:57 ` Nguyen Xuan Hoang
  2000-11-28 17:50   ` Matthew Locke
  0 siblings, 1 reply; 4+ messages in thread
From: Nguyen Xuan Hoang @ 2000-11-29  2:57 UTC (permalink / raw)
  To: support; +Cc: linuxppc-embedded


Hi,

I'm trying to get the PCMCIA CardService  running on an mpc823 board
(RPX Lite). I pick up the code from Jo-Ellen Mathews of AbsoluteValue
Systems,and I can do something like remap memory, read data from IO
port...But end up with IRQ probe fail (I start with PCMCIA Flash Card).  I
did an investigating and find out the reason, that is PCMCIA card service
already occupy the PCMCIA interrupt and I can not use request_8xxirq to
register another handler .

I am thinking that I may have to rewrite request_8xxirq and pcmcia interrupt
handler to solve this case. Is there any better solution? Have any one have
done it? I am very appreciated for any help.

Thank in advances
Hoang


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PCMCIA Card Service
  2000-11-29 23:03     ` Nguyen Xuan Hoang
@ 2000-11-29 18:53       ` Matthew Locke
  0 siblings, 0 replies; 4+ messages in thread
From: Matthew Locke @ 2000-11-29 18:53 UTC (permalink / raw)
  To: Nguyen Xuan Hoang; +Cc: linuxppc-embedded


you need to install the kernel patches on the ftp site as well. the
patch with ide and kernel in the name take care of that problem.

Nguyen Xuan Hoang wrote:
>
> Hi Matthew,
>
> Thank very much for your info. I have look at your patch but it seems not
> solving our problem. I would like explain more:
>
> -  From my investigation is: there's one confliction of the interrupt:
>
> 1. The PCMCIA card service (m8xx_pcmcia) register it's interrupt handler by
> calling:
>     request_8xxirq(pcmcia_schlvl, m8xx_interrupt, 0, "m8xx_pcmcia", NULL);
>    well, that seems logical.
>
> 2. But when an PCMCIA card plug in, it remap the memory and route it's
> interrupt to the system interrupt (of course only one PCMCIA interrupt). The
> problem is most of  driver using REQUEST_8XXIRQ to register the handler. For
> Example the FLASH card will call IDE driver, IDE driver will call
> IDE_REQUEST_IRQ to register ide_intr.
> As I saw the IDE_REQUEST_IRQ call REQUEST_8XXIRQ with PCMCIA interrupt. It
> fails because the interrupt already occupy by PCMCIA (see step 1).
>
> I may be wrong...please give me some advices
>
> Thank in advances.
> Hoang
>
> >
> > yeah, I have done it.  use my patches on
> > ftp://ftp.mvista.com/pub/Area51/ppc_8xx.  I still have not done a
> > README, but if you have a MV support contract just contact support and
> > they will help you out.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PCMCIA Card Service
  2000-11-28 17:50   ` Matthew Locke
@ 2000-11-29 23:03     ` Nguyen Xuan Hoang
  2000-11-29 18:53       ` Matthew Locke
  0 siblings, 1 reply; 4+ messages in thread
From: Nguyen Xuan Hoang @ 2000-11-29 23:03 UTC (permalink / raw)
  To: Matthew Locke; +Cc: linuxppc-embedded


Hi Matthew,

Thank very much for your info. I have look at your patch but it seems not
solving our problem. I would like explain more:

-  From my investigation is: there's one confliction of the interrupt:

1. The PCMCIA card service (m8xx_pcmcia) register it's interrupt handler by
calling:
    request_8xxirq(pcmcia_schlvl, m8xx_interrupt, 0, "m8xx_pcmcia", NULL);
   well, that seems logical.

2. But when an PCMCIA card plug in, it remap the memory and route it's
interrupt to the system interrupt (of course only one PCMCIA interrupt). The
problem is most of  driver using REQUEST_8XXIRQ to register the handler. For
Example the FLASH card will call IDE driver, IDE driver will call
IDE_REQUEST_IRQ to register ide_intr.
As I saw the IDE_REQUEST_IRQ call REQUEST_8XXIRQ with PCMCIA interrupt. It
fails because the interrupt already occupy by PCMCIA (see step 1).

I may be wrong...please give me some advices

Thank in advances.
Hoang

>
> yeah, I have done it.  use my patches on
> ftp://ftp.mvista.com/pub/Area51/ppc_8xx.  I still have not done a
> README, but if you have a MV support contract just contact support and
> they will help you out.


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-11-29 23:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <DKEFKEENEHPHKNLLKHCGGEEICDAA.support@mvista.com>
2000-11-29  2:57 ` PCMCIA Card Service Nguyen Xuan Hoang
2000-11-28 17:50   ` Matthew Locke
2000-11-29 23:03     ` Nguyen Xuan Hoang
2000-11-29 18:53       ` Matthew Locke

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).