Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Oct 2025 09:36:50 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        "Bjoern A. Zeeb" <bz@FreeBSD.org>, src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   Re: git: 885e8f272f75 - main - LinuxKPI: add skeleton pci_enable_wake()
Message-ID:  <0548e02e-3ee1-4459-95b7-ca3b720cbe96@FreeBSD.org>
In-Reply-To: <202510210753.59L7rC0f014520@gitrepo.freebsd.org>
References:  <202510210753.59L7rC0f014520@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/21/25 03:53, Bjoern A. Zeeb wrote:
> The branch main has been updated by bz:
> 
> URL: https://cgit.FreeBSD.org/src/commit/?id=885e8f272f7515b0325974de72d18b73318eff07
> 
> commit 885e8f272f7515b0325974de72d18b73318eff07
> Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
> AuthorDate: 2025-10-17 20:38:11 +0000
> Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
> CommitDate: 2025-10-21 07:49:39 +0000
> 
>      LinuxKPI: add skeleton pci_enable_wake()
>      
>      Given we do not yet support "wake" bits in device there is little need
>      doing it in PCI if we cannot check if we are supposed to do the
>      operation in first place.  Once we would implement this, we would need
>      to also do the appropriate PCI (pme) checks before enabling (disabling)
>      it.
>      
>      MFC after:      3 days
>      Reviewed by:    dumbbell
>      Differential Revision: https://reviews.freebsd.org/D53208

FWIW, we have pci_enable_pme() that this probably maps to.  Similarly, pci_has_pm()
is a helper routine to see if a device supports power management.  The various NIC
drivers supporting WOL use these helper routines to manage PME.

-- 
John Baldwin




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0548e02e-3ee1-4459-95b7-ca3b720cbe96>