]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: comedi: fix minimum AO period for NI 625x and NI 628x
authorÉric Piel <piel@delmic.com>
Wed, 19 Dec 2012 12:03:13 +0000 (13:03 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Feb 2013 04:33:25 +0000 (04:33 +0000)
commit3288bff62342281c6c6cdd2df6e6fc19afe98498
tree7d6ab234926ad661eace91210288ac5cf717b705
parent4b5a0124c45f7f40f0829de7e6bade4ce4633bfa
staging: comedi: fix minimum AO period for NI 625x and NI 628x

commit 34b55d8c48f4f76044d8f4d6ec3dc786cf210312 upstream.

The minimum period was set to 357 ns, while the divider for these boards is 50
ns. This prevented to output at maximum speed as ni_ao_cmdtest() would return
357 but would not accept it.

Not sure why it was set to 357 ns (this was done before the git history,
which starts 5 years ago). My guess is that it comes from reading the
specification stating a 2.8 MHz rate (~ 357 ns). The latest
specification states a 2.86 MHz rate (~ 350 ns), which makes a lot
more sense.

Tested on a pci-6251.

Signed-off-by: Éric Piel <piel@delmic.com>
Acked-By: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[bwh: Backported to 3.2: drop hunk for a board that's not listed]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/staging/comedi/drivers/ni_pcimio.c