summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFrank Wunderlich <frank-w@public-files.de>2020-08-20 16:37:52 +0200
committerTom Rini <trini@konsulko.com>2020-08-24 14:11:31 -0400
commit626892a779addb9604387ece522e3410d3ef3aa5 (patch)
tree1cbad689f1b3691be5c0d42f4e301bace2b5c9d7 /drivers
parentc9875a5fe85901b272c8e7db1b9bce513f02f1af (diff)
downloadu-boot-626892a779addb9604387ece522e3410d3ef3aa5.tar.gz
u-boot-626892a779addb9604387ece522e3410d3ef3aa5.tar.xz
u-boot-626892a779addb9604387ece522e3410d3ef3aa5.zip
phy: mtk-tphy: make shared reg optional for v1
make the shared reg optional when version is v1 for sata Suggested-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Frank Wunderlich <frank-w@public-files.de> Reviewed-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/phy/phy-mtk-tphy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c
index 326227a30d..3d7b9cd2b1 100644
--- a/drivers/phy/phy-mtk-tphy.c
+++ b/drivers/phy/phy-mtk-tphy.c
@@ -698,11 +698,10 @@ static int mtk_tphy_probe(struct udevice *dev)
tphy->dev = dev;
tphy->version = dev_get_driver_data(dev);
- /* v1 has shared banks */
+ /* v1 has shared banks for usb/pcie mode, */
+ /* but not for sata mode */
if (tphy->version == MTK_TPHY_V1) {
tphy->sif_base = dev_read_addr_ptr(dev);
- if (!tphy->sif_base)
- return -ENOENT;
}
dev_for_each_subnode(subnode, dev) {