[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220321212431.13717-1-pmenzel@molgen.mpg.de>
Date: Mon, 21 Mar 2022 22:24:30 +0100
From: Paul Menzel <pmenzel@...gen.mpg.de>
To: Damien Le Moal <damien.lemoal@...nsource.wdc.com>
Cc: Paul Menzel <pmenzel@...gen.mpg.de>,
Hans de Goede <hdegoede@...hat.com>,
Mario Limonciello <mario.limonciello@....com>,
linux-ide@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH v2 1/3] ata: ahci: Add new board low_power_no_debounce_delay
Some adapters do not require the default 200 ms debounce delay in
`sata_link_resume()`. So, create the new board
`board_ahci_low_power_no_debounce_delay` with the link flag
`ATA_LFLAG_NO_DEBOUNCE_DELAY`.
Signed-off-by: Paul Menzel <pmenzel@...gen.mpg.de>
Cc: Hans de Goede <hdegoede@...hat.com>
Cc: Mario Limonciello <mario.limonciello@....com>
---
v2: Resend
drivers/ata/ahci.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 84456c05e8452..0fc09b86a5590 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -51,6 +51,7 @@ enum board_ids {
board_ahci,
board_ahci_ign_iferr,
board_ahci_low_power,
+ board_ahci_low_power_no_debounce_delay,
board_ahci_no_debounce_delay,
board_ahci_nomsi,
board_ahci_noncq,
@@ -142,6 +143,14 @@ static const struct ata_port_info ahci_port_info[] = {
.udma_mask = ATA_UDMA6,
.port_ops = &ahci_ops,
},
+ [board_ahci_low_power_no_debounce_delay] = {
+ AHCI_HFLAGS (AHCI_HFLAG_USE_LPM_POLICY),
+ .flags = AHCI_FLAG_COMMON,
+ .link_flags = ATA_LFLAG_NO_DEBOUNCE_DELAY,
+ .pio_mask = ATA_PIO4,
+ .udma_mask = ATA_UDMA6,
+ .port_ops = &ahci_ops,
+ },
[board_ahci_no_debounce_delay] = {
.flags = AHCI_FLAG_COMMON,
.link_flags = ATA_LFLAG_NO_DEBOUNCE_DELAY,
--
2.30.2
Powered by blists - more mailing lists