Neil Horman <nhorman@tuxdriver.com> writes:Ok. This test is broken. Please remove the == 1. You are looking for == (1 << 18). So just saying: "if (htcfg & (1 << 18))" should be clearer. The rest of this quirk looks fine, include the fact it is only intended to be applied to PCI_VENDOR_ID_AMD PCI_DEVICE_ID_AMD_K8_NB. For what is below I don't like the way the infrastructure has been extended as what you are doing quickly devolves into a big mess. Please extend struct chipset to be something like: struct chipset { u16 vendor; u16 device; u32 class, class_mask; void (*f)(void); }; And then the test for matching the chipset can be something like: if ((id->vendor == PCI_ANY_ID || id->vendor == dev->vendor) && (id->device == PCI_ANY_ID || id->device == dev->device) && !((id->class ^ dev->class) & id->class_mask)) Essentially a subset of pci_match_one_device from drivers/pci/pci.h That way you don't need to increase the number of tables or the number of passes through the pci busses, just update the early_qrk table with a few more bits of information. The extended form should be much more maintainable in the long run. Given that we may want this before we enable the timer which is very early doing this in the pci early quirks seems to make sense. Eric --
| Theodore Tso | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
| Jeff Garzik | Re: [RFC] Heads up on sys_fallocate() |
| Erez Zadok | [UNIONFS] 00/42 Unionfs and related patches review |
| Roland Dreier | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Jon Smirl | Re: VCS comparison table |
| Andy Parkins | svn:externals using git submodules |
| Daniel Berlin | Re: Git and GCC |
| Sam Vilain | [PATCH] git-mergetool: add support for ediff |
| Richard Stallman | Real men don't attack straw men |
| Paul de Weerd | Re: Porting OpenBSD to OLPC XO laptops. |
| sonjaya | openvpn on openbsd 4.1 |
| Adliger Martinez von der Unterschicht | linux kills laptop hard drive... how does obsd behave? |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Andrew Morton | Re: [Bugme-new] [Bug 11144] New: dhcp doesn't work with iwl4965 |
| Arjan van de Ven | Re: [GIT]: Networking |
