Re: [PATCH 00/03][RFC] Reusable UIO Platform Driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Uwe
Date: Wednesday, May 21, 2008 - 4:04 am

Magnus Damm wrote:
... if both info->handler and info->prep_read_poll are NULL and
info->irq >= 0.

I'm not sure that solving that problem in uio_pdrv is the right
approach.  Other uio drivers might have the same problem, so better
allow the userspace driver to allocate some memory in a more generic
way?
 
Assume your irq is stuck at its active level.  Normally the irq is
then disabled after some time.  You can handle that in your userspace
driver, but with acking in kernel space and returning IRQ_NONE or
IRQ_HANDLED you get it for free.  Nevertheless, go on.

Best regards
Uwe

-- 
Uwe Kleine-König, Software Engineer
Digi International GmbH Branch Breisach, Küferstrasse 8, 79206 Breisach, Germany
Tax: 315/5781/0242 / VAT: DE153662976 / Reg. Amtsgericht Dortmund HRB 13962
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00/03][RFC] Reusable UIO Platform Driver, Magnus Damm, (Tue May 20, 3:51 am)
[PATCH 01/03] uio: Add enable_irq() callback, Magnus Damm, (Tue May 20, 3:51 am)
[PATCH 02/03] uio: Add uio_platform driver, Magnus Damm, (Tue May 20, 3:51 am)
Re: [PATCH 00/03][RFC] Reusable UIO Platform Driver, Hans J. Koch, (Tue May 20, 2:07 pm)
Re: [PATCH 00/03][RFC] Reusable UIO Platform Driver, Magnus Damm, (Tue May 20, 8:31 pm)
Re: [PATCH 00/03][RFC] Reusable UIO Platform Driver, Paul Mundt, (Wed May 21, 12:49 am)
Re: [PATCH 00/03][RFC] Reusable UIO Platform Driver, Magnus Damm, (Wed May 21, 1:09 am)
Re: [PATCH 00/03][RFC] Reusable UIO Platform Driver, Magnus Damm, (Wed May 21, 1:22 am)
Re: [PATCH 00/03][RFC] Reusable UIO Platform Driver, Magnus Damm, (Wed May 21, 3:50 am)
Re: [PATCH 00/03][RFC] Reusable UIO Platform Driver, Uwe , (Wed May 21, 4:04 am)
Re: [PATCH 00/03][RFC] Reusable UIO Platform Driver, Magnus Damm, (Wed May 21, 4:56 am)
Re: [PATCH 01/03] uio: Add enable_irq() callback, Magnus Damm, (Wed May 21, 4:58 am)
Re: [PATCH 01/03] uio: Add enable_irq() callback, Hans J. Koch, (Thu May 22, 1:18 pm)
Re: [PATCH 01/03] uio: Add enable_irq() callback, Magnus Damm, (Thu May 22, 6:24 pm)
Re: [PATCH 01/03] uio: Add enable_irq() callback, Hans J. Koch, (Fri May 23, 1:43 am)