Re: [PATCH 4/5]PCI: x86 MMCONFIG: introduce pcibios_fix_bus_scan()
From: Greg KH
Date: Wed Dec 19 2007 - 18:16:43 EST
On Wed, Dec 19, 2007 at 05:18:06PM -0500, tcamuso@xxxxxxxxxx wrote:
> commit ab28e1157e970f711c8451b66b3f940ec092db9d
> Author: Tony Camuso <tony.camuso@xxxxxx>
> Date: Wed Dec 19 15:51:48 2007 -0500
>
> Introduces the x86 arch-specific routine that will determine whether
> a device responds correctly to MMCONFIG accesses. This routine is
> given the generic name pcibios_fix_bus_scan_quirk()
>
> The comment at the top of the routine explains its logic.
>
> Signed-off-by: Tony Camuso tony.camuso@xxxxxx
>
> diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c
> index 8627463..9b1742d 100644
> --- a/arch/x86/pci/common.c
> +++ b/arch/x86/pci/common.c
> @@ -525,3 +525,64 @@ struct pci_bus *pci_scan_bus_with_sysdata(int busno)
>
> return bus;
> }
> +
> +/**
> + * This routine traps devices not correctly responding to MMCONFIG access.
> + * For each device on the current bus, compare a mmconf read of the
> + * vendor/device dword with a legacy PCI config read. If they're not the same,
> + * the bus serving this device must use legacy PCI config accesses instead of
> + * mmconf, as must all buses descending from this bus.
> + */
Don't user kerneldoc comments for functions that are not really in
kerneldoc format. Just a simple /* at the start will be fine, otherwise
the tools get confused.
So what happens today with these "broken" devices? Does simply reading
the vendor id not work properly? What specific hardware does not work
today that this is trying to fix?
I think this patch set needs a bit of reworking at the very least...
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/