From nobody Sun Jun 28 07:39:11 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9FE3AC433F5 for ; Thu, 10 Feb 2022 16:55:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238331AbiBJQzc (ORCPT ); Thu, 10 Feb 2022 11:55:32 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244722AbiBJQz3 (ORCPT ); Thu, 10 Feb 2022 11:55:29 -0500 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91D4C97 for ; Thu, 10 Feb 2022 08:55:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1644512131; x=1676048131; h=from:to:cc:subject:date:message-id; bh=34AVyp8D/2rTg5gc6PV5wOhGYBVl0qG8WJ975vzlQOc=; b=XW3J/udIS+h4dY3tdC7tlt8vTXBg5l2iHJdJwIJdkRFqzFwxGodCLjuV y433eiecGdxnU0qF+9swMr2L9hpZsMbygRJK85qx0yfto0lKglQ4D8sQJ Kmh7FT404KhNWx+zlRBpBs3T0dejD4ahcx08Nby8gA8bSwBQnytXns9zi k=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 10 Feb 2022 08:55:30 -0800 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 10 Feb 2022 08:55:14 -0800 X-QCInternal: smtphost Received: from maggarwa.ap.qualcomm.com (HELO nitirawa-linux.qualcomm.com) ([10.206.25.176]) by ironmsg02-blr.qualcomm.com with ESMTP; 10 Feb 2022 22:25:07 +0530 Received: by nitirawa-linux.qualcomm.com (Postfix, from userid 2342877) id 739773C37; Thu, 10 Feb 2022 22:25:06 +0530 (IST) From: Nitin Rawat To: Keith Busch , Jens Axboe , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Nitin Rawat , Shaik Sajida Bhanu Subject: [PATCH v2] nvme/pci: Add quick suspend quirk for Sc7280 Platform Date: Thu, 10 Feb 2022 22:25:04 +0530 Message-Id: <1644512104-24035-1-git-send-email-quic_nitirawa@quicinc.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Enable quick suspend quirks for Sc7280 platform, where power to nvme device is removed during suspend-resume process. This is done to avoid the failure dring resume. This enables simple suspend path for this platform. Signed-off-by: Nitin Rawat Signed-off-by: Shaik Sajida Bhanu --- Change from v1-v2: *Moving the check condition outside vendor/device check to make this platform specific --- drivers/nvme/host/pci.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 6a99ed6..fa25d9fab 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -3032,6 +3032,13 @@ static unsigned long check_vendor_combination_bug(st= ruct pci_dev *pdev) if ((dmi_match(DMI_BOARD_VENDOR, "LENOVO")) && dmi_match(DMI_BOARD_NAME, "LNVNB161216")) return NVME_QUIRK_SIMPLE_SUSPEND; + } else if (of_machine_is_compatible("qcom,sc7280")) { + /* + * Append quick suspend quirks for sc7280 platforms + * so that simple suspend path is executed for this + * platform to avoid any resume failure. + */ + return NVME_QUIRK_SIMPLE_SUSPEND; } return 0; -- 2.7.4