From nobody Mon Feb 9 01:51:08 2026 Received: from canpmsgout04.his.huawei.com (canpmsgout04.his.huawei.com [113.46.200.219]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C4F6189F20; Thu, 8 Jan 2026 07:15:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.219 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767856533; cv=none; b=BmdlSKmNQTvIZfEk7W3Bhyey2DvrGKFN04q1u6qhbJU+GEFmf5/qafT5VwPs9ojVu7UmtiBcbxl/lII8wxXGNeYb6lIaecsCdL0VCyFJAvb0fdEwxK5UkISYkZHq/dPjVcNZlVzFPB1HlyzSGqRzGnHUFBkdh2bycKyY9ibJA9Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767856533; c=relaxed/simple; bh=bFW5wc7teN8wCrjLWApoNlxe5ivNEhXG0ZFJWMv1Om0=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Wcu4Y9hoTYdmh1MS/E7l2mh9Tx3CqJ1qOnhFzMmPDQ0Z53qwv8CYcOolO5wwN5NNE1SN+ER21onB8NW3awB2RZ7zvAT6MIJOmNGAyz6SNBK0HEfDLYNT3Yk78AG81nmxqJsYr4vOW2WVyJvIa+Lm5AA7RslySob+9tiAS4LcZYk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=LfrZfV0+; arc=none smtp.client-ip=113.46.200.219 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="LfrZfV0+" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=/BAOnQl4PiBFWoROmLFA/gBRGEHU/8ET6VKFmfi7mQQ=; b=LfrZfV0+uuxrwE+xZihutr3i0daDSADpyAvJGAOuxVA1L1K8rrxycuDlXU1+Bvp8Vm7Sld1nu 71sqlVorS2fJaRL/KEeXD2LdBXQ6fpSc8Br7lgE5pSqUJTImVt0IUR1spTQf/qj4ZEmoQz/aD0p 0xJsKmz5PdBgO0ccYIUCXzI= Received: from mail.maildlp.com (unknown [172.19.163.0]) by canpmsgout04.his.huawei.com (SkyGuard) with ESMTPS id 4dmx0y3CFKz1prKH; Thu, 8 Jan 2026 15:12:02 +0800 (CST) Received: from kwepemk100013.china.huawei.com (unknown [7.202.194.61]) by mail.maildlp.com (Postfix) with ESMTPS id 5A7E34036C; Thu, 8 Jan 2026 15:15:20 +0800 (CST) Received: from localhost.localdomain (10.90.31.46) by kwepemk100013.china.huawei.com (7.202.194.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.36; Thu, 8 Jan 2026 15:15:19 +0800 From: Jijie Shao To: , , , , , , , , CC: , , , , , , , , Subject: [PATCH net] net: phy: motorcomm: fix duplex setting error for phy leds Date: Thu, 8 Jan 2026 15:14:09 +0800 Message-ID: <20260108071409.2750607-1-shaojijie@huawei.com> X-Mailer: git-send-email 2.30.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: kwepems100001.china.huawei.com (7.221.188.238) To kwepemk100013.china.huawei.com (7.202.194.61) Content-Type: text/plain; charset="utf-8" fix duplex setting error for phy leds Fixes: 355b82c54c12 ("net: phy: motorcomm: Add support for PHY LEDs on YT85= 21") Signed-off-by: Jijie Shao Reviewed-by: Andrew Lunn --- drivers/net/phy/motorcomm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/motorcomm.c b/drivers/net/phy/motorcomm.c index 89b5b19a9bd2..42d46b5758fc 100644 --- a/drivers/net/phy/motorcomm.c +++ b/drivers/net/phy/motorcomm.c @@ -1741,10 +1741,10 @@ static int yt8521_led_hw_control_set(struct phy_dev= ice *phydev, u8 index, val |=3D YT8521_LED_1000_ON_EN; =20 if (test_bit(TRIGGER_NETDEV_FULL_DUPLEX, &rules)) - val |=3D YT8521_LED_HDX_ON_EN; + val |=3D YT8521_LED_FDX_ON_EN; =20 if (test_bit(TRIGGER_NETDEV_HALF_DUPLEX, &rules)) - val |=3D YT8521_LED_FDX_ON_EN; + val |=3D YT8521_LED_HDX_ON_EN; =20 if (test_bit(TRIGGER_NETDEV_TX, &rules) || test_bit(TRIGGER_NETDEV_RX, &rules)) --=20 2.33.0