diff options
| author | Niklas Cassel <[email protected]> | 2025-05-15 13:56:24 +0000 |
|---|---|---|
| committer | Damien Le Moal <[email protected]> | 2025-05-20 09:20:40 +0000 |
| commit | 62eef53ab5ede2dba18ce4c5e7d031e05ab74025 (patch) | |
| tree | 50e9dd9b8025fa09cd1efa9bf990257d91f81ec8 /drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | |
| parent | ata: libata-eh: Update DIPM comments to reflect reality (diff) | |
| download | kernel-62eef53ab5ede2dba18ce4c5e7d031e05ab74025.tar.gz kernel-62eef53ab5ede2dba18ce4c5e7d031e05ab74025.zip | |
ata: libata-eh: Add ata_eh_set_lpm() WARN_ON_ONCE
link->lpm_policy is initialized to ATA_LPM_UNKNOWN in ata_eh_reset().
ata_eh_set_lpm() is then only called if
link->lpm_policy != ap->target_lpm_policy (after reset)
and then only if link->lpm_policy > ATA_LPM_MAX_POWER (before
revalidation).
This means that ata_eh_set_lpm() is currently never called with
policy == ATA_LPM_UNKNOWN.
Add a WARN_ON_ONCE so that it is more obvious from reading the code that
this function is never called with policy == ATA_LPM_UNKNOWN.
Signed-off-by: Niklas Cassel <[email protected]>
Signed-off-by: Damien Le Moal <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c')
0 files changed, 0 insertions, 0 deletions
