scsi: ufs: Configure clock in .hce_enable_notify() in Cadence UFS
authorAnil Varughese <aniljoy@cadence.com>
Fri, 2 Aug 2019 11:21:12 +0000 (12:21 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 8 Aug 2019 01:50:15 +0000 (21:50 -0400)
commitcb8b3359eb9c606421a42f3968c12211d6462906
tree1cd6252251d22294b1a511c5c3a9c49d0a4090e3
parentdccc96abfb21dc19d69e707c38c8ba439bba7160
scsi: ufs: Configure clock in .hce_enable_notify() in Cadence UFS

Configure CDNS_UFS_REG_HCLKDIV in .hce_enable_notify() instead of
.setup_clock() because if UFSHCD resets the controller ip because of phy or
device related errors then CDNS_UFS_REG_HCLKDIV is reset to default value
and .setup_clock() is not called later in the sequence whereas
.hce_enable_notify will be called everytime controller is reenabled.

Signed-off-by: Anil Varughese <aniljoy@cadence.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/cdns-pltfrm.c