Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp965608pxb; Fri, 28 Jan 2022 14:24:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrTHfuJY9LjugBiOeASpp8S1xCz2PoEErXDaeypL9QP8w849690AD3MDxpFhUCwnlbSS/C X-Received: by 2002:a17:902:b704:: with SMTP id d4mr10340091pls.171.1643408665411; Fri, 28 Jan 2022 14:24:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643408665; cv=none; d=google.com; s=arc-20160816; b=hchwM8mN5a8Pl9AqADVHhKLqZN4xZVIXUeGtD8dUrlI5wSHTHpCFGSXMm1e5xBkVNA v4/cl+I9pSlRXISmHcUrUH9AvfIQdzAxjXjhTduUIXC7HNGN13MZqKrm8sUqTF6VmIPF JepLJh+do5FzDxz8Ax2dxrZxL+P8/BKQ1gOSsgHd28/8dOVnrzWkQs7M11bHpAyyaUOn RzJhonqG90Vy+wufq/Y3g9IIH1PA+o7vWm6r9y+8dontM7TyaTFBe6L8z5Dg6s+BMayh lks/qasZEWirvO2GQdmwsJNvHl457uJU85nLeMTDjKtJqNujWAgpQaNZ6eNbmZU/70ij fM0Q== 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=n3lS3qqPXOaydHStwfs6P5GOM3c4CVY0nx/P8q/HzCc=; b=z8J+7wuBOwR5zC6Be0LUucsC/VwT8YuYULMhRdSX2F51aOhtu9fHO2EeDvzl90TT1i JDmU0mS2i6ROAcUqCwW0FjgcaEbxGJuthk/iPnyDtS+LV4yXTUmK1tPByScwRR3TSw+y D0OFVEyNpjnIrY3StGVH3ho8LrImsnmxnT5PuCcIXhxqFhIdFJAWs7f3anM/Bn583sp6 XZlouzAwbqstWCi8UAOIDpXI8u0ZPh5MXGKZ0J/DIumxNe6DqG58IGdwavm8lLWZQH8q moE5E0pkOAI9gnmNnWJB1kgneyD0/+Y58C8AgTiXwz2iinmorc36xJuLR3of6g9nTPr0 WziQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q21si3150739plr.545.2022.01.28.14.24.14; Fri, 28 Jan 2022 14:24:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241139AbiA0Xfr (ORCPT + 99 others); Thu, 27 Jan 2022 18:35:47 -0500 Received: from mx3.molgen.mpg.de ([141.14.17.11]:50089 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S240787AbiA0Xfn (ORCPT ); Thu, 27 Jan 2022 18:35:43 -0500 Received: from localhost.localdomain (ip5f5aeaa8.dynamic.kabel-deutschland.de [95.90.234.168]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 9853061E6478B; Fri, 28 Jan 2022 00:35:41 +0100 (CET) From: Paul Menzel To: Damien Le Moal Cc: Paul Menzel , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ata: ahci: Skip 200 ms debounce delay for Marvell 88SE9235 Date: Fri, 28 Jan 2022 00:35:26 +0100 Message-Id: <20220127233527.445659-1-pmenzel@molgen.mpg.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 200 ms delay before debouncing the PHY in `sata_link_resume()` is not needed for the Marvell 88SE9235. $ lspci -nn -s 0021:0e:00.0 0021:0e:00.0 SATA controller [0106]: Marvell Technology Group Ltd. 88SE9235 PCIe 2.0 x2 4-port SATA 6 Gb/s Controller [1b4b:9235] (rev 11) So, remove it. Tested on IBM S822LC with current Linux 5.17-rc1: Without this patch (with 200 ms delay): [ 3.358158] ata1: SATA max UDMA/133 abar m2048@0x3fe881000000 port 0x3fe881000100 irq 39 [ 3.358175] ata2: SATA max UDMA/133 abar m2048@0x3fe881000000 port 0x3fe881000180 irq 39 [ 3.358191] ata3: SATA max UDMA/133 abar m2048@0x3fe881000000 port 0x3fe881000200 irq 39 [ 3.358207] ata4: SATA max UDMA/133 abar m2048@0x3fe881000000 port 0x3fe881000280 irq 39 […] [ 3.677542] ata3: SATA link down (SStatus 0 SControl 300) [ 3.677719] ata4: SATA link down (SStatus 0 SControl 300) [ 3.839242] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300) [ 3.839828] ata2.00: ATA-10: ST1000NX0313 00LY266 00LY265IBM, BE33, max UDMA/133 [ 3.840029] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 32), AA [ 3.841796] ata2.00: configured for UDMA/133 [ 3.843231] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300) [ 3.844083] ata1.00: ATA-10: ST1000NX0313 00LY266 00LY265IBM, BE33, max UDMA/133 [ 3.844313] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 32), AA [ 3.846043] ata1.00: configured for UDMA/133 With patch (no delay): [ 3.624259] ata1: SATA max UDMA/133 abar m2048@0x3fe881000000 port 0x3f e881000100 irq 39 [ 3.624436] ata2: SATA max UDMA/133 abar m2048@0x3fe881000000 port 0x3f e881000180 irq 39 [ 3.624452] ata3: SATA max UDMA/133 abar m2048@0x3fe881000000 port 0x3f e881000200 irq 39 [ 3.624468] ata4: SATA max UDMA/133 abar m2048@0x3fe881000000 port 0x3f e881000280 irq 39 […] [ 3.731966] ata3: SATA link down (SStatus 0 SControl 300) [ 3.732069] ata4: SATA link down (SStatus 0 SControl 300) [ 3.897448] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300) [ 3.897678] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300) [ 3.898140] ata1.00: ATA-10: ST1000NX0313 00LY266 00LY265IBM, BE33, max UDMA/133 [ 3.898175] ata2.00: ATA-10: ST1000NX0313 00LY266 00LY265IBM, BE33, max UDMA/133 [ 3.898287] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 32), AA [ 3.898349] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 32), AA [ 3.900070] ata1.00: configured for UDMA/133 [ 3.900166] ata2.00: configured for UDMA/133 Signed-off-by: Paul Menzel --- drivers/ata/ahci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index ab5811ef5a53..edca4e8fd44e 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -582,6 +582,8 @@ static const struct pci_device_id ahci_pci_tbl[] = { .driver_data = board_ahci_yes_fbs }, { PCI_DEVICE(PCI_VENDOR_ID_MARVELL_EXT, 0x9230), .driver_data = board_ahci_yes_fbs }, + { PCI_DEVICE(PCI_VENDOR_ID_MARVELL_EXT, 0x9235), + .driver_data = board_ahci_no_debounce_delay }, { PCI_DEVICE(PCI_VENDOR_ID_TTI, 0x0642), /* highpoint rocketraid 642L */ .driver_data = board_ahci_yes_fbs }, { PCI_DEVICE(PCI_VENDOR_ID_TTI, 0x0645), /* highpoint rocketraid 644L */ -- 2.34.1