unifykey: switch init order of unifykey and securitykey
authorjiamin ma <jiamin.ma@amlogic.com>
Tue, 31 Jul 2018 10:11:54 +0000 (18:11 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 1 Aug 2018 02:25:50 +0000 (19:25 -0700)
PD#170850: unifykey: wrong unifykey driver init status

  The linux driver init order depends on init func level and
position in Makefile. Securitykey and unifykey are both
necessary for unifykey driver to work normal. Currently
securitykey is always initialized before unifykey, and the
unifykey init status checking API only checkes whether the
probe process of unifykey is done.So there is a chance when
LCD driver get unifykey probing process done status, while
securitykey is still under probing, which means unifykey
still cannot work normal
  We should switch the init order of these two module to
solve this issue

Change-Id: I8c4471d3689cff4356645fdc45df735be625baa2
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
drivers/amlogic/unifykey/Makefile

index 84dea13..6f51526 100644 (file)
@@ -1,8 +1,8 @@
 #
 # Makefile for unifykey
 #
-obj-$(CONFIG_AMLOGIC_UNIFYKEY) += unifykey.o unifykey_dts.o storagekey.o
-
 obj-$(CONFIG_AMLOGIC_V8_UNIFYKEY) += v8/
 
 obj-$(CONFIG_AMLOGIC_V7_UNIFYKEY) += v7/
+
+obj-$(CONFIG_AMLOGIC_UNIFYKEY) += unifykey.o unifykey_dts.o storagekey.o