Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4698428pxb; Sat, 12 Feb 2022 15:14:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyIiu8PtVzdR7mkbGeMntcnSLtZ/7UvU2rHtnHQL79WQcyfdr+lvgf5mSq1YosyuIvY1Lwl X-Received: by 2002:a17:907:7faa:: with SMTP id qk42mr6282400ejc.377.1644707655605; Sat, 12 Feb 2022 15:14:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644707655; cv=none; d=google.com; s=arc-20160816; b=Ebc/RTbbTznWrP5DtLsCJ6/CwvaAvNNcjV3dsWsYKBszi1LbDOdq9mPWww9cwtLqA7 rS+owUKKi1WRrHBb3kaSurqircEFkYma528rjChJhwiefBhIihR73COdpW+6a4dWp8MM Aq7ZNJoM8AgRHNJ8UwoyO3JoJQgqCVe2niD4Zd/svihq+1F/VOCHZEb/X3fzu9ZWD/NY rQQDqzUzdx7AtYaJnThYc1A89QlQcMduWdnWq1RVrzCN8Vj5PO/tV3L31rXwIlKP5J/n kAacrJU7ZR5JMTWl6a8Bo9rZWgHJTRnUkYbWcqv3aU27RRJs6nDpGiHjpjKMvw80oDcH o/Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=jsiMHNGnwK5aOfnfdJPXvi+L/dETJi4cf0IWcHr0ezM=; b=Q8cl+COl1Q0uV5DEpmcefYXtwhAE9wuMpvmKDo/2xsfaY+Fj4F7unDfhuZVXKF1Bly 5ol3aHqmthALXog87sB9Cho2Uod4JI6Bvr5hVu9bpJpOd+J2OcYDFJjfyIhr+Ehusuck Hdr9xuv7/Od/y9OD7Gq99Fq6ya31GRE4eOPGSkdKPIoo1GmKCg8snRkEAOdcqU/tWrum E/ltVLrV0Rj52VuFu9K8gFzUwC1YMVtJlTxbb3bKmy11/2+IqrZKuPIT91+L3PnWvW4M 3apxVMgtAO5xxjmJP34QpyuHuJ4r0/nLTWXCH3tvW6fBT6fmS9hvvgVRMvBNSK3kT8JL hNPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="fyZzd6//"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cz23si3098720edb.559.2022.02.12.15.13.52; Sat, 12 Feb 2022 15:14:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="fyZzd6//"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344418AbiBJUxo (ORCPT + 95 others); Thu, 10 Feb 2022 15:53:44 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:60886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242216AbiBJUxm (ORCPT ); Thu, 10 Feb 2022 15:53:42 -0500 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 652111034 for ; Thu, 10 Feb 2022 12:53:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1644526423; x=1676062423; h=from:to:cc:subject:date:message-id; bh=jsiMHNGnwK5aOfnfdJPXvi+L/dETJi4cf0IWcHr0ezM=; b=fyZzd6//SwEeMAJ5amWLQKKiORYb8qofnPerweMDEWrnynCV/PdkaNa8 JPejTfi5GhwQUKxJEF89EJAVtrTvvlJLWF1qBEBEWyj7z2mFZvUp+utzD WoZKCyYxg+s5AVfqK2vD6lyAgY7T1EhXuad5/8DW7pfEpGfASnPndGRxr c=; Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 10 Feb 2022 12:53:43 -0800 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 10 Feb 2022 12:53:41 -0800 X-QCInternal: smtphost Received: from maggarwa.ap.qualcomm.com (HELO nitirawa-linux.qualcomm.com) ([10.206.25.176]) by ironmsg01-blr.qualcomm.com with ESMTP; 11 Feb 2022 02:23:31 +0530 Received: by nitirawa-linux.qualcomm.com (Postfix, from userid 2342877) id 5D1903B6F; Fri, 11 Feb 2022 02:23:30 +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 v3] nvme/pci: Add quick suspend quirk for Sc7280 Platform Date: Fri, 11 Feb 2022 02:23:28 +0530 Message-Id: <1644526408-10834-1-git-send-email-quic_nitirawa@quicinc.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 v2-v3: * changed if/else condition --- drivers/nvme/host/pci.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 6a99ed6..1dff749 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -3034,6 +3034,15 @@ static unsigned long check_vendor_combination_bug(struct pci_dev *pdev) return NVME_QUIRK_SIMPLE_SUSPEND; } + 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