mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
libata-scsi: fix SET FEATURES "filtering" for ata_msense_caching()
Without this fix, the DRA bit of the caching mode page would not be updated when the read look-ahead feature is toggled (e.g. with `smartctl --set`), but will only be until, for example, the write cache feature is touched. Signed-off-by: Tom Yan <tom.ty89@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
56b8cbabb4
commit
0c12735e8a
2 changed files with 6 additions and 1 deletions
|
@ -409,6 +409,9 @@ enum {
|
|||
SETFEATURES_WC_ON = 0x02, /* Enable write cache */
|
||||
SETFEATURES_WC_OFF = 0x82, /* Disable write cache */
|
||||
|
||||
SETFEATURES_RA_ON = 0xaa, /* Enable read look-ahead */
|
||||
SETFEATURES_RA_OFF = 0x55, /* Disable read look-ahead */
|
||||
|
||||
/* Enable/Disable Automatic Acoustic Management */
|
||||
SETFEATURES_AAM_ON = 0x42,
|
||||
SETFEATURES_AAM_OFF = 0xC2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue