scsi: ufs-mediatek: Decouple features from platform bindings
authorStanley Chu <stanley.chu@mediatek.com>
Thu, 29 Oct 2020 11:57:47 +0000 (19:57 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 Nov 2020 04:03:18 +0000 (23:03 -0500)
commitac8c2459091cd0e2bf226278d7b332e81c4c855a
treec10deda4d6f6187c122cf3006144e4b88ee54f3e
parentcf137b3ea49a04e0c843b12674afa4b1d23e827f
scsi: ufs-mediatek: Decouple features from platform bindings

UFS proprietary features (including features introduced later) in MediaTek
UFS platforms have complicated combinations among different platforms.

To ease code readability and maintenance, decouple all proprietary features
from platform bindings. Each feature would be enabled only if specific
property string is defined in device tree node.

Link: https://lore.kernel.org/r/20201029115750.24391-4-stanley.chu@mediatek.com
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs-mediatek.c
drivers/scsi/ufs/ufs-mediatek.h