All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] platform/chrome: cros_ec_lpc: Fix DMI matching for newer Chrome devices
@ 2022-01-11 15:36 Matt DeVillier
  2022-04-28 21:33 ` Matt DeVillier
  0 siblings, 1 reply; 2+ messages in thread
From: Matt DeVillier @ 2022-01-11 15:36 UTC (permalink / raw)
  To: Benson Leung, Enric Balletbo i Serra, platform-driver-x86

Since 2017, Chrome devices running custom coreboot firmware default
to using 'Google' as the system vendor, vs 'GOOGLE' for older
devices. Add a DMI match to cover this case as well.

Test: cros_ec_lpc successfully attaches to Chromebox running
custom coreboot firmware with bios vendor 'coreboot' and
system vendor 'Google'.

Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
---
drivers/platform/chrome/cros_ec_lpc.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/platform/chrome/cros_ec_lpc.c
b/drivers/platform/chrome/cros_ec_lpc.c
index d6306d2a096f..ae366a34bb63 100644
--- a/drivers/platform/chrome/cros_ec_lpc.c
+++ b/drivers/platform/chrome/cros_ec_lpc.c
@@ -465,13 +465,19 @@ static const struct dmi_system_id
cros_ec_lpc_dmi_table[] __initconst = {
* If the box is running custom coreboot firmware then the
* DMI BIOS version string will not be matched by "Google_",
* but the system vendor string will still be matched by
- * "GOOGLE".
+ * "GOOGLE" or "Google".
*/
.matches = {
DMI_MATCH(DMI_BIOS_VENDOR, "coreboot"),
DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"),
},
},
+ {
+ .matches = {
+ DMI_MATCH(DMI_BIOS_VENDOR, "coreboot"),
+ DMI_MATCH(DMI_SYS_VENDOR, "Google"),
+ },
+ },
{
/* x86-link, the Chromebook Pixel. */
.matches = {
-- 
2.32.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] platform/chrome: cros_ec_lpc: Fix DMI matching for newer Chrome devices
  2022-01-11 15:36 [PATCH] platform/chrome: cros_ec_lpc: Fix DMI matching for newer Chrome devices Matt DeVillier
@ 2022-04-28 21:33 ` Matt DeVillier
  0 siblings, 0 replies; 2+ messages in thread
From: Matt DeVillier @ 2022-04-28 21:33 UTC (permalink / raw)
  To: Benson Leung, Enric Balletbo i Serra, platform-driver-x86

hello all,

any reason this patch failed to get noticed? I have lots of users
running my upstream coreboot builds which are affected by this issue

thanks,
Matt

On Tue, Jan 11, 2022 at 9:36 AM Matt DeVillier <matt.devillier@gmail.com> wrote:
>
> Since 2017, Chrome devices running custom coreboot firmware default
> to using 'Google' as the system vendor, vs 'GOOGLE' for older
> devices. Add a DMI match to cover this case as well.
>
> Test: cros_ec_lpc successfully attaches to Chromebox running
> custom coreboot firmware with bios vendor 'coreboot' and
> system vendor 'Google'.
>
> Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
> ---
> drivers/platform/chrome/cros_ec_lpc.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/platform/chrome/cros_ec_lpc.c
> b/drivers/platform/chrome/cros_ec_lpc.c
> index d6306d2a096f..ae366a34bb63 100644
> --- a/drivers/platform/chrome/cros_ec_lpc.c
> +++ b/drivers/platform/chrome/cros_ec_lpc.c
> @@ -465,13 +465,19 @@ static const struct dmi_system_id
> cros_ec_lpc_dmi_table[] __initconst = {
> * If the box is running custom coreboot firmware then the
> * DMI BIOS version string will not be matched by "Google_",
> * but the system vendor string will still be matched by
> - * "GOOGLE".
> + * "GOOGLE" or "Google".
> */
> .matches = {
> DMI_MATCH(DMI_BIOS_VENDOR, "coreboot"),
> DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"),
> },
> },
> + {
> + .matches = {
> + DMI_MATCH(DMI_BIOS_VENDOR, "coreboot"),
> + DMI_MATCH(DMI_SYS_VENDOR, "Google"),
> + },
> + },
> {
> /* x86-link, the Chromebook Pixel. */
> .matches = {
> --
> 2.32.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-28 21:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 15:36 [PATCH] platform/chrome: cros_ec_lpc: Fix DMI matching for newer Chrome devices Matt DeVillier
2022-04-28 21:33 ` Matt DeVillier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.