diff options
author | Stuart MENEFY <stuart.menefy@st.com> | 2009-03-10 11:38:13 +0000 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2009-03-13 14:55:58 -0400 |
commit | e3e4385f6181f434c0d786998ad1d0eef4e21c9b (patch) | |
tree | b5195b312ca7acebe99d0125e60fcc4eebb7e458 /block/blk-barrier.c | |
parent | 9d51af7bd2f1d730cb6eeeb9ff837e3441ad4e07 (diff) |
libata: Keep shadow last_ctl up to date during resets
libata keeps a shadow copy of the ATA CTL register (which is write only),
and only writes to the hardware when the required value doesn't match
the shadow. However this copy wasn't being maintained when performing
reset functions. This could cause problems for the first operation after
a reset when the correct value might not be written to the CTL register.
This problem was observed when hotplugging a drive: the identify command
was being issued with interrupts enabled, when they should have been
disabled.
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'block/blk-barrier.c')
0 files changed, 0 insertions, 0 deletions