[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250617233539.GA1177120@bhelgaas>
Date: Tue, 17 Jun 2025 18:35:39 -0500
From: Bjorn Helgaas <helgaas@...nel.org>
To: Bartosz Golaszewski <brgl@...ev.pl>
Cc: Bjorn Helgaas <bhelgaas@...gle.com>, linux-kernel@...r.kernel.org,
linux-pci@...r.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>,
Amit Pundir <amit.pundir@...aro.org>,
Neil Armstrong <neil.armstrong@...aro.org>,
Caleb Connolly <caleb.connolly@...aro.org>
Subject: Re: [PATCH v9 4/5] PCI/pwrctl: Add PCI power control core code
On Wed, Jun 12, 2024 at 10:20:17AM +0200, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
>
> Some PCI devices must be powered-on before they can be detected on the
> bus. Introduce a simple framework reusing the existing PCI OF
> infrastructure.
> +/**
> + * struct pci_pwrctl - PCI device power control context.
> + * @dev: Address of the power controlling device.
> + *
> + * An object of this type must be allocated by the PCI power control device and
> + * passed to the pwrctl subsystem to trigger a bus rescan and setup a device
> + * link with the device once it's up.
> + */
> +struct pci_pwrctl {
> + struct device *dev;
> +
> + /* Private: don't use. */
> + struct notifier_block nb;
> + struct device_link *link;
> +};
This is old and I should have noticed before, but we have partial
kernel-doc for this struct:
$ find include -name \*pci\* | xargs scripts/kernel-doc -none
Warning: include/linux/pci-pwrctrl.h:45 struct member 'nb' not described in 'pci_pwrctrl'
Warning: include/linux/pci-pwrctrl.h:45 struct member 'link' not described in 'pci_pwrctrl'
Warning: include/linux/pci-pwrctrl.h:45 struct member 'work' not described in 'pci_pwrctrl'
Powered by blists - more mailing lists