]> asedeno.scripts.mit.edu Git - linux.git/commit
greybus: interface: retry enumeration of UniPro-only modules
authorJeffrey Carlyle <jcarlyle@google.com>
Thu, 19 May 2016 01:55:13 +0000 (18:55 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 19 May 2016 01:59:22 +0000 (18:59 -0700)
commite16715c135d80aafea867849f938b080d4f4eadb
tree99ecb0aba76d6f5a0c9c369d1a6ff4796b1bd626
parent9bc63b7ff56f7a1cad5dbf062d1d5dd7a81d7d93
greybus: interface: retry enumeration of UniPro-only modules

Greybus modules will sometimes fail to send the mailbox poke and
erroneously be enumerated as UniPro-only modules. The root cause for
this on the module side is not fully understand, but it seems that this
may be due to "the bootrom bug:" a known problem with the bootrom where
linkup will occasionally fail because of a race condition.

Before the new hotplug code was implemented in the firmware, the SVC
would retry enumeration of modules that did not send the mailbox poke;
this patch ports that functionality to the AP.

Signed-off-by: Jeffrey Carlyle <jcarlyle@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/interface.c
drivers/staging/greybus/module.c