diff options
author | Damien Le Moal <dlemoal@kernel.org> | 2025-07-01 21:53:12 +0900 |
---|---|---|
committer | Niklas Cassel <cassel@kernel.org> | 2025-07-02 12:01:33 +0200 |
commit | d360121832d8a36871249271df5b9ff05f835f62 (patch) | |
tree | 5f0c69b364fc3c5a776065716af6795ce506388d /scripts/lib/kdoc/kdoc_files.py | |
parent | 0013ddc4cf2047caca31c541b18728d9e2eccba9 (diff) |
ata: libata-core: Introduce ata_dev_config_lpm()
If the port of a device does not support Device Initiated Power
Management (DIPM), that is, the port is flagged with ATA_FLAG_NO_DIPM,
the DIPM feature of a device should not be used. Though DIPM is disabled
by default on a device, the "Software Settings Preservation feature"
may keep DIPM enabled or DIPM may have been enabled by the system
firmware.
Introduce the function ata_dev_config_lpm() to always disable DIPM on a
device that supports this feature if the port of the device is flagged
with ATA_FLAG_NO_DIPM. ata_dev_config_lpm() is called from
ata_dev_configure(), ensuring that a device DIPM feature is disabled
when it cannot be used.
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20250701125321.69496-2-dlemoal@kernel.org
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions