scsi: ufs-mediatek: Create reset control device_link
authorPeter Wang <peter.wang@mediatek.com>
Wed, 2 Jun 2021 02:42:00 +0000 (10:42 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 16 Jun 2021 02:36:23 +0000 (22:36 -0400)
commitde48898d0cb6a3750558f35e14af799eafc3e6db
tree2e3a8f850275fba1ee3cd3faf23ed1acb26bc797
parent9dda74f3436449e1a4087e05fef583ccfd689bdd
scsi: ufs-mediatek: Create reset control device_link

Mediatek UFS reset function relies on Reset Control provided by
reset-ti-syscon. To make Mediatek Reset Control work properly, select
reset-ti-syscon to ensure it is being built.

In addition, establish device_link to wait until reset-ti-syscon
initialization is complete during UFS probing.

Link: https://lore.kernel.org/r/1622601720-22466-1-git-send-email-peter.wang@mediatek.com
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/Kconfig
drivers/scsi/ufs/ufs-mediatek.c