aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2017-07-17 03:00:56 +0100
committerBen Hutchings <ben@decadent.org.uk>2017-07-17 03:00:56 +0100
commite9698def400f164ae574666697f8c243d3723523 (patch)
tree1076cbef78d7a950afaf47e2ed41497c2ce23f8e
parentd6692c5a99674cf1d795c023432a2dbe0ac6ac21 (diff)
downloadkernel_replicant_linux-e9698def400f164ae574666697f8c243d3723523.tar.gz
kernel_replicant_linux-e9698def400f164ae574666697f8c243d3723523.tar.bz2
kernel_replicant_linux-e9698def400f164ae574666697f8c243d3723523.zip
firmware: dmi: Add DMI_PRODUCT_FAMILY identification string
Dependency of "pinctrl: cherryview: Extend the Chromebook DMI quirk to Intel_Strago systems".
-rw-r--r--debian/changelog1
-rw-r--r--debian/patches/features/all/firmware-dmi-add-dmi_product_family-identification-s.patch61
-rw-r--r--debian/patches/series1
3 files changed, 63 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 70864215aa27..d76267b723f3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -273,6 +273,7 @@ linux (4.11.11-1) UNRELEASED; urgency=medium
* aufs: Update support patchset to aufs4.11.7+-20170703 (Closes: #867257)
* [x86] ideapad-laptop: Add various IdeaPad models to no_hw_rfkill list
(Closes: #866706)
+ * firmware: dmi: Add DMI_PRODUCT_FAMILY identification string
* [x86] pinctrl: cherryview: Extend the Chromebook DMI quirk to Intel_Strago
systems (Closes: #862723)
* [armhf] Add ARM Mali Midgard device tree bindings and gpu node for rk3288
diff --git a/debian/patches/features/all/firmware-dmi-add-dmi_product_family-identification-s.patch b/debian/patches/features/all/firmware-dmi-add-dmi_product_family-identification-s.patch
new file mode 100644
index 000000000000..b0d9d9742b28
--- /dev/null
+++ b/debian/patches/features/all/firmware-dmi-add-dmi_product_family-identification-s.patch
@@ -0,0 +1,61 @@
+From: Mika Westerberg <mika.westerberg@linux.intel.com>
+Date: Wed, 17 May 2017 13:25:12 +0300
+Subject: firmware: dmi: Add DMI_PRODUCT_FAMILY identification string
+Origin: https://git.kernel.org/linus/c61872c9833d17d3807fb999096917c1f9eaada0
+
+Sometimes it is more convenient to be able to match a whole family of
+products, like in case of bunch of Chromebooks based on Intel_Strago to
+apply a driver quirk instead of quirking each machine one-by-one.
+
+This adds support for DMI_PRODUCT_FAMILY identification string and also
+exports it to the userspace through sysfs attribute just like the
+existing ones.
+
+Suggested-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
+Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
+Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
+Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
+---
+ drivers/firmware/dmi-id.c | 2 ++
+ drivers/firmware/dmi_scan.c | 1 +
+ include/linux/mod_devicetable.h | 1 +
+ 3 files changed, 4 insertions(+)
+
+--- a/drivers/firmware/dmi-id.c
++++ b/drivers/firmware/dmi-id.c
+@@ -47,6 +47,7 @@ DEFINE_DMI_ATTR_WITH_SHOW(product_name,
+ DEFINE_DMI_ATTR_WITH_SHOW(product_version, 0444, DMI_PRODUCT_VERSION);
+ DEFINE_DMI_ATTR_WITH_SHOW(product_serial, 0400, DMI_PRODUCT_SERIAL);
+ DEFINE_DMI_ATTR_WITH_SHOW(product_uuid, 0400, DMI_PRODUCT_UUID);
++DEFINE_DMI_ATTR_WITH_SHOW(product_family, 0400, DMI_PRODUCT_FAMILY);
+ DEFINE_DMI_ATTR_WITH_SHOW(board_vendor, 0444, DMI_BOARD_VENDOR);
+ DEFINE_DMI_ATTR_WITH_SHOW(board_name, 0444, DMI_BOARD_NAME);
+ DEFINE_DMI_ATTR_WITH_SHOW(board_version, 0444, DMI_BOARD_VERSION);
+@@ -191,6 +192,7 @@ static void __init dmi_id_init_attr_tabl
+ ADD_DMI_ATTR(product_version, DMI_PRODUCT_VERSION);
+ ADD_DMI_ATTR(product_serial, DMI_PRODUCT_SERIAL);
+ ADD_DMI_ATTR(product_uuid, DMI_PRODUCT_UUID);
++ ADD_DMI_ATTR(product_family, DMI_PRODUCT_FAMILY);
+ ADD_DMI_ATTR(board_vendor, DMI_BOARD_VENDOR);
+ ADD_DMI_ATTR(board_name, DMI_BOARD_NAME);
+ ADD_DMI_ATTR(board_version, DMI_BOARD_VERSION);
+--- a/drivers/firmware/dmi_scan.c
++++ b/drivers/firmware/dmi_scan.c
+@@ -430,6 +430,7 @@ static void __init dmi_decode(const stru
+ dmi_save_ident(dm, DMI_PRODUCT_VERSION, 6);
+ dmi_save_ident(dm, DMI_PRODUCT_SERIAL, 7);
+ dmi_save_uuid(dm, DMI_PRODUCT_UUID, 8);
++ dmi_save_ident(dm, DMI_PRODUCT_FAMILY, 26);
+ break;
+ case 2: /* Base Board Information */
+ dmi_save_ident(dm, DMI_BOARD_VENDOR, 4);
+--- a/include/linux/mod_devicetable.h
++++ b/include/linux/mod_devicetable.h
+@@ -457,6 +457,7 @@ enum dmi_field {
+ DMI_PRODUCT_VERSION,
+ DMI_PRODUCT_SERIAL,
+ DMI_PRODUCT_UUID,
++ DMI_PRODUCT_FAMILY,
+ DMI_BOARD_VENDOR,
+ DMI_BOARD_NAME,
+ DMI_BOARD_VERSION,
diff --git a/debian/patches/series b/debian/patches/series
index 10aba258df5c..5d850e5d3871 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -53,6 +53,7 @@ debian/amd64-don-t-warn-about-expected-w+x-pages-on-xen.patch
# Arch bug fixes
bugfix/arm/arm-dts-kirkwood-fix-sata-pinmux-ing-for-ts419.patch
+features/all/firmware-dmi-add-dmi_product_family-identification-s.patch
bugfix/x86/pinctrl-cherryview-extend-the-chromebook-dmi-quirk-t.patch
bugfix/x86/platform-x86-ideapad-laptop-add-ideapad-310-15ikb-to.patch
bugfix/x86/platform-x86-ideapad-laptop-add-ideapad-v310-15isk-t.patch