All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/3] ata: ahci: Add new board low_power_no_debounce_delay
@ 2022-03-21 21:24 Paul Menzel
  2022-03-21 21:24 ` [PATCH v2 2/3] ata: ahci: Skip 200 ms debounce delay for AMD FCH SATA Controller Paul Menzel
  2022-03-21 21:24 ` [PATCH v2 3/3] ata: ahci: Skip 200 ms debounce delay for AMD 300 Series Chipset " Paul Menzel
  0 siblings, 2 replies; 23+ messages in thread
From: Paul Menzel @ 2022-03-21 21:24 UTC (permalink / raw)
  To: Damien Le Moal
  Cc: Paul Menzel, Hans de Goede, Mario Limonciello, linux-ide, linux-kernel

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@molgen.mpg.de>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Mario Limonciello <mario.limonciello@amd.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


^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2022-09-21 19:19 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-21 21:24 [PATCH v2 1/3] ata: ahci: Add new board low_power_no_debounce_delay Paul Menzel
2022-03-21 21:24 ` [PATCH v2 2/3] ata: ahci: Skip 200 ms debounce delay for AMD FCH SATA Controller Paul Menzel
2022-03-21 21:24 ` [PATCH v2 3/3] ata: ahci: Skip 200 ms debounce delay for AMD 300 Series Chipset " Paul Menzel
2022-03-21 21:51   ` Limonciello, Mario
2022-03-23  5:01     ` Damien Le Moal
2022-03-23  6:55       ` Paul Menzel
2022-03-23  8:24         ` Damien Le Moal
2022-03-23  8:36           ` Paul Menzel
2022-03-31 14:42             ` Paul Menzel
2022-03-31 23:04               ` Damien Le Moal
2022-04-01  5:18                 ` Paul Menzel
2022-04-01  7:23                   ` Damien Le Moal
2022-05-31 16:18                     ` Paul Menzel
2022-05-31 16:21                       ` Paul Menzel
2022-05-31 16:24                         ` Paul Menzel
2022-06-01  8:58                       ` Damien Le Moal
2022-08-30  9:05                         ` Paul Menzel
2022-08-31 22:13                           ` Damien Le Moal
2022-09-13 15:23                             ` Paul Menzel
2022-09-13 15:28                               ` Limonciello, Mario
2022-09-14  8:26                                 ` Damien Le Moal
2022-09-21  5:01                                 ` Damien Le Moal
2022-09-21 19:18                                   ` Niklas Cassel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.