From 852c6685ff59d29ca292a426c96ad0e75955d18f Mon Sep 17 00:00:00 2001 From: Benson Leung Date: Mon, 22 Jun 2020 14:38:07 -0700 Subject: [PATCH] cros-ec: Set protocol for cros-ec-usb-device Specify "com.google.usb.crosec" to indicate support for Google's USB endpoint updater protocol. --- plugins/cros-ec/README.md | 4 ++++ plugins/cros-ec/fu-cros-ec-usb-device.c | 1 + 2 files changed, 5 insertions(+) diff --git a/plugins/cros-ec/README.md b/plugins/cros-ec/README.md index 868483d8a..a16ac6dd0 100644 --- a/plugins/cros-ec/README.md +++ b/plugins/cros-ec/README.md @@ -19,6 +19,10 @@ Firmware Format The daemon will decompress the cabinet archive and extract a firmware blob in the Google fmap [3] file format. +This plugin supports the following protocol ID: + + * com.google.usb.crosec + GUID Generation --------------- diff --git a/plugins/cros-ec/fu-cros-ec-usb-device.c b/plugins/cros-ec/fu-cros-ec-usb-device.c index 2cf5eab7d..0308d57f9 100644 --- a/plugins/cros-ec/fu-cros-ec-usb-device.c +++ b/plugins/cros-ec/fu-cros-ec-usb-device.c @@ -581,6 +581,7 @@ fu_cros_ec_usb_device_prepare_firmware (FuDevice *device, static void fu_cros_ec_usb_device_init (FuCrosEcUsbDevice *device) { + fu_device_set_protocol (FU_DEVICE (device), "com.google.usb.crosec"); fu_device_set_version_format (FU_DEVICE (device), FWUPD_VERSION_FORMAT_TRIPLET); }