scsi: ufs: ufs-mediatek: Fix performance scaling
authorPeter Wang <peter.wang@mediatek.com>
Tue, 2 Aug 2022 23:54:36 +0000 (07:54 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 23 Aug 2022 02:58:30 +0000 (22:58 -0400)
commit2873e0453b0165117bdc28dee3e38d69dd82f4c5
tree78964a9e2e7d0a4c3a44d4df1d26e55d63773a76
parent364893575d139546c5dc6255c12c72cdc929bf93
scsi: ufs: ufs-mediatek: Fix performance scaling

If clk-scaling is enabled, performance scaling can be bound to the decision
of clk-scaling to avoid unnecessary boosting.

In addition, fix missing initialization of pm-qos request.

Link: https://lore.kernel.org/r/20220802235437.4547-5-stanley.chu@mediatek.com
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-mediatek.c