Weida: invoke log_updater_run in updater script
Drivers inside the driver_name switch case
in chromeos-touch-update-legacy.sh does not expose
VID/PID to the OS layer, therefore
log_updater_run can not be invoked for them.
This CL solves that by invoking log_updater_run
in the Weida updater script directly where we have access
to VID/PID from the device.
BUG=b:435246548
TEST=CQ
Change-Id: I2ef33be8b1c68bb9c951a1a8fb48411814f5a41a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/touch_updater/+/6811106
Reviewed-by: Sean O'Brien <seobrien@chromium.org>
Commit-Queue: Mohammad Gomaa <midomaxgomaa@gmail.com>
Reviewed-by: Henry Barnor <hbarnor@chromium.org>
Reviewed-by: Kenneth Albanowski <kenalba@google.com>
Tested-by: Kenneth Albanowski <kenalba@google.com>
diff --git a/scripts/chromeos-weida-touch-firmware-update-legacy.sh b/scripts/chromeos-weida-touch-firmware-update-legacy.sh
index 14761f0..7835a58 100644
--- a/scripts/chromeos-weida-touch-firmware-update-legacy.sh
+++ b/scripts/chromeos-weida-touch-firmware-update-legacy.sh
@@ -13,6 +13,7 @@
FW_LINK_NAME="wdt87xx_fw.bin"
FW_LINK_PATH="${FW_DIR}/${FW_LINK_NAME}"
WEIDA_FW_VERSION_SYSFS="fw_version"
+WEIDA_VENDOR_ID="2575"
# Parse command line
FLAGS "$@" || exit 1
@@ -73,6 +74,9 @@
# Determine the product ID of the device we're considering updating
active_product_id="$(get_active_product_id "${touch_device_path}")"
+ log_updater_run "${WEIDA_VENDOR_ID}" "${active_product_id}" \
+ "${trackpad_device_name}" "${touch_device_path}" "Weida"
+
# Make sure there is a FW that looks like it's for the same product ID
log_msg "Attempting to load FW: '${FW_LINK_PATH}'"
fw_path="$(readlink "${FW_LINK_PATH}")"