greybus: firmware: Send AP-ready operation
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 9 Sep 2015 15:38:33 +0000 (21:08 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 15 Sep 2015 04:52:16 +0000 (21:52 -0700)
commit4c9e228407a25a99876b979479ff76208ab7de47
treec837cc28c4f49a851ef1b0cdbf40863228a6bcfb
parent1a8862863a7171e8b97fe8833bb3a78770a8aaee
greybus: firmware: Send AP-ready operation

Module's Bootrom needs a way to know (currently), when to start sending
requests to the AP. The version request is sent before connection_init()
routine is called, and if the module sends the request right after
receiving version request, the connection->private field will be NULL.

Fix this TEMPORARILY by sending an AP_READY request.

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