init.qcom.usb: Update diag dload with PID and serial

With support now for diag-router using USB FFS driver, the kernel
driver is no longer going to automatically update the DLOAD IMEM
with the required PID/Serial information that is used when the device
transitions into crash download mode so that a port re-enumeration
is avoided. In order to pass the same PID/Serial information, the
same kernel driver now exposes configfs attributes that userspace
can write. Hence the serial number can be written once during "on
boot", and likewise the PID can be updated whenever a composition
is selected that contains Diag as the first interface.

Change-Id: I45d52ecd30fcc4978c9bb4fbe9caa75e12c0b860
2 files changed
tree: 8dfa812b01887ab9bce55520b240ab58338d970c
  1. etc/
  2. hal/
  3. vendor_product.mk