From nobody Fri Feb 17 23:44:48 2023 X-Original-To: dev-commits-src-branches@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 4PJT1r6pHnz3rxPZ; Fri, 17 Feb 2023 23:44:48 +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 4PJT1r69r1z3G6D; Fri, 17 Feb 2023 23:44:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676677488; 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=+sEleukTvtmROOFpTtHge+PO1I8dzurA9jrzOM4WwlY=; b=eTzziYNPC6MsAUxEK1TeAbwq+95DRm4M1p9iuHdM524Wgzr6LOc6Fs8BQKunfMhB3nSnrI la+vGPYu2vW/39kly3/1wAY47MJfmzgkn6zR9CRGUXFxxZdZiXlVLCEt2CxCnc2wvi8w/P zOdjFa6fOqCSxiur6iQwXGCZ28lr2o36lUeDlZqOnzPdLAfsClBnw8I5jKPlkVjNkYggY3 UcxVOmsL4q34n5jSgt3NVsJeyNnoDSqGypfETxfFVjs/PaesA9q6BO/OsD8LCHdLNpaVW+ kS+pZNstGA+AIXcQpU3x4pk1ulwnNSx5TetJhXHadQxLj0hJ5OGMmIB4zU3O3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676677488; 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=+sEleukTvtmROOFpTtHge+PO1I8dzurA9jrzOM4WwlY=; b=yg0o+nswYfeE3Zfe5PvnAYJ4bZPEUkenWA0bvyx5XCE33aV39sKV0w4MKmnF2bUAYgupEg ZQz6ykL4rbVQkgt0DFyAXJcepr5cB36vJimbvZwlc/678To7C0RupT6GNnCI7Si75Pk9AB FHeIaF0dA0pKrs8HV2O+lPUbEx/4lLjgCiLcXsyNKBJCOMDw5mtv5EIvmrRLKIYgpCSkes 1GroBizvtpbxi8tYMWMHceKmM/rH+Ac/1FBs39o+hy7KueodG79m61cSqEy6nAGs/9ZUZC Jt7R61KsTRUsx4kh7pI5unEVGHSPOAMXrhPXgQnCqRCDSzl9IdzOW4GPBBSFWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676677488; a=rsa-sha256; cv=none; b=cO6W+PmNU6gn96E3QgotMpLc/Qq1Sap9hDHvPGAubO/csJ7Ou2IslBJcR+niEmUmg/yHKY J64YcvDMzLlw3mjmNNuH6p5El036c0CkiFTY1R++SE4RjXLbudgDiaay4QBlKZlntZGZGp Cz2frVS1X5rWMCWYIGpg2bI4DDeD1T541R5DCJ/0VweR0tAeSifpMzbXbbCgYheBxP2pxR VVMbPWrBalKx+M3GiA3CwvkQmOkFLGzcbluhosXxvVAt3Ob39nnCcthPvP1Y/7TiOYE9Zw JrBZJPQIxJ/3OoH2/dS+Y3L2eHCyqcZjte0igA40c34yPCkpAthAONe+K4uaEQ== 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 4PJT1r5DKGz11rC; Fri, 17 Feb 2023 23:44:48 +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 31HNim9H025078; Fri, 17 Feb 2023 23:44:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31HNim1e025077; Fri, 17 Feb 2023 23:44:48 GMT (envelope-from git) Date: Fri, 17 Feb 2023 23:44:48 GMT Message-Id: <202302172344.31HNim1e025077@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: b45e9a172d38 - stable/13 - LinuxKPI: device: add device_set_wakeup_enable() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: b45e9a172d3830bed00018325eaa73c04a0b3a13 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=b45e9a172d3830bed00018325eaa73c04a0b3a13 commit b45e9a172d3830bed00018325eaa73c04a0b3a13 Author: Bjoern A. Zeeb AuthorDate: 2023-01-28 15:18:24 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-02-17 23:42:15 +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 MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D38238 (cherry picked from commit ffdf10fb9cf13464801f2d78d3e1470201394812) --- 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 d91c14bd87b7..1fcbf7164916 100644 --- a/sys/compat/linuxkpi/common/include/linux/device.h +++ b/sys/compat/linuxkpi/common/include/linux/device.h @@ -543,6 +543,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)