commit | 34373cd08810fcf7b55a89866081e09e91e43ace | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Wed Dec 03 11:25:34 2014 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Jan 09 16:54:34 2015 -0800 |
tree | 41328839850cac33640dd6257cd850242db34d49 | |
parent | 8dbaadb93117c8aec77c5e97fb06c125c1e345cc [diff] |
staging: comedi: hwdrv_apci1500: introduce z8536_reset() Introduce a helper function to reset the Z8536 CIO device. Spinlock the initial reset of the Z8536 chip that puts it in State 0. The z8536_{read,write} operations already do the spinlock to protect the indirect register access. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>