From nobody Sun Feb 5 20:37:44 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 4P91RX5L06z3kq3R; Sun, 5 Feb 2023 20:37:44 +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 4P91RX4pBJz3Dvx; Sun, 5 Feb 2023 20:37:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675629464; 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=sjNd7LNNjMTGNgZHbA9RVY09bfvxcCgY2CoKl8nt+vc=; b=KDz5eW69AN2sTLj4XJCzIkWeKb2O4Df7Gles9e7jQ5ETXRHdzDc02ShZHWwDzs7MxMLeB0 ek5ZgFujTmz3mFjUfN+xHqdUADFjMuva6fVBLSb7ByxFFp0SzcXB6yZO1GweK5Xes5Cq2U QIBmmxeXpSJIbk5cvKGo35ftiDIFgVrlVnGF35aPye1FrSzA91oElVw6GFvEv4CqorcOog 6TkjgjPTsllvt/NVV7gskRHMAGyZSrYeJw8sRQKwZUfGrDHYP3PCMgSVz+5z3mC1NI1o4I U/cH+Hzx9tiQEZGB2m/KnDAKcqvsvxkFORx9R2+OkAGbzGnjRs6jUzxGh5wITQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675629464; 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=sjNd7LNNjMTGNgZHbA9RVY09bfvxcCgY2CoKl8nt+vc=; b=LmJGIRj78jVfjLmO3SDy33j3/9G+N/kiE3gjkb8Toqg1VtV+PIngaFHcNkNpTBP36UB3KZ MnTLD/9ws7X6GSYqHtXjPlElLKLTwl/UWt20UrpXDZSN9mZqhccVpo0EXKxWLtqexNFHx5 5DMku5Aj938Awr2i96q3/WvrTjgmJmRyZjCuNGLShBoojEg6vMBIYHaM7fCBG5CWrpjHz7 YKyU3/ZP56NIaytl0YrcUDLRMZIBmzLq4AWPrQHSPl1ORDL/4fe2HINyTycbMQykap/daQ K7nlmEKZ4dndnFb9SPmqbt2mR20AYy2DV1g2jESCxT5t+IeU7/J7ktateRSQ7Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675629464; a=rsa-sha256; cv=none; b=jXb96NZcxxKhE6jeE6AlCOPzoL8hlx3w/1Alj2k8Vt+KvWZFR0qYk1xkUqUwWgN+ABSJH/ z2GXq1qfygcpldMun9Mmr4P6xr01pk01oPdtRicGgLb31PQ/Gd0jcMmc3pC6vSlxrPws1X 0nsBrhPHRfZKmk5RBZvNxJB1a3OHqjaSrGUVfQLhcbzgtZjF71rvFFs/wgNZAfDQPtYH0E 45WPm/N6Rqex7aK4EBMzI/xiJ6fGYdC1G03wwfSklNIZy15YVi05feAZevsPDlwvTVCyOL MQl/J1wF9ZTF2eFBamVdQL4ssvQ/yj+7nl0CNuoDV1cJ6SNxJwyskLLtpPq4Zg== 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 4P91RX3tGWz17Dn; Sun, 5 Feb 2023 20:37:44 +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 315KbiV1047981; Sun, 5 Feb 2023 20:37:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 315KbiYT047980; Sun, 5 Feb 2023 20:37:44 GMT (envelope-from git) Date: Sun, 5 Feb 2023 20:37:44 GMT Message-Id: <202302052037.315KbiYT047980@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: ffdf10fb9cf1 - main - 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/main X-Git-Reftype: branch X-Git-Commit: ffdf10fb9cf13464801f2d78d3e1470201394812 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=ffdf10fb9cf13464801f2d78d3e1470201394812 commit ffdf10fb9cf13464801f2d78d3e1470201394812 Author: Bjoern A. Zeeb AuthorDate: 2023-01-28 15:18:24 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-02-05 20:36:54 +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 --- 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 92e7e6772fbd..32dc7a30769c 100644 --- a/sys/compat/linuxkpi/common/include/linux/device.h +++ b/sys/compat/linuxkpi/common/include/linux/device.h @@ -545,6 +545,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)