[PATCH 01/01 v3] staging: comedi: adv_pci1724: new driver
H Hartley Sweeten
hartleys at visionengravers.com
Tue Mar 5 20:24:00 UTC 2013
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 at gmail.com>
>>
>> New comedi driver for Advantech PCI-1724U with modifications by Ian
>> Abbott <abbotti at mev.co.uk>.
>>
>> Signed-off-by: Ian Abbott <abbotti at mev.co.uk>
>> ---
>> 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.. ;-)
Regards,
Hartley
More information about the devel
mailing list