diff options
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-10-05 15:16:59 +0200 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-10-05 20:39:21 +0200 |
commit | ca55f46e13dd07b029b0a3d64637f983a6627b23 (patch) | |
tree | 4451919320800974f1a937fe5ee25552307166a6 /drivers/hid | |
parent | 65e8b083fc8ec303499baa1924ae032d46d29990 (diff) | |
download | blackbird-op-linux-ca55f46e13dd07b029b0a3d64637f983a6627b23.tar.gz blackbird-op-linux-ca55f46e13dd07b029b0a3d64637f983a6627b23.zip |
atmel-mci: Don't overwrite error bits when NOTBUSY is set
After a data error, we wait for the NOTBUSY bit to be set so that we can
be sure the data transfer is completely finished. However, when NOTBUSY
is set, the interrupt handler copies the contents of SR into
data_status, overwriting any error bits we may have detected earlier.
To avoid this, initialize data_status to 0 before starting a request, and
don't overwrite it unless it still contains 0.
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'drivers/hid')
0 files changed, 0 insertions, 0 deletions