Re: [PATCH 01/01 v3] staging: comedi: adv_pci1724: new driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2013-03-05 20:24, H Hartley Sweeten wrote:
On Tuesday, March 05, 2013 12:58 PM, Ian Abbott wrote:
On 05/03/2013 17:17, Ian Abbott wrote:
From: Frank Mori Hess <fmh6jj@xxxxxxxxx>

New comedi driver for Advantech PCI-1724U with modifications by Ian
Abbott <abbotti@xxxxxxxxx>.

Signed-off-by: Ian Abbott <abbotti@xxxxxxxxx>
---
v2: Fix missing `if (ret)` after call to `comedi_alloc_subdevices()`.
v3: Melded the 13 patches for v2 into a single patch.

This will be incompatible with H Hartley Sweeten's change to the
comedi_pci_auto_config(), so best skip v3 for now and I'll knock out a
v4 incorporating Hartley's changes once that has been accepted.

  (I haven't actually gone through them all yet!)

Ian,

The amplc drivers still do the boardinfo searching. Those drivers are a bit
of a hybrid due to the dual ISA/PCI support. I'm not sure how you want
to handle those.

1) Split the "bus" specific support out as separate modules with a "core"
module with all the common code. The das08 driver is setup this way.

2) Split the boardinfo for the PCI devices out of the boardinfo passed in
the comedi_driver. The ISA devices then would be detected in the legacy
fashion and the PCI devices would be auto-detected and the boardinfo
enum passed In the pci_device_id driver_data.

3) Some other way....

4) Leave it as-is...

Your drivers, your choice.. ;-)

It's on my todo list, but I haven't looked at it yet. Probably go with the bus specific support in separate modules with a common module for the guts.

--
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti@xxxxxxxxx>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux