mbox series

[0/3] CDL Feature control improvements

Message ID 20250416084238.258169-1-dlemoal@kernel.org
Headers show
Series CDL Feature control improvements | expand

Message

Damien Le Moal April 16, 2025, 8:42 a.m. UTC
Control of the enable/disable state of an ATA device Command Duration
Limits (CDL) features has issues:
1) Incorrect feature state report translation in libata-scsi
2) The state reported when enabling the feature was being ignored, which
caused needless SET FEATURES commands to be issued to the device, thus
causing an unwanted reset of the CDL statistics log page (which is
implied by any CDL activation action).

These patches address these 2 issues.

Martin,

I can take the scsi patch if you are OK with it. Or the reverse, you can
take all patches through the scsi tree if you prefer. Please let me
know.

Damien Le Moal (3):
  ata: libata-scsi: Fix ata_msense_control_ata_feature()
  ata: libata-scsi: Improve CDL control
  scsi: Improve CDL control

 drivers/ata/libata-scsi.c | 19 +++++++++++++++----
 drivers/scsi/scsi.c       | 36 ++++++++++++++++++++++++------------
 2 files changed, 39 insertions(+), 16 deletions(-)