]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: s626: add mmiowb() calls
authorIan Abbott <abbotti@mev.co.uk>
Tue, 8 Oct 2013 18:06:36 +0000 (19:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2013 22:34:21 +0000 (15:34 -0700)
commitdece706b6e5b7d6cfec6de78461d2fbacb2153f9
treecf796e70580c568974b0e5b288ba05c3be8c51e9
parente833cc3d9277f313aca2bdec5f6195dd8652c61f
staging: comedi: s626: add mmiowb() calls

`s626_mc_enable()` is often called to enable some function in a control
register after setting up some other registers.  Precede the write to
the control register with a call to `mmiowb()` to preserve mmio write
ordering.

`s626_mc_disable()` is called to disable some function in a control
register and is often followed up by writes to other registers.  Follow
the write to the control register with a call to `mmiowb()` to preserve
mmio write ordering.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/s626.c