From: Yinghai Lu Date: Fri, 24 Feb 2012 07:46:49 +0000 (-0800) Subject: PCI: Add class support in quirk handling X-Git-Tag: v3.4-rc1~114^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4ca5c6a56278ca5421bc2e40422e4155b6735d8;p=pandora-kernel.git PCI: Add class support in quirk handling Recently added support to allow quirks to report duration also make the boot log very crowded when initcall_debug is specified. One thing we can to do mitigate this is to not call quirks unnecessarily by adding a new quirk declaration macro that takes a class argument. The new macro takes a class value and a class shift value (since it can vary) so that quirks will be limited to certain device classes, greatly reducing the number we call on every PCI device addition. -v2: fix v1 that left over of sparated patch. -v3: according to Jesse, change cls to class, cls_shift, to class_shift. Signed-off-by: Yinghai Lu Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed