[PATCH v7 05/17] PCI/AER: Extract bus/dev/fn in aer_print_port_info() with PCI_BUS_NUM(), etc

Jonathan Cameron Jonathan.Cameron at huawei.com
Wed May 21 19:21:52 AEST 2025


On Tue, 20 May 2025 16:50:22 -0500
Bjorn Helgaas <helgaas at kernel.org> wrote:

> From: Bjorn Helgaas <bhelgaas at google.com>
> 
> Use PCI_BUS_NUM(), PCI_SLOT(), PCI_FUNC() to extract the bus number,
> device, and function number directly from the Error Source ID.  There's no
> need to shift and mask it explicitly.
> 
> Signed-off-by: Bjorn Helgaas <bhelgaas at google.com>
> Tested-by: Krzysztof Wilczyński <kwilczynski at kernel.org>
> Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy at linux.intel.com>
> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen at linux.intel.com>

Reviewed-by: Jonathan Cameron <Jonathan.Cameron at huawei.com>


More information about the Linuxppc-dev mailing list