From: H Hartley Sweeten Date: Mon, 20 Oct 2014 18:34:18 +0000 (-0700) Subject: staging: comedi: addi_apci_3120: prevent deadlock in apci3120_ao_insn_write() X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~808 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce987a8a8f86c063c6332da83dfa514a1582c2f3;p=pandora-kernel.git staging: comedi: addi_apci_3120: prevent deadlock in apci3120_ao_insn_write() The DA_READY bit (0x0001) in the status register needs to be set before the analog outputs can be updated. Use comedi_timeout() to prevent a deadlock condition while waiting for the DA_READY bit to get set. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed