Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932097AbaKAR5P (ORCPT ); Sat, 1 Nov 2014 13:57:15 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:45444 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758762AbaKAR5O (ORCPT ); Sat, 1 Nov 2014 13:57:14 -0400 X-Greylist: delayed 312 seconds by postgrey-1.27 at vger.kernel.org; Sat, 01 Nov 2014 13:57:14 EDT Date: Sat, 1 Nov 2014 18:51:59 +0100 From: Martin Mares To: Tom Gundersen Cc: linux-pci@vger.kernel.org, LKML , Kay Sievers Subject: udev/hwdb support in pciutils (Re: [PATCH RESEND][pciutils] libpci: pci_id_lookup - add udev/hwdb support) Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tom! The support for hwdb has finally landed in mainline pciutils. I have modified your patch to bring it closer to the rest of device naming logic. Namely: • The interface to HWDB now lives in a separate source file lib/names-hwdb.c. It is called from the main entry point to the name resolver (lib/names.c). • Resolved names are cached in the hash table and they participate in the system of priorities. They have lower priority than pci.ids, but higher than remote lookups via DNS. (Therefore if a distro decides not to ship pci.ids, hwdb is used exclusively for all local lookups.) • There is a flag to suppress the use of HWDB (PCI_LOOKUP_NO_HWDB) and also a configuration parameter for the same (hwdb.disable). Aside of the README, everything should be ready for a public release. Could you please verify that it still works for you? Have a nice fortnight -- Martin `MJ' Mares http://mj.ucw.cz/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth Uncle Ed's Rule of Thumb: Never use your thumb for a rule. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/