From nobody Wed Dec 17 06:03:33 2025 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (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 5589A2D7D2E; Mon, 15 Dec 2025 13:00:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765803605; cv=none; b=ZK8aDf4AlmcW0HTA9zpAqvnEF6TvvOsg4cQPgWHnIbPoWvJaDybG5cKLGk1572R/GEBRohQ8lp42beGopxEXM9jOxEQj+/uBJAaAJ27qFMnlbHbALTinKDWe+MLsmCKLpUKsgHHzSwQJbSVlHfkm9fbgNHogwWY94/c0QmzQU8I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765803605; c=relaxed/simple; bh=bFW5wc7teN8wCrjLWApoNlxe5ivNEhXG0ZFJWMv1Om0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uIhpxnCY4glOKqpHaxykHlL3NETBp1CKRNfhSbUBkAJSGboo8RFyeWmaHr/ZidSSBBQb6xkb02R4p0NF6lRsvHRxfscs8YynroNbpehDfb24ra7X2mm3TSUHGHR9gD5ah3qE+pUbcHmkI6nXrbI5J+pk8TMA3bNkR7BGEIztSsw= 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+; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=LfrZfV0+; arc=none smtp.client-ip=45.249.212.187 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=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 canpmsgout11.his.huawei.com (unknown [172.19.92.148]) by szxga01-in.huawei.com (SkyGuard) with ESMTPS id 4dVKs94Ttgz1BG4S; Mon, 15 Dec 2025 20:59:41 +0800 (CST) 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.44]) by canpmsgout11.his.huawei.com (SkyGuard) with ESMTPS id 4dVKq33MvnzKm6s; Mon, 15 Dec 2025 20:57:51 +0800 (CST) Received: from kwepemk100013.china.huawei.com (unknown [7.202.194.61]) by mail.maildlp.com (Postfix) with ESMTPS id 9BB601402C6; Mon, 15 Dec 2025 20:59:51 +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.11; Mon, 15 Dec 2025 20:59:50 +0800 From: Jijie Shao To: , , , , , , , , CC: , , , , , , , , Subject: [PATCH RFC net-next 6/6] net: phy: motorcomm: fix duplex setting error for phy leds Date: Mon, 15 Dec 2025 20:57:05 +0800 Message-ID: <20251215125705.1567527-7-shaojijie@huawei.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20251215125705.1567527-1-shaojijie@huawei.com> References: <20251215125705.1567527-1-shaojijie@huawei.com> 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 --- 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