We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57ab3ff commit 055fac0Copy full SHA for 055fac0
1 file changed
drivers/phy/apple/atc.c
@@ -1829,9 +1829,18 @@ static int atcphy_dpphy_configure(struct phy *phy,
1829
if (opts->set_voltages)
1830
return -EINVAL;
1831
1832
- /* TODO? or maybe just ack since this mux_set should've done this? */
1833
- if (opts->set_lanes)
1834
- return -EINVAL;
+ /*
+ * Just ack set_lanes for compatibility with (lp)dptx-phy
+ * The mux_set should've done this anyway
1835
+ */
1836
+ if (opts->set_lanes) {
1837
+ if (((atcphy->mode == APPLE_ATCPHY_MODE_DP && opts->lanes != 4) ||
1838
+ (atcphy->mode == APPLE_ATCPHY_MODE_USB3_DP && opts->lanes != 2)) &&
1839
+ opts->lanes != 0)
1840
+ dev_warn(atcphy->dev, "Unexpected lane count %u for mode %u\n",
1841
+ opts->lanes, atcphy->mode);
1842
+
1843
+ }
1844
1845
if (opts->set_rate) {
1846
switch (opts->link_rate) {
0 commit comments