Re: [PATCH 12/22] staging: comedi: addi_apci_3120: remove analog output reset

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

 



On 20/10/14 19:34, H Hartley Sweeten wrote:
The apci3120_reset() function is called at the end of the (*auto_attach) and
with the (*detach) is called to unload the driver. Part of this function
resets all the analog output channels to 0V.

There are two problems with this.
1) Only the APCI-3120 has analog outputs, the APCI-3001 does not.
2) The DA_READY bit in the status register needs to be checked before each
    write to update the analog outputs. It's unknown what the DA_READY bit
    does on the APCI-3001 board.

Just remove the analog output reset to avoid any problems.

A minor niggle is that the readback value for a channel won't match the voltage until the channel is written. Maybe the code for writing to the channel and setting the readback value could be factored out of the insn_write handler and called for each channel during auto_attach (ignoring any timeout errors). This could be done after this patch series.

--
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti@xxxxxxxxx> )=-
-=(                          Web: http://www.mev.co.uk/  )=-
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-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