From: Hannes Reinecke <hare@suse.de>
To: Damien Le Moal <dlemoal@kernel.org>,
linux-ide@vger.kernel.org, Niklas Cassel <cassel@kernel.org>
Subject: Re: [PATCH v3 01/10] ata: libata-core: Introduce ata_dev_config_lpm()
Date: Tue, 1 Jul 2025 16:10:51 +0200 [thread overview]
Message-ID: <85aabe97-d73f-4668-8e5d-564a36a57b15@suse.de> (raw)
In-Reply-To: <20250701125321.69496-2-dlemoal@kernel.org>
On 7/1/25 14:53, Damien Le Moal wrote:
> 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>
> ---
> drivers/ata/libata-core.c | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
next prev parent reply other threads:[~2025-07-01 14:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-01 12:53 [PATCH v3 00/10] Improve link power management Damien Le Moal
2025-07-01 12:53 ` [PATCH v3 01/10] ata: libata-core: Introduce ata_dev_config_lpm() Damien Le Moal
2025-07-01 14:10 ` Hannes Reinecke [this message]
2025-07-01 12:53 ` [PATCH v3 02/10] ata: libata-core: Move device LPM quirk settings to ata_dev_config_lpm() Damien Le Moal
2025-07-01 12:53 ` [PATCH v3 03/10] ata: libata-core: Advertize device support for DIPM and HIPM features Damien Le Moal
2025-07-01 12:53 ` [PATCH v3 04/10] ata: libata-eh: Avoid unnecessary resets when revalidating devices Damien Le Moal
2025-07-01 12:53 ` [PATCH v3 05/10] ata: libata-sata: Disallow changing LPM state if not supported Damien Le Moal
2025-07-01 12:53 ` [PATCH v3 06/10] ata: ahci: Disable DIPM if host lacks support Damien Le Moal
2025-07-01 12:53 ` [PATCH v3 07/10] ata: ahci: Disallow LPM policy control for external ports Damien Le Moal
2025-07-01 12:53 ` [PATCH v3 08/10] ata: ahci: Disallow LPM policy control if not supported Damien Le Moal
2025-07-01 12:53 ` [PATCH v3 09/10] ata: libata-core: Reduce the number of messages signaling broken LPM Damien Le Moal
2025-07-01 12:53 ` [PATCH v3 10/10] ata: libata_eh: Add debug messages to ata_eh_link_set_lpm() Damien Le Moal
2025-07-02 10:06 ` [PATCH v3 00/10] Improve link power management Niklas Cassel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85aabe97-d73f-4668-8e5d-564a36a57b15@suse.de \
--to=hare@suse.de \
--cc=cassel@kernel.org \
--cc=dlemoal@kernel.org \
--cc=linux-ide@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).