Re: Synchronization between ISR and IST - I2C Based device
- From: "Steve Maillet \(eMVP\)" <nospam1@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 24 Dec 2006 14:21:08 -0500
and in this case that MUST be a single instance driver for the dual
channel device.
No. That is what I am trying to point. It is possible and not very
difficult to have a driver instance for each device, provided the driver is
prepared to this situation.
It's vastly more complicated to implement a driver such that it uses shared
global data and synchronization mechanisms for a single IST. In this case
there MUST be only one IST as THAT is what MUST make the determination of
which specific channel caused the interrupt as the ISR can't do that. So
trying to create 2 driver instances with a single IST just complicates the
driver implementation. And in the end that approach does not add anything
beyond what a simple IOCTL that sets the channel number for an open context
gives you. So, yes, it is possible to implement it as multiple driver
instances but it would be a complete waste of time and effort to do so and
dramatically increase your development time and costs.
--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com
.
- Follow-Ups:
- Re: Synchronization between ISR and IST - I2C Based device
- From: Remi de Gravelaine
- Re: Synchronization between ISR and IST - I2C Based device
- References:
- Synchronization between ISR and IST - I2C Based device
- From: Mams
- Re: Synchronization between ISR and IST - I2C Based device
- From: Geoff
- Re: Synchronization between ISR and IST - I2C Based device
- From: Srivathsan
- Re: Synchronization between ISR and IST - I2C Based device
- From: Steve Maillet \(eMVP\)
- Re: Synchronization between ISR and IST - I2C Based device
- From: Srivathsan
- Re: Synchronization between ISR and IST - I2C Based device
- From: Steve Maillet \(eMVP\)
- Re: Synchronization between ISR and IST - I2C Based device
- From: Remi de Gravelaine
- Re: Synchronization between ISR and IST - I2C Based device
- From: Steve Maillet \(eMVP\)
- Re: Synchronization between ISR and IST - I2C Based device
- From: Remi de Gravelaine
- Synchronization between ISR and IST - I2C Based device
- Prev by Date: Re: Synchronization between ISR and IST - I2C Based device
- Next by Date: Re: KitlInit failed
- Previous by thread: Re: Synchronization between ISR and IST - I2C Based device
- Next by thread: Re: Synchronization between ISR and IST - I2C Based device
- Index(es):
Relevant Pages
|