From patchwork Wed Nov 2 08:38:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1698049 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4N2L081NtMz23lk for ; Wed, 2 Nov 2022 19:39:04 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1oq9Gx-0005Nq-HG; Wed, 02 Nov 2022 08:38:55 +0000 Received: from mail-ed1-f42.google.com ([209.85.208.42]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1oq9Gw-0005NV-66 for kernel-team@lists.ubuntu.com; Wed, 02 Nov 2022 08:38:54 +0000 Received: by mail-ed1-f42.google.com with SMTP id z18so20308916edb.9 for ; Wed, 02 Nov 2022 01:38:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ao4pK8OYnugvtgF8+K6CiJtxj1vp2RFu0hZB2DcCx6g=; b=kCX0mwqmKmijUY1uqsslphdzdnK44Ddo8G/KP4pO6iy7D/5FQo9gw5u2kFz6ND2PiB 1NGcJEz8I0cdMQ8zcrk+26PYh9wMZVrrlwGM+sftP91OLIQUog7DxaGRMTU6D1LkN8Uu KESI0MAThB6qeBh7zOhvEIhsaMGHxEvJx5VN32o2MPbBSIzI02XjL+ICTY12djms9u0w e79Vh+W7iC7IRniEfFnQyaFSMj6ZYFR1l9GXbgnD60V9peh6jUs9ow5JQ3Cn1jOP7u94 Pu/MJU/EXNntpaWaRfn0TyRBA1mR69VMfjloT3u288WI+t8ZqOfjoVsHtVYP+Jl2bLe1 rMhg== X-Gm-Message-State: ACrzQf3ZJ6kTtJD7WQvxoXLXqMy+qUHb6EhqWOMORtaO0nIvLDRCDZmH Id6R2CcD0hQ6Zbiula8+oVb/3gpgjDvdR/ZD X-Google-Smtp-Source: AMsMyM4T3bHxi3Om51AZ7kM4X16czOaYMZYDwd4zYwe/iBuR3XcGKqCOKhgwgs5/hgI5gWifagocUg== X-Received: by 2002:aa7:cc8a:0:b0:45b:f851:2943 with SMTP id p10-20020aa7cc8a000000b0045bf8512943mr24077433edt.103.1667378333162; Wed, 02 Nov 2022 01:38:53 -0700 (PDT) Received: from localhost.localdomain ([213.29.99.90]) by smtp.gmail.com with ESMTPSA id j9-20020aa7c0c9000000b004587f9d3ce8sm5485333edp.56.2022.11.02.01.38.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 01:38:52 -0700 (PDT) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH v2 1/1][SRU][Unstable/Kinetic/OEM-6.0] UBUNTU: SAUCE: t7xx: skip suspend to AP-CLDMA Date: Wed, 2 Nov 2022 16:38:50 +0800 Message-Id: <20221102083850.550342-2-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221102083850.550342-1-vicamo.yang@canonical.com> References: <20221102083850.550342-1-vicamo.yang@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.208.42; envelope-from=vicamo@gmail.com; helo=mail-ed1-f42.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: "Sethuraman, Muralidharan" BugLink: https://bugs.launchpad.net/bugs/1990700 The t7xx contains two Cross Layer DMA (CLDMA) interfaces to communicate with AP and Modem processors respectively. So far only MD-CLDMA was being used, and the other AP-CLDMA is to be enabled in following fixes. This patch skips suspend command to AP-CLDMA that actually fails. Signed-off-by: You-Sheng Yang (vicamo) --- drivers/net/wwan/t7xx/t7xx_pci.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/net/wwan/t7xx/t7xx_pci.c b/drivers/net/wwan/t7xx/t7xx_pci.c index 871f2a27a398..1b5bc5f57a76 100644 --- a/drivers/net/wwan/t7xx/t7xx_pci.c +++ b/drivers/net/wwan/t7xx/t7xx_pci.c @@ -308,13 +308,6 @@ static int __t7xx_pci_pm_suspend(struct pci_dev *pdev) goto abort_suspend; } - ret = t7xx_send_pm_request(t7xx_dev, H2D_CH_SUSPEND_REQ_AP); - if (ret) { - t7xx_send_pm_request(t7xx_dev, H2D_CH_RESUME_REQ); - dev_err(&pdev->dev, "[PM] SAP suspend error: %d\n", ret); - goto abort_suspend; - } - list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { if (entity->suspend_late) entity->suspend_late(t7xx_dev, entity->entity_param);