summaryrefslogtreecommitdiffstats
path: root/lib/crc-t10dif.c
diff options
context:
space:
mode:
authorStuart MENEFY <stuart.menefy@st.com>2009-03-10 12:38:13 +0100
committerJeff Garzik <jgarzik@redhat.com>2009-03-13 19:55:58 +0100
commite3e4385f6181f434c0d786998ad1d0eef4e21c9b (patch)
treeb5195b312ca7acebe99d0125e60fcc4eebb7e458 /lib/crc-t10dif.c
parentsata_mv: fix MSI irq race condition (diff)
downloadlinux-e3e4385f6181f434c0d786998ad1d0eef4e21c9b.tar.xz
linux-e3e4385f6181f434c0d786998ad1d0eef4e21c9b.zip
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 'lib/crc-t10dif.c')
0 files changed, 0 insertions, 0 deletions