Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp12215lqk; Wed, 13 Mar 2024 14:47:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHdnGbsP2okaApe2pYP5r5CmEziHS8OZ0cSzjK9eepH/CAKwIkk8327sRz3vv8TRmkDftmodIqyp47ko6ehu/vW1WFPC9/gUrlav4Azg== X-Google-Smtp-Source: AGHT+IEJ8mzFJegMA7BFwT26MpNeVr5I1tZNHGSDnfA2WrKsF8m3r00CuiyFxH6lpzP63WMC3hHh X-Received: by 2002:a17:902:e551:b0:1d9:6de3:9980 with SMTP id n17-20020a170902e55100b001d96de39980mr49929plf.48.1710366428677; Wed, 13 Mar 2024 14:47:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710366428; cv=pass; d=google.com; s=arc-20160816; b=A0S0mXPstTQOMHljvb0rW1XzOWXzBNgtuUavRtCHJVD1JPT/DMWiRLb+Q/lSwLgacg xAYKKWl+eEFH9UD1+thS/iIumBXdaS/vkZOhwYzgXxbS6Hg8LoDejzzqQ+glceT06e+o jdbmxrXhgWMTIXd/OYRG31Bm5RhkkzQZHVPQAY1T8lH5zOB41k9LhDZXy7x1NXoO9kTW hwyEj8cfbIkI3Gp3yUvXlvGyT6QMf4KsXUbqUgCmzFBFagHZM9SoOGvnjqrkFHHaLIDZ O4QgC0UvZiGzLoQVIXkY28381qud3qlUrFfZP5fmQcCiyeZKqjvTlXtLpgswWxol+fq1 u6bQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:reply-to:message-id:date:subject :cc:to:from; bh=LK68d8ab86pQdYwYmg+ja4olAx5jxV4yimo6g54Rhio=; fh=gO//bN7SWuFTDbriuXttczmKdXq8MEwtfz72lCTTBRM=; b=V5IuoWQ+z30MJ2LLHZz11vlna7cblPcLzaTohzT2HgatvKb7b/ak/+xYghUfCJfMXk r8M9Z9x2u7GJKd4oc5EiRYMwpbwBweL23q1Q0m23D7kL/H8FkBk3AptGmS/Gmc2ZmEYQ 4SrlznizuadWFwzs/2HeavNUrmCYU/kUsVeQq/kldB0izdGNs5DDtVnVZat0myFGlyhb FQTaPvBOBs7nY8bcKlwSv9VIo7mX8wy28rI+/c4fR7JwKEf4k2k/JEB4GaTa6Er/lRto Y+tJYj6n/Ja8OOhuXVeV1eYtODs7HxOmfXdpCysj+8QD11FiNTN/GeNmdc5q2BQ2g9Au B8nA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gentoo.org dmarc=pass fromdomain=gentoo.org); spf=pass (google.com: domain of linux-kernel+bounces-102549-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102549-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z4-20020a170902ccc400b001dc6233d864si129325ple.564.2024.03.13.14.47.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 14:47:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102549-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gentoo.org dmarc=pass fromdomain=gentoo.org); spf=pass (google.com: domain of linux-kernel+bounces-102549-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102549-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5EAE3287F70 for ; Wed, 13 Mar 2024 21:47:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E1D556B77; Wed, 13 Mar 2024 21:47:03 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 523A154BD3; Wed, 13 Mar 2024 21:47:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710366422; cv=none; b=q0D4hCSL2rSw1MyNmOV/W+yOxPjNUug9rg5NgGcV2GKAuymYX3PozzuLsTZveMZBVeTRrg7QK84EVJQProCeNHvphpjcRjMykbe4RNH8OAqNUV+GNmY7J73iQompp8P1508uwPYWxQcL2CWU/tkassyYxBhBzh1FUocIAXECIhk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710366422; c=relaxed/simple; bh=YnTsv4l7YntrlQny1K+MvgOeYZrWvQDqmF/Vt3RmSIE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gqixkebpR9SdomXhrL/CEPtQwevlCS+ZGPBP8NMc19i1CbxBym49mtjph/6vzFMo6IK/xX1xvxKrhzvoPa0nMCkMsmy1hgO45cn1fStp5odtK0W9rNWytjuX9j5MgBbdyrUxrLyWkfIFhbmz27Mb5yZHsjoD6DuVuKfjLpXFAJ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org From: Conrad Kostecki To: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, dlemoal@kernel.org, hdegoede@redhat.com, cryptearth@googlemail.com Subject: [PATCH] ahci: asm1064: asm1166: don't limit reported ports Date: Wed, 13 Mar 2024 22:46:50 +0100 Message-ID: <20240313214650.2165-1-conikost@gentoo.org> X-Mailer: git-send-email 2.44.0 Reply-To: linux-ide@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Previously, patches have been added to limit the reported count of SATA ports for asm1064 and asm1166 SATA controllers, as those controllers do report more ports than physical having. Unfortunately, this causes trouble for users, which are using SATA controllers, which provide more ports through SATA PMP (Port-MultiPlier) and are now not any more recognized. This happens, as asm1064 and 1166 are handling SATA PMP transparently, so all non-physical ports needs to be enabled to use that feature. This patch reverts both patches for asm1064 and asm1166, so old behavior is restored and SATA PMP will work again, so all physical and non-physical ports will work again. Fixes: 0077a504e1a4 ("ahci: asm1166: correct count of reported ports") Fixes: 9815e3961754 ("ahci: asm1064: correct count of reported ports") Cc: stable@vger.kernel.org Reported-by: Matt Signed-off-by: Conrad Kostecki --- drivers/ata/ahci.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 78570684ff68..562302e2e57c 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -669,19 +669,6 @@ MODULE_PARM_DESC(mobile_lpm_policy, "Default LPM policy for mobile chipsets"); static void ahci_pci_save_initial_config(struct pci_dev *pdev, struct ahci_host_priv *hpriv) { - if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA) { - switch (pdev->device) { - case 0x1166: - dev_info(&pdev->dev, "ASM1166 has only six ports\n"); - hpriv->saved_port_map = 0x3f; - break; - case 0x1064: - dev_info(&pdev->dev, "ASM1064 has only four ports\n"); - hpriv->saved_port_map = 0xf; - break; - } - } - if (pdev->vendor == PCI_VENDOR_ID_JMICRON && pdev->device == 0x2361) { dev_info(&pdev->dev, "JMB361 has only one port\n"); hpriv->saved_port_map = 1; -- 2.44.0