Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2309710pxp; Mon, 21 Mar 2022 16:33:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9DymG0uJ+Yr1CqDx4U1SbQPPWUxeCGr6k4mEN73c4ul6guzRLSuKeHOguhM97fQX+iRDr X-Received: by 2002:a63:5145:0:b0:381:4051:1f5a with SMTP id r5-20020a635145000000b0038140511f5amr20103283pgl.300.1647905627911; Mon, 21 Mar 2022 16:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647905627; cv=none; d=google.com; s=arc-20160816; b=W76ZZcS7aeIwp5PXzm3eCyWEhPZlRXUD1MlctzKSCXvNq2nPNpd4FU0W5S7NvKuyQh /QhrXuFtvtrBDY4zCq/R6aZVIHusOC7FmFhQ2I2jG2WXAhQXAmwoIcfliTAqXipg2Ho8 iJFROybdNPvr+5tbRZQ/EhrfNFywCvQEMwQNQd71Y1F4vIAQScnyPOVtHOalNJYUMu77 6cEO9Jlu5ymts0KXrdY4HyT0dXEcbl7NkTQAyBqIpM3VxXogirAdhxnfl/SuTDIa+G0P GwmIOvXUK6KT/YX8KSSlSxQ7DRkB7zKv/AUr6bb8d6zu4GCJmceTizdq7+yaEZwLS7XL oh9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=94sxKXrXVi+XA3hYj5eeyXSbkYRJJAd+YWY7XcW1dMc=; b=Ta3AJLqGkkCHotnl8xZYNystEPJYOJ3wcTXByVocJodg5kDxWBxXBUTcRP9rrGlwvG k+u0zPtjfMPgpOYBWHxD8WLWWKPFGDUnuyBmoU2+DUvaQ+1MS7GEUafNjtIcVubyhiJi k/v/fHGl7B7FGoCylVT/3PUtNA1FcdeuLMHddtr559s2QhfQgH26mKvWpN9TGSMSewzh nfcKboBAunWETUBtpQVW/z9PyUSoc+vjH3glKSgeUpo9iX+1G7zPDay4IjzxG1vf36nt i4bF+YVUg13rdJs8LkytiAB0/+FdHhQtLIq+WZtIIA+FG1qpaJeUh71GTLUhekolefSo rI8w== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b17-20020a63eb51000000b003816043eeebsi2406166pgk.224.2022.03.21.16.33.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 16:33:47 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 88BB847DB6F; Mon, 21 Mar 2022 15:24:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230192AbiCUV1I (ORCPT + 99 others); Mon, 21 Mar 2022 17:27:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbiCUV1G (ORCPT ); Mon, 21 Mar 2022 17:27:06 -0400 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2913E3458FA; Mon, 21 Mar 2022 14:25:27 -0700 (PDT) Received: from handsomejack.molgen.mpg.de (handsomejack.molgen.mpg.de [141.14.17.248]) by mx.molgen.mpg.de (Postfix) with ESMTP id 869DC61E6478B; Mon, 21 Mar 2022 22:25:21 +0100 (CET) From: Paul Menzel To: Damien Le Moal Cc: Paul Menzel , Hans de Goede , Mario Limonciello , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] ata: ahci: Add new board low_power_no_debounce_delay Date: Mon, 21 Mar 2022 22:24:30 +0100 Message-Id: <20220321212431.13717-1-pmenzel@molgen.mpg.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Hans de Goede Cc: Mario Limonciello --- 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