Skip to contentSkip to conversation

usb: typec: ucsi: add fw update needed check

PATCH New Greg KH 1 participant 1 message Jan 18, 2019 USB

lore
Share & tools
lore

Greg KH

author
#0 lore raw

PATCH 5/7 usb: typec: ucsi: add fw update needed check

Quoted 20 lines · Ajay Gupta

This will be needed to check if latest fw is already flashed.

---
 drivers/usb/typec/ucsi/ucsi_ccg.c | 139 ++++++++++++++++++++++++++++++
 1 file changed, 139 insertions(+)
drivers/usb/typec/ucsi/ucsi_ccg.c +1 -0
index 5f341934a5af..6069a9f60d1e 100644
@@ -9,6 +9,7 @@
  */
 #include <linux/acpi.h>
 #include <linux/delay.h>
+#include <linux/firmware.h>
 #include <linux/i2c.h>
 #include <linux/module.h>
 #include <linux/pci.h>

drivers/usb/typec/ucsi/ucsi_ccg.c line 22

Quoted 5 lines
drivers/usb/typec/ucsi/ucsi_ccg.c +2 -0
@@ -17,6 +18,8 @@
 #include <asm/unaligned.h>
 #include "ucsi.h"
 
+static int secondary_fw_min_ver = 41;
+module_param(secondary_fw_min_ver, int, 0660);

Ick, never add new module parameters, this isn't the 1990's :)