Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161124139
D5884.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D5884.diff
View Options
Index: head/sys/mips/mediatek/mtk_usb_phy.c
===================================================================
--- head/sys/mips/mediatek/mtk_usb_phy.c
+++ head/sys/mips/mediatek/mtk_usb_phy.c
@@ -206,6 +206,11 @@
return (0);
}
+/*
+ * Things currently seem to work a lot better without slew rate calibration
+ * both on MT7621 and MT7688, so we leave it out for now.
+ */
+#ifdef notyet
static void
mtk_usb_phy_slew_rate_calibration(struct mtk_usb_phy_softc *sc)
{
@@ -250,10 +255,12 @@
USB_PHY_BARRIER(sc);
}
}
+#endif
static void
mtk_usb_phy_mt7621_init(device_t dev)
{
+#ifdef notyet
struct mtk_usb_phy_softc *sc = device_get_softc(dev);
/* Slew rate calibration only, but for 2 ports */
@@ -261,6 +268,7 @@
sc->u2_base = MT7621_U2_BASE_P1;
mtk_usb_phy_slew_rate_calibration(sc);
+#endif
}
static void
@@ -286,8 +294,10 @@
USB_PHY_WRITE_U2(sc, U2_PHY_DTM0, 0x02000000);
USB_PHY_BARRIER(sc);
+#ifdef notyet
/* Slew rate calibration */
- //mtk_usb_phy_slew_rate_calibration(sc);
+ mtk_usb_phy_slew_rate_calibration(sc);
+#endif
}
static device_method_t mtk_usb_phy_methods[] = {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 1, 6:34 PM (6 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34573114
Default Alt Text
D5884.diff (1 KB)
Attached To
Mode
D5884: Disable USB PHY slew rate calibration for Mediatek SoCs for now
Attached
Detach File
Event Timeline
Log In to Comment