projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96a766a
)
scsi: ufs: ufs-mediatek: Eliminate error message for unbound mphy
author
Stanley Chu
<stanley.chu@mediatek.com>
Tue, 8 Sep 2020 06:45:04 +0000
(14:45 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Wed, 9 Sep 2020 02:49:53 +0000
(22:49 -0400)
Some MediaTek platforms does not have to bind MPHY so users shall not see
any unnecessary logs. Simply remove logs for this case.
Link:
https://lore.kernel.org/r/20200908064507.30774-2-stanley.chu@mediatek.com
Fixes:
fc4983018fea
("scsi: ufs-mediatek: Allow unbound mphy")
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
patch
|
blob
|
history
diff --git
a/drivers/scsi/ufs/ufs-mediatek.c
b/drivers/scsi/ufs/ufs-mediatek.c
index
29cd017
..
7487b25
100644
(file)
--- a/
drivers/scsi/ufs/ufs-mediatek.c
+++ b/
drivers/scsi/ufs/ufs-mediatek.c
@@
-129,7
+129,10
@@
static int ufs_mtk_bind_mphy(struct ufs_hba *hba)
__func__, err);
} else if (IS_ERR(host->mphy)) {
err = PTR_ERR(host->mphy);
- dev_info(dev, "%s: PHY get failed %d\n", __func__, err);
+ if (err != -ENODEV) {
+ dev_info(dev, "%s: PHY get failed %d\n", __func__,
+ err);
+ }
}
if (err)