Skip to content

Commit bd77670

Browse files
committed
HACK: phy: apple: atc: Ignore fake submodes
For compatibility with dptx-phy. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 25a2e6e commit bd77670

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/phy/apple/atc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1780,7 +1780,7 @@ static int atcphy_dpphy_set_mode(struct phy *phy, enum phy_mode mode,
17801780
int submode)
17811781
{
17821782
/* nothing to do here since the setup already happened in mux_set */
1783-
if (mode == PHY_MODE_DP && submode == 0)
1783+
if (mode == PHY_MODE_DP && submode >= 0 && submode <= 5)
17841784
return 0;
17851785
return -EINVAL;
17861786
}

0 commit comments

Comments
 (0)