mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-16 05:47:16 +00:00
pci-bcr: Use a plugin prefix for quirk keys
This commit is contained in:
parent
2bae97c6c2
commit
24232d1d63
@ -1,3 +1,3 @@
|
|||||||
# Intel Atom Bay Trail [Silvermont]
|
# Intel Atom Bay Trail [Silvermont]
|
||||||
[DeviceInstanceId=CPUID\PRO_0&FAM_06&MOD_37]
|
[DeviceInstanceId=CPUID\PRO_0&FAM_06&MOD_37]
|
||||||
BcrAddr = 0x0
|
PciBcrAddr = 0x0
|
||||||
|
@ -249,9 +249,9 @@ fu_cpu_device_set_quirk_kv (FuDevice *device,
|
|||||||
const gchar *value,
|
const gchar *value,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
if (g_strcmp0 (key, "BcrAddr") == 0) {
|
if (g_strcmp0 (key, "PciBcrAddr") == 0) {
|
||||||
guint64 tmp = fu_common_strtoull (value);
|
guint64 tmp = fu_common_strtoull (value);
|
||||||
fu_device_set_metadata_integer (device, "BcrAddr", tmp);
|
fu_device_set_metadata_integer (device, "PciBcrAddr", tmp);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
g_set_error_literal (error,
|
g_set_error_literal (error,
|
||||||
|
@ -44,7 +44,7 @@ fu_plugin_device_registered (FuPlugin *plugin, FuDevice *dev)
|
|||||||
{
|
{
|
||||||
FuPluginData *priv = fu_plugin_get_data (plugin);
|
FuPluginData *priv = fu_plugin_get_data (plugin);
|
||||||
if (g_strcmp0 (fu_device_get_plugin (dev), "cpu") == 0) {
|
if (g_strcmp0 (fu_device_get_plugin (dev), "cpu") == 0) {
|
||||||
guint tmp = fu_device_get_metadata_integer (dev, "BcrAddr");
|
guint tmp = fu_device_get_metadata_integer (dev, "PciBcrAddr");
|
||||||
if (tmp != G_MAXUINT && priv->bcr_addr != tmp) {
|
if (tmp != G_MAXUINT && priv->bcr_addr != tmp) {
|
||||||
g_debug ("overriding BCR addr from 0x%02x to 0x%02x",
|
g_debug ("overriding BCR addr from 0x%02x to 0x%02x",
|
||||||
priv->bcr_addr, tmp);
|
priv->bcr_addr, tmp);
|
||||||
|
Loading…
Reference in New Issue
Block a user