summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2015-08-11 13:05:10 +0100
committerLuis Henriques <luis.henriques@canonical.com>2015-09-28 10:21:41 +0100
commit05e638ae310a451dbb5be0dfbf352bbfd88464fb (patch)
tree5cbd95d9d8f99025f7159c5c31f9898b3e0d2f8b /block
parentf9fe1ee65a78fce29c2d9f10677688b6dfe07921 (diff)
staging: comedi: adl_pci7x3x: fix digital output on PCI-7230
commit ad83dbd974feb2e2a8cc071a1d28782bd4d2c70e upstream. The "adl_pci7x3x" driver replaced the "adl_pci7230" and "adl_pci7432" drivers in commits 8f567c373c4b ("staging: comedi: new adl_pci7x3x driver") and 657f77d173d3 ("staging: comedi: remove adl_pci7230 and adl_pci7432 drivers"). Although the new driver code agrees with the user manuals for the respective boards, digital outputs stopped working on the PCI-7230. This has 16 digital output channels and the previous adl_pci7230 driver shifted the 16 bit output state left by 16 bits before writing to the hardware register. The new adl_pci7x3x driver doesn't do that. Fix it in `adl_pci7x3x_do_insn_bits()` by checking for the special case of the subdevice having only 16 channels and duplicating the 16 bit output state into both halves of the 32-bit register. That should work both for what the board actually does and for what the user manual says it should do. Fixes: 8f567c373c4b ("staging: comedi: new adl_pci7x3x driver") Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions