storage: aoa_recovery: Do not enumerate devices plugged in at boot

This patch moves the AOA driver registration from an INIT_FUNC to a
VBOOT_INIT_FUNC. This has the effect of running it after the first
usb_poll(), so devices that are already plugged in during boot do not
get probed for AOA. This was done due to concerns that the AOA probe
commands might cause unintended behavior on certain devices, so only
probing devices plugged in explicitly on the boot screen is a stronger
signal that this device is intended for firmware interaction. (Note that
MSC and HID devices already don't run AOA probing since their respective
class drivers grab them before depthcharge's custom drivers can run.)

BRANCH=Kukui
BUG=b:140960981
TEST=Confirmed expected behavior on Kevin (both cases)

Change-Id: Ia8cc4e36ed6f4d0be3354abea0ac034d55a8f5cf
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/depthcharge/+/1827841
Reviewed-by: Evan Green <evgreen@chromium.org>
1 file changed