From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ECFA72FE044; Wed, 28 Jan 2026 15:50:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769615445; cv=none; b=DTSdgsz85e2sTD1jF/xG8oNusIKyeXm+Sc/92z4wCD2jbSgx8kMKGm8E74yY6urcL20vih2J3R8pY9efQqm3E+wXZI4/bQ2PRZWD1/W6w0MuaYVIqpPqIpywA6INb2Z3ZfgU6/NAm9kqlTBEx3okwZNAQmc/4FCNW9NaG1ToK34= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769615445; c=relaxed/simple; bh=AIeXJKwx2MdNMJRbSO/ne61IFOMjWJpcgojp5Hf8LUQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=q34G6HRjw+QTJELUXp8K7KTVdPxeWzbpBhm6E5diC2myzCZC+GywBMqRxL8KO4NOx3Z9SusYUmVdvMercEAwtHqwxle9J13ynAEaE9c5KpVot9tyxp1wDC1tQveVyGW43rUIpbC9XosboKIqPMSHCwDcHSoEU+ZK8iVZzOoMOsE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kxmU6Zii; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="kxmU6Zii" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62592C4CEF1; Wed, 28 Jan 2026 15:50:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769615444; bh=AIeXJKwx2MdNMJRbSO/ne61IFOMjWJpcgojp5Hf8LUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kxmU6Ziil+y1Xv4dW/Ti4UekwtPvdCRN6zD0yqC/Rr48uvF4U8biiXyVfeq/55Ixj IndxPmYOnFshhrZHxT8Kacp5anDdHq9FSLBquYAC/S2+Y175ZeC8yn+5VDi5IyiWP4 IRvniMRRmJph96xOCrG08alxMPq8xL2YMZUqRTT8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Niklas Cassel , Wolf , Damien Le Moal , Sasha Levin Subject: [PATCH 6.18 012/227] ata: libata: Call ata_dev_config_lpm() for ATAPI devices Date: Wed, 28 Jan 2026 16:20:57 +0100 Message-ID: <20260128145344.782098855@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260128145344.331957407@linuxfoundation.org> References: <20260128145344.331957407@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Niklas Cassel [ Upstream commit 8f3fb33f8f3f825c708ece800c921977c157f9b6 ] Commit d360121832d8 ("ata: libata-core: Introduce ata_dev_config_lpm()") introduced ata_dev_config_lpm(). However, it only called this function for ATA_DEV_ATA and ATA_DEV_ZAC devices, not for ATA_DEV_ATAPI devices. Additionally, commit d99a9142e782 ("ata: libata-core: Move device LPM quirk settings to ata_dev_config_lpm()") moved the LPM quirk application from ata_dev_configure() to ata_dev_config_lpm(), causing LPM quirks for ATAPI devices to no longer be applied. Call ata_dev_config_lpm() also for ATAPI devices, such that LPM quirks are applied for ATAPI devices with an entry in __ata_dev_quirks once again. Fixes: d360121832d8 ("ata: libata-core: Introduce ata_dev_config_lpm()") Fixes: d99a9142e782 ("ata: libata-core: Move device LPM quirk settings to ata_dev_config_lpm()") Signed-off-by: Niklas Cassel Tested-by: Wolf Signed-off-by: Damien Le Moal Signed-off-by: Sasha Levin --- drivers/ata/libata-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 1216b4f2eb904..0a21804b133a4 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -3116,6 +3116,8 @@ int ata_dev_configure(struct ata_device *dev) ata_mode_string(xfer_mask), cdb_intr_string, atapi_an_string, dma_dir_string); + + ata_dev_config_lpm(dev); } /* determine max_sectors */ -- 2.51.0