{"id":2223726,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2223726/?format=json","web_url":"http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20260416015520.6090-2-khai.wen.tan@linux.intel.com/","project":{"id":46,"url":"http://patchwork.ozlabs.org/api/1.1/projects/46/?format=json","name":"Intel Wired Ethernet development","link_name":"intel-wired-lan","list_id":"intel-wired-lan.osuosl.org","list_email":"intel-wired-lan@osuosl.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260416015520.6090-2-khai.wen.tan@linux.intel.com>","date":"2026-04-16T01:55:18","name":"[iwl-next,v2,1/3] igc: remove unused autoneg_failed field","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"9d0f1d8fede1bbe6f2ca1ff00a29c80d05db5796","submitter":{"id":93102,"url":"http://patchwork.ozlabs.org/api/1.1/people/93102/?format=json","name":"KhaiWenTan","email":"khai.wen.tan@linux.intel.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20260416015520.6090-2-khai.wen.tan@linux.intel.com/mbox/","series":[{"id":500068,"url":"http://patchwork.ozlabs.org/api/1.1/series/500068/?format=json","web_url":"http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=500068","date":"2026-04-16T01:55:17","name":"igc: add support for forcing link speed without autonegotiation","version":2,"mbox":"http://patchwork.ozlabs.org/series/500068/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2223726/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2223726/checks/","tags":{},"headers":{"Return-Path":"<intel-wired-lan-bounces@osuosl.org>","X-Original-To":["incoming@patchwork.ozlabs.org","intel-wired-lan@lists.osuosl.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","intel-wired-lan@lists.osuosl.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256\n header.s=default header.b=GYHJGHs6;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org\n (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org;\n envelope-from=intel-wired-lan-bounces@osuosl.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fx1sH1gj2z1yHV\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 12:18:42 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 0696D606B6;\n\tThu, 16 Apr 2026 02:18:40 +0000 (UTC)","from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id Lf1vTb1j8Djc; Thu, 16 Apr 2026 02:18:39 +0000 (UTC)","from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 3228B606B0;\n\tThu, 16 Apr 2026 02:18:39 +0000 (UTC)","from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])\n by lists1.osuosl.org (Postfix) with ESMTP id A39222CF\n for <intel-wired-lan@lists.osuosl.org>; Thu, 16 Apr 2026 02:18:35 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n by smtp1.osuosl.org (Postfix) with ESMTP id BB71680B30\n for <intel-wired-lan@lists.osuosl.org>; Thu, 16 Apr 2026 02:18:34 +0000 (UTC)","from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id Hz81MvcZvKhX for <intel-wired-lan@lists.osuosl.org>;\n Thu, 16 Apr 2026 02:18:33 +0000 (UTC)","from mgamail.intel.com (mgamail.intel.com [198.175.65.14])\n by smtp1.osuosl.org (Postfix) with ESMTPS id 9605680B19\n for <intel-wired-lan@lists.osuosl.org>; Thu, 16 Apr 2026 02:18:33 +0000 (UTC)","from fmviesa007.fm.intel.com ([10.60.135.147])\n by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 15 Apr 2026 19:18:31 -0700","from unknown (HELO localhost.png.intel.com) ([10.107.255.61])\n by fmviesa007.fm.intel.com with ESMTP; 15 Apr 2026 19:18:27 -0700"],"X-Virus-Scanned":["amavis at osuosl.org","amavis at osuosl.org"],"X-Comment":"SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org;\n receiver=<UNKNOWN> ","DKIM-Filter":["OpenDKIM Filter v2.11.0 smtp3.osuosl.org 3228B606B0","OpenDKIM Filter v2.11.0 smtp1.osuosl.org 9605680B19"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org;\n\ts=default; t=1776305919;\n\tbh=V2Ab4UYJaE9SmzIHVi5i8hY2v1mIT8vrFkY5w5BZU8o=;\n\th=From:To:Cc:Date:In-Reply-To:References:Subject:List-Id:\n\t List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:\n\t From;\n\tb=GYHJGHs6jdwiYyHFNshO8dTfS6G/VsfuBTpb/KHG3bSwT96XF+pkXP8DzgyYIcfXZ\n\t R6J/WUXPWmmrMqxlEnnTRsR3ReRu/BhkwQU8a43C8Rk2jFo1NKLFgxU7GsdO4pK6ZH\n\t 09A5Afng1HZy/EMhFbCvLyELAq6yyqa2sNXTnjy4wy0a5hBQ4sCiXVoJchjUaw60L1\n\t JKFevBIWhMcnf+e4WT4d5EQ/yFBfdNDVD8xiiVSG1MsX8p97VBnpGKNLhYc1FJQKVA\n\t Afst2bRQsVTWSlaiEsqVoLRIbdfLpeRHnxOt8InUKd3phDnjJv4jTUHvfB8PTSalKv\n\t xbSjafFYAoefg==","Received-SPF":"Pass (mailfrom) identity=mailfrom; client-ip=198.175.65.14;\n helo=mgamail.intel.com; envelope-from=khai.wen.tan@linux.intel.com;\n receiver=<UNKNOWN>","DMARC-Filter":"OpenDMARC Filter v1.4.2 smtp1.osuosl.org 9605680B19","X-CSE-ConnectionGUID":["WoikAMpaTzenBlUUDsEAOg==","ogkBqb77Tx6Yp4YuXiAr8g=="],"X-CSE-MsgGUID":["vIZcEh9XRqW9C9PK+lQUMQ==","I/l2S9ZVSOGuSTcdkfquig=="],"X-IronPort-AV":["E=McAfee;i=\"6800,10657,11760\"; a=\"81168786\"","E=Sophos;i=\"6.23,181,1770624000\"; d=\"scan'208\";a=\"81168786\"","E=Sophos;i=\"6.23,181,1770624000\"; d=\"scan'208\";a=\"227442170\""],"X-ExtLoop1":"1","From":"KhaiWenTan <khai.wen.tan@linux.intel.com>","To":"anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com,\n andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,\n kuba@kernel.org, pabeni@redhat.com","Cc":"intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,\n linux-kernel@vger.kernel.org, faizal.abdul.rahim@intel.com,\n hong.aun.looi@intel.com, khai.wen.tan@intel.com,\n Faizal Rahim <faizal.abdul.rahim@linux.intel.com>, Looi,\n KhaiWenTan <khai.wen.tan@linux.intel.com>","Date":"Thu, 16 Apr 2026 09:55:18 +0800","Message-ID":"<20260416015520.6090-2-khai.wen.tan@linux.intel.com>","X-Mailer":"git-send-email 2.43.0","In-Reply-To":"<20260416015520.6090-1-khai.wen.tan@linux.intel.com>","References":"<20260416015520.6090-1-khai.wen.tan@linux.intel.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-Mailman-Original-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1776305913; x=1807841913;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=c24xY4k2Ax9/vCwMkRqzVcK6y2+W/l1sJdoufcjIGA0=;\n b=Vj6G+HHsf7Q9Iile0AzwOw1eQbud9phYINs1z2lEbQPvJtbtbwYk+vHp\n cxsDUlB8OEuCdCGNJCLigEhOVbsUC3abJv6yAeouBtdWR2K4Wkehn1DV6\n wC39pWFv6MvaBLytAMoREGva7LZUXXN9DBwQg9Y5E7s6kcaNBbnc3rZE+\n Ccub0QOt/wx2on+P+FTl9QyAdAnQKNB5qf2DuwAG7cVOyGPev3wZX/12s\n q3XZgwo9qessvJKSQ2xjhp9GqtXHadDLproRMMvu54/xofdhF1efed7gD\n OJSyxqeMqT9Y5c9HdmsdZR6w50o46KXKPYUJa2CfMG91RadwTBAo4zP3y\n g==;","X-Mailman-Original-Authentication-Results":["smtp1.osuosl.org;\n dmarc=none (p=none dis=none)\n header.from=linux.intel.com","smtp1.osuosl.org;\n dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.a=rsa-sha256 header.s=Intel header.b=Vj6G+HHs"],"Subject":"[Intel-wired-lan] [PATCH iwl-next v2 1/3] igc: remove unused\n autoneg_failed field","X-BeenThere":"intel-wired-lan@osuosl.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Intel Wired Ethernet Linux Kernel Driver Development\n <intel-wired-lan.osuosl.org>","List-Unsubscribe":"<https://lists.osuosl.org/mailman/options/intel-wired-lan>,\n <mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>","List-Archive":"<http://lists.osuosl.org/pipermail/intel-wired-lan/>","List-Post":"<mailto:intel-wired-lan@osuosl.org>","List-Help":"<mailto:intel-wired-lan-request@osuosl.org?subject=help>","List-Subscribe":"<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>,\n <mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>","Errors-To":"intel-wired-lan-bounces@osuosl.org","Sender":"\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"},"content":"From: Faizal Rahim <faizal.abdul.rahim@linux.intel.com>\n\nautoneg_failed in struct igc_mac_info is never set in the igc driver.\nRemove the field and the dead code checking it in\nigc_config_fc_after_link_up().\n\nReviewed-by: Looi, Hong Aun <hong.aun.looi@intel.com>\nSigned-off-by: Faizal Rahim <faizal.abdul.rahim@linux.intel.com>\nSigned-off-by: KhaiWenTan <khai.wen.tan@linux.intel.com>\n---\n drivers/net/ethernet/intel/igc/igc_hw.h  |  1 -\n drivers/net/ethernet/intel/igc/igc_mac.c | 16 +---------------\n 2 files changed, 1 insertion(+), 16 deletions(-)\n\n--\n2.43.0","diff":"diff --git a/drivers/net/ethernet/intel/igc/igc_hw.h b/drivers/net/ethernet/intel/igc/igc_hw.h\nindex be8a49a86d09..86ab8f566f44 100644\n--- a/drivers/net/ethernet/intel/igc/igc_hw.h\n+++ b/drivers/net/ethernet/intel/igc/igc_hw.h\n@@ -92,7 +92,6 @@ struct igc_mac_info {\n \tbool asf_firmware_present;\n \tbool arc_subsystem_valid;\n\n-\tbool autoneg_failed;\n \tbool get_link_status;\n };\n\ndiff --git a/drivers/net/ethernet/intel/igc/igc_mac.c b/drivers/net/ethernet/intel/igc/igc_mac.c\nindex 7ac6637f8db7..142beb9ae557 100644\n--- a/drivers/net/ethernet/intel/igc/igc_mac.c\n+++ b/drivers/net/ethernet/intel/igc/igc_mac.c\n@@ -438,28 +438,14 @@ void igc_config_collision_dist(struct igc_hw *hw)\n  * Checks the status of auto-negotiation after link up to ensure that the\n  * speed and duplex were not forced.  If the link needed to be forced, then\n  * flow control needs to be forced also.  If auto-negotiation is enabled\n- * and did not fail, then we configure flow control based on our link\n- * partner.\n+ * then we configure flow control based on our link partner.\n  */\n s32 igc_config_fc_after_link_up(struct igc_hw *hw)\n {\n \tu16 mii_status_reg, mii_nway_adv_reg, mii_nway_lp_ability_reg;\n-\tstruct igc_mac_info *mac = &hw->mac;\n \tu16 speed, duplex;\n \ts32 ret_val = 0;\n\n-\t/* Check for the case where we have fiber media and auto-neg failed\n-\t * so we had to force link.  In this case, we need to force the\n-\t * configuration of the MAC to match the \"fc\" parameter.\n-\t */\n-\tif (mac->autoneg_failed)\n-\t\tret_val = igc_force_mac_fc(hw);\n-\n-\tif (ret_val) {\n-\t\thw_dbg(\"Error forcing flow control settings\\n\");\n-\t\tgoto out;\n-\t}\n-\n \t/* In auto-neg, we need to check and see if Auto-Neg has completed,\n \t * and if so, how the PHY and link partner has flow control\n \t * configured.\n","prefixes":["iwl-next","v2","1/3"]}