From: Paul Menzel <pmenzel@molgen.mpg.de>
To: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Cc: linux-ide@vger.kernel.org, Paul Menzel <pmenzel@molgen.mpg.de>,
linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] ata: Warn about removal of debounce delay in Linux 5.19
Date: Thu, 13 Jan 2022 16:46:35 +0100 [thread overview]
Message-ID: <20220113154635.17581-3-pmenzel@molgen.mpg.de> (raw)
In-Reply-To: <20220113154635.17581-1-pmenzel@molgen.mpg.de>
The delay is only needed for a few buggy chipsets (PHYs(?)). As 200 ms
is quite a lot in today times, announce the change of the default in
Linux 5.19, and call for tests and reports.
---
drivers/ata/libata-sata.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/ata/libata-sata.c b/drivers/ata/libata-sata.c
index 29a815e2b7248..026ffcfaeaf26 100644
--- a/drivers/ata/libata-sata.c
+++ b/drivers/ata/libata-sata.c
@@ -318,9 +318,13 @@ int sata_link_resume(struct ata_link *link, const unsigned long *params,
* debouncing. Duration can be configured with module
* parameter debounce_delay_ms.
*/
- if (!(link->flags & ATA_LFLAG_NO_DEBOUNCE_DELAY))
+ if (!(link->flags & ATA_LFLAG_NO_DEBOUNCE_DELAY)) {
ata_msleep(link->ap,
(libata_debounce_delay_ms < 0) ? 200 : libata_debounce_delay_ms);
+ if (libata_debounce_delay_ms < 0)
+ /* negative values are default */
+ ata_link_warn(link, "Due to historical reasons a 200 ms delay is applied in sata_link_resume(). Most controllers do not need that, so the default will change to 0 ms in Linux 5.19. Please test with lower values using libata.debounce_delay_ms and report the results <linux-ide@vger.kernel.org>.\n");
+ }
/* is SControl restored correctly? */
if ((rc = sata_scr_read(link, SCR_CONTROL, &scontrol)))
--
2.30.2
next prev parent reply other threads:[~2022-01-13 15:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-13 15:46 [PATCH 0/2][RFC] Make delay before debouncing configurable Paul Menzel
2022-01-13 15:46 ` [PATCH 1/2] ata: Add module parameter `debounce_delay_ms` Paul Menzel
2022-01-13 15:46 ` Paul Menzel [this message]
2022-01-14 9:23 ` [PATCH 0/2][RFC] Make delay before debouncing configurable Damien Le Moal
2022-01-19 17:57 ` Robin H. Johnson
2022-01-20 0:14 ` Damien Le Moal
2022-02-14 7:09 ` Paul Menzel
2022-02-14 17:50 ` Robin H. Johnson
[not found] ` <7187af82-3d35-0094-f998-7d20bfc5192f@molgen.mpg.de>
2022-02-25 1:15 ` Damien Le Moal
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=20220113154635.17581-3-pmenzel@molgen.mpg.de \
--to=pmenzel@molgen.mpg.de \
--cc=damien.lemoal@opensource.wdc.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@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