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 E51282DCF61; Wed, 4 Feb 2026 15:08:26 +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=1770217707; cv=none; b=HRvlzUGN/i1FvNljATHVqFWlGONg8A4wtAYxdrGCYCiHVpFhD8nGJng47qBSnNZoxF5xDtIOzOm20EfMTvzEV+R1/WYWRB0h6V7ZEFgzL366WGi5P5QRowfgxD2Kg60FenviDLEXBZovkc/g53LT+FNXzUA8l98ANBepCsrIMJE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217707; c=relaxed/simple; bh=I94jVX0DJTshUsH6Wg5jJ6aEBo9tKAcRLnzJlpHBDSE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XzQtlOsuE4OASc+6kBfxmu530+4Gb58XBIgpwzcshlnielquX9/uSsTSCg8+7RURUdI9fkxm0Gp6g346cdhlpMajoYQFxiyjz5WbXB1obf21QpCjJ4VR8GeBNuTpmbyJ+WWBTLgoopkCRbTcnx3kiS+ePBC18DnWx0f/3JD3/2g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=j+n3HPAX; 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="j+n3HPAX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71F29C19424; Wed, 4 Feb 2026 15:08:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770217706; bh=I94jVX0DJTshUsH6Wg5jJ6aEBo9tKAcRLnzJlpHBDSE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j+n3HPAXCGNE4WWsp2ZFCX3mASRXlsyGyBsiklFrJR0HyskqoGI2R0+cRhS82eQ2C QpmY8UxBBLaBOMuNrpyvICVcTNm2XFSI7pbnOIUWHdV1pnIy30iIb/FHApFkR/YjwE LTf60poZZIizkE/ELTYh8DI89WXSavFT9qQ+xUB8= 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.1 095/280] ata: libata: Call ata_dev_config_lpm() for ATAPI devices Date: Wed, 4 Feb 2026 15:37:49 +0100 Message-ID: <20260204143913.072241669@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143909.614719725@linuxfoundation.org> References: <20260204143909.614719725@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.1-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 Stable-dep-of: c8c6fb886f57 ("ata: libata: Print features also for ATAPI devices") 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 1277b80726535..3fb7f7a5181a9 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -2882,6 +2882,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