Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1724813

Re: [PATCH] drivers: staging: Add driver for Amplicon PCIe215

From Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH] drivers: staging: Add driver for Amplicon PCIe215
Date 2017-09-01 09:00 +0200
Message-ID <ukO5P-dZ-7@gated-at.bofh.it> (permalink)
References <ukAYX-85f-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Aug 31, 2017 at 05:54:58PM +0100, Piotr Gregor wrote:
> This is a small and simple driver for handling of external
> interrupt signal asserted on pins of Amplicon's PCIe215 board.
> There is already a Comedi driver subsystem in kernel which handles
> that (and more) board, but that framework while offering more
> flexibility brings also additional complexity at the cost of being generic.
> 
> In some cases the simpler, more compact solution may be preferred.

Note, having different drivers for the same hardware platform in the
kernel tree is a mess, and generally discouraged.  I've handled this in
the past and we hated every minute of it.

What is wrong with the comedi interface instead?

And custom ioctls for a single hardware device is horrid, what's wrong
with using the uio interface for something like this?

And finally, why staging?  While I know I wouldn't accept merging this
into the main portion of the kernel, why do you feel that adding this to
drivers/staging/ is ok?  What's so wrong with it (well, becides the
previous questions), that dumping it here is the properly location?

> The purpose of this driver is therefore to handle interrupt
> feature of the PCIe215, while being small, simple and reliable.

Why isn't comedi reliable?

thanks,

greg k-h

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH] drivers: staging: Add driver for Amplicon PCIe215 Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-09-01 09:00 +0200
  Re: [PATCH] drivers: staging: Add driver for Amplicon PCIe215 Piotr Gregor <piotrgregor@rsyncme.org> - 2017-09-01 11:00 +0200
    Re: [PATCH] drivers: staging: Add driver for Amplicon PCIe215 Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-09-01 11:30 +0200

csiph-web