Message ID | 20220221055257.1168996-4-alex.hung@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=nyE4I+ct; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=<UNKNOWN>) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4K2BL82ktbz9sFh for <incoming@patchwork.ozlabs.org>; Mon, 21 Feb 2022 16:53:20 +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 <kernel-team-bounces@lists.ubuntu.com>) id 1nM1dF-0000Gc-9l; Mon, 21 Feb 2022 05:53:09 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <alex.hung@canonical.com>) id 1nM1dB-0000E4-NY for kernel-team@lists.ubuntu.com; Mon, 21 Feb 2022 05:53:05 +0000 Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id B298E3F1A4 for <kernel-team@lists.ubuntu.com>; Mon, 21 Feb 2022 05:53:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1645422784; bh=/RlEous0KBUoU6M2CpTmZ2KZ69KIea4zqjGSFcWR8Kk=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=nyE4I+ct7hSAsS0Uw7HJ9QuUuBgpow1qtF9YjY2XRlDdnm19wPibtLnns2KugLB7c ed+Ze9iWHEn+0nfsuCtBcBeLLRaS0gzKzfvgCllDT2WR1Od2KGEHe4k2WEk6WA6SiD 352zgZCx1YCJpGIs+GY/7jCyHJTK5vkGQ+G67vz9YVcFHUS+B/rkp9+Riqn4tD7i+K CcIFkvNJ++YZvFRVdrpa2G3NXmw+ksPUKCFjxZyJpqjYWghI5/LqCehgBWo2mrWJMA 7nunUOYgtpJR716wIdPMU04xyl0bLIK29DmLbhjiAPNX+5Z0Anu2Cc3q6ULIrMLe5X cCjl6SUIUXxpA== Received: by mail-pl1-f199.google.com with SMTP id b5-20020a170902e94500b0014f6d0a417bso1722546pll.6 for <kernel-team@lists.ubuntu.com>; Sun, 20 Feb 2022 21:53:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/RlEous0KBUoU6M2CpTmZ2KZ69KIea4zqjGSFcWR8Kk=; b=X8AFZF+9uDKiEnOtmqfC5bujPUpLnNfvgTURhzbKUPOlu14H+76XSciGp8cIe5oJ0x 4tqQ6B3eUOiuSQ1gJJGWfxOcSOkJVd1qzOR8ApPF5TCacXi7mBjCVfCXiiqODhuG82p0 l82uqayFSK9Kdb6ogCyjLBj8aS42p1leCxiRx/wEqGkTKCbp6MQUs0xHeLW0UwO8pNO5 Ts3mZeLKDYLrS6hWEKROKGZVcqoiwQrK9HENTxPLJR1IF/X138ymID/QOVjdCn6keRdo Xec7AfJ+fcZ3EUJw0Eo4LtB75HuisSXmRwQNA804X0Ns3501N/MeZC7Swd1qyinJy7Tz gYSw== X-Gm-Message-State: AOAM530p8eucgOudq3eKcIt/4ng+OXoZoXYfXZyAPwKMZaYTPVTcCpig TlknI70MTpVB07Jx2AcdIHODxMh49CIK4UF4NiujCCFTcuryRCBGHCg5qYSZi0uP/E1jfowd0sk FImto6nUS4Qe/yO+986gGiMNwGkxK7Is9fhMrOQ5DUg== X-Received: by 2002:a17:902:854a:b0:14e:e053:c8b3 with SMTP id d10-20020a170902854a00b0014ee053c8b3mr17674986plo.8.1645422783218; Sun, 20 Feb 2022 21:53:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4uChiiHlVZKxy5oDI0C+zCNByGFg8H/qSO+GGiX8wamb9OOw3jhzE9wJAAtDUr+P2yAOrHA== X-Received: by 2002:a17:902:854a:b0:14e:e053:c8b3 with SMTP id d10-20020a170902854a00b0014ee053c8b3mr17674973plo.8.1645422782882; Sun, 20 Feb 2022 21:53:02 -0800 (PST) Received: from canonical.com (node-1w7jr9yebujeq5th4a1ypmfmg.ipv6.telus.net. [2001:56a:78ed:fb00::998]) by smtp.gmail.com with ESMTPSA id h26sm17291136pgm.72.2022.02.20.21.53.02 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 21:53:02 -0800 (PST) From: Alex Hung <alex.hung@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [PATCH 3/7][SRU][OEM-5.14] HID: amd_sfh: Handle amd_sfh work buffer in PM ops Date: Sun, 20 Feb 2022 22:52:53 -0700 Message-Id: <20220221055257.1168996-4-alex.hung@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220221055257.1168996-1-alex.hung@canonical.com> References: <20220221055257.1168996-1-alex.hung@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
Not able to enter s2idle state on AMD platforms
|
expand
|
diff --git a/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c b/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c index 2a40f32a..6ecf1f0 100644 --- a/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c +++ b/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c @@ -285,6 +285,8 @@ static int __maybe_unused amd_mp2_pci_resume(struct device *dev) } } + schedule_delayed_work(&cl_data->work_buffer, msecs_to_jiffies(AMD_SFH_IDLE_LOOP)); + return 0; } @@ -306,6 +308,8 @@ static int __maybe_unused amd_mp2_pci_suspend(struct device *dev) } } + cancel_delayed_work_sync(&cl_data->work_buffer); + return 0; }