greybus: firmware: Fetch es2 VID/PID to distinguish module vendors
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 26 Nov 2015 10:03:46 +0000 (15:33 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 30 Nov 2015 16:19:12 +0000 (08:19 -0800)
commitf1e941a6e4b71a5b94d584277121bd2bee8809b0
tree53b774c7663113a4a8f7b53c121db3f9b592dac8
parent32945d6ecc89331f10d715496fd2247f958d471e
greybus: firmware: Fetch es2 VID/PID to distinguish module vendors

The es2 chip doesn't have VID/PID programmed into the hardware and we
need to hack that up to distinguish different modules and their firmware
packages.

This fetches VID/PID (over firmware protocol) for es2 chip only, when
VID/PID already sent during hotplug are 0.

Since only the bootrom contains a firmware protocol cport, this only
affects bootrom's working and not nuttx.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/firmware.c
drivers/staging/greybus/greybus_protocols.h