From nobody Thu Feb 23 19:34:26 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PN3BB3ffGz3sf7h; Thu, 23 Feb 2023 19:34:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PN3BB3DCvz44sR; Thu, 23 Feb 2023 19:34:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677180866; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=w+KtWQkLlOXmCbpbnqZv1w6iPblSW9bhl+FNzTasNJE=; b=T6Q9wC1qRvC/TPsz7NQw+zVqhg0fcUIDSVjci/+ZKP4jK4vHLLU1bRCtZVf9xe+smB9XpT Y/PKLGuvgtBJMuJIDHyS55Ph1w269C3Rwv3bTxG7dK2KmwmdUs59JJW25aqHqTZSq74AgY IHnHTQg5QGH0k5KYzo+5c25liphNs4gvJF/n4q5Xl/GLcs11uJErLuJemilYDC7iR6KJzn /nJjJE9LTxgoYkS0ixxQ7fUR6fRwjEbPfrra2xGhCQlq5MSwO8H9WgpNFhsJVDk3qYc6FU +r/9WY1XFSpAisAX1RkITN0fwIYkeGGqspQOICBnVCWQxHrnUjhzVzCWqfy0CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677180866; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=w+KtWQkLlOXmCbpbnqZv1w6iPblSW9bhl+FNzTasNJE=; b=hUUiz+q+fR2JAp345eLy2WfqpBqwULzU+mKGXkQYzEM6Zv98QFMntvXEi7iJgvMtVA/W78 YXBjIeqBDKxr8ZnT7QHkl+RL+UXiGPpcku/v8ven+gLDC81LjQW31sMCjzjQcNg9t+R28l 82Sik/536V2e4rEXImGE2Vac4SaVWSTUOpo2vnxckAuxRFPc6Y053ohxjGKz/eY8SxdDYs 9SstL6eZPAWMFjsrItrXGY1narpa2y++VUwvbs1DXkugURRuZPWBTqouVsNw1B3OKH7xNU +R4/OsTRtyJZnhK8UbmN9jWwtHifpXHGGLTr+dOJZMRnHlzXg4tM4N+ExNocHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677180866; a=rsa-sha256; cv=none; b=DH2yfMeU7MtZ/Kt1MIpOOv2ogiOX4M7MVZjWO3KuNjhIczL578P5Wip+loovMAHhXMRnFO RLmowdZzFeJ9HmoLQFXSPp2e8XOovMDnDkQkJAUmC7NCljjYTDF7ZSY3K8khDY9wFhRV5r b9P9sJACv9pCo43QQS6C92clUxOu7ZVsME5EaoJC7t3c+G4kXgQEgAiyMAPj/FY7axdalr 5hmAkf4qtKlDHlnC+PZAhbIYE/qvaEILvbTKv4Dtc4o3ayohq/4CN+6sleo6Y5J7rbQ4Og CvM20+YFOCoWLWKE8Drcfzal6zqwKUOkIsmZjS948ezEFbHr7DgO1RVuvT2UDA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PN3BB2Klyzts6; Thu, 23 Feb 2023 19:34:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31NJYQXL020175; Thu, 23 Feb 2023 19:34:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31NJYQ88020174; Thu, 23 Feb 2023 19:34:26 GMT (envelope-from git) Date: Thu, 23 Feb 2023 19:34:26 GMT Message-Id: <202302231934.31NJYQ88020174@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: c30972f3d0e4 - releng/13.2 - LinuxKPI: device: add device_set_wakeup_enable() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/releng/13.2 X-Git-Reftype: branch X-Git-Commit: c30972f3d0e4abd83f1eb8e3087dc7acd588a7d7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch releng/13.2 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=c30972f3d0e4abd83f1eb8e3087dc7acd588a7d7 commit c30972f3d0e4abd83f1eb8e3087dc7acd588a7d7 Author: Bjoern A. Zeeb AuthorDate: 2023-01-28 15:18:24 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-02-23 19:31:52 +0000 LinuxKPI: device: add device_set_wakeup_enable() Add a dummy device_set_wakeup_enable() which is used for WoWLAN which we do not (yet) support and device_wakeup_enable() which is a wrapper to the former with the enable argument being true. Sponsored by: The FreeBSD Foundation Approved by: re (cperciva) Differential Revision: https://reviews.freebsd.org/D38238 (cherry picked from commit ffdf10fb9cf13464801f2d78d3e1470201394812) (cherry picked from commit b45e9a172d3830bed00018325eaa73c04a0b3a13) --- sys/compat/linuxkpi/common/include/linux/device.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/device.h b/sys/compat/linuxkpi/common/include/linux/device.h index 70015fb7d81f..ced13faffcf0 100644 --- a/sys/compat/linuxkpi/common/include/linux/device.h +++ b/sys/compat/linuxkpi/common/include/linux/device.h @@ -536,6 +536,24 @@ device_reprobe(struct device *dev) return (-error); } +static inline void +device_set_wakeup_enable(struct device *dev __unused, bool enable __unused) +{ + + /* + * XXX-BZ TODO This is used by wireless drivers supporting WoWLAN which + * we currently do not support. + */ +} + +static inline int +device_wakeup_enable(struct device *dev) +{ + + device_set_wakeup_enable(dev, true); + return (0); +} + #define dev_pm_set_driver_flags(dev, flags) do { \ } while (0)