From: kernel test robot <lkp@intel.com>
To: Qingfang Deng <dqfext@gmail.com>, Felix Fietkau <nbd@nbd.name>,
Sean Wang <sean.wang@mediatek.com>,
Lorenzo Bianconi <lorenzo@kernel.org>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Russell King <linux@armlinux.org.uk>,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org
Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org
Subject: Re: [PATCH net-next v3] net: ethernet: mediatek: add EEE support
Date: Mon, 17 Feb 2025 16:19:59 +0800 [thread overview]
Message-ID: <202502171610.TU1Cuzq5-lkp@intel.com> (raw)
In-Reply-To: <20250217033954.3698772-1-dqfext@gmail.com>
Hi Qingfang,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Qingfang-Deng/net-ethernet-mediatek-add-EEE-support/20250217-114148
base: net-next/main
patch link: https://lore.kernel.org/r/20250217033954.3698772-1-dqfext%40gmail.com
patch subject: [PATCH net-next v3] net: ethernet: mediatek: add EEE support
config: arm64-randconfig-001-20250217 (https://download.01.org/0day-ci/archive/20250217/202502171610.TU1Cuzq5-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250217/202502171610.TU1Cuzq5-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502171610.TU1Cuzq5-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_mac_enable_tx_lpi':
>> drivers/net/ethernet/mediatek/mtk_eth_soc.c:860:1: warning: control reaches end of non-void function [-Wreturn-type]
860 | }
| ^
vim +860 drivers/net/ethernet/mediatek/mtk_eth_soc.c
826
827 static int mtk_mac_enable_tx_lpi(struct phylink_config *config, u32 timer,
828 bool tx_clk_stop)
829 {
830 struct mtk_mac *mac = container_of(config, struct mtk_mac,
831 phylink_config);
832 struct mtk_eth *eth = mac->hw;
833 u32 val;
834
835 /* Tx idle timer in ms */
836 timer = DIV_ROUND_UP(timer, 1000);
837
838 /* If the timer is zero, then set LPI_MODE, which allows the
839 * system to enter LPI mode immediately rather than waiting for
840 * the LPI threshold.
841 */
842 if (!timer)
843 val = MAC_EEE_LPI_MODE;
844 else if (FIELD_FIT(MAC_EEE_LPI_TXIDLE_THD, timer))
845 val = FIELD_PREP(MAC_EEE_LPI_TXIDLE_THD, timer);
846 else
847 val = MAC_EEE_LPI_TXIDLE_THD;
848
849 if (tx_clk_stop)
850 val |= MAC_EEE_CKG_TXIDLE;
851
852 /* PHY Wake-up time, this field does not have a reset value, so use the
853 * reset value from MT7531 (36us for 100M and 17us for 1000M).
854 */
855 val |= FIELD_PREP(MAC_EEE_WAKEUP_TIME_1000, 17) |
856 FIELD_PREP(MAC_EEE_WAKEUP_TIME_100, 36);
857
858 mtk_w32(eth, val, MTK_MAC_EEECR(mac->id));
859 mtk_m32(eth, 0, MAC_MCR_EEE100M | MAC_MCR_EEE1G, MTK_MAC_MCR(mac->id));
> 860 }
861
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-02-17 8:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-17 3:39 [PATCH net-next v3] net: ethernet: mediatek: add EEE support Qingfang Deng
2025-02-17 8:19 ` kernel test robot [this message]
2025-02-17 8:19 ` kernel test robot
2025-02-17 23:48 ` Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202502171610.TU1Cuzq5-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=angelogioacchino.delregno@collabora.com \
--cc=davem@davemloft.net \
--cc=dqfext@gmail.com \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux@armlinux.org.uk \
--cc=lorenzo@kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=nbd@nbd.name \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=sean.wang@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).