Re: [PATCH] pci: add kernel config option for disabling common PCI quirks

From: Lukas Wunner
Date: Wed Dec 21 2016 - 05:19:10 EST


On Wed, Dec 21, 2016 at 08:53:04AM +0100, John Crispin wrote:
> From: Gabor Juhos <juhosg@xxxxxxxxxxx>
>
> These quirks do not effect small small plastic routers. These routers tend
> to have very little flash space. This patch adds a new option that allows
> us to build a kernel without including the common quirks, thus saving us
> valuable flash space.
>
> When building an image for a MIPS/Ralink router with this option enabled
> it will reduce the size of an uncompressed uImage by 12KB.

There's already a PCI_QUIRKS config option defined in init/Kconfig,
why isn't this sufficient? Do you want *some* quirks but not others?

Thanks,

Lukas