From: kernel test robot <lkp@intel.com>
To: Zhiyuan Wan <kmlinuxm@gmail.com>, andrew@lunn.ch
Cc: oe-kbuild-all@lists.linux.dev, hkallweit1@gmail.com,
linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, willy.liu@realtek.com,
Zhiyuan Wan <kmlinuxm@gmail.com>
Subject: Re: [PATCH net-next] net: phy: realtek: disable broadcast address feature of rtl8211f
Date: Wed, 4 Dec 2024 15:36:44 +0800 [thread overview]
Message-ID: <202412041520.hGCSOuph-lkp@intel.com> (raw)
In-Reply-To: <20241203125430.2078090-1-kmlinuxm@gmail.com>
Hi Zhiyuan,
kernel test robot noticed the following build errors:
[auto build test ERROR on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Zhiyuan-Wan/net-phy-realtek-disable-broadcast-address-feature-of-rtl8211f/20241203-205751
base: net-next/main
patch link: https://lore.kernel.org/r/20241203125430.2078090-1-kmlinuxm%40gmail.com
patch subject: [PATCH net-next] net: phy: realtek: disable broadcast address feature of rtl8211f
config: mips-ip22_defconfig (https://download.01.org/0day-ci/archive/20241204/202412041520.hGCSOuph-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241204/202412041520.hGCSOuph-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/202412041520.hGCSOuph-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/net/phy/realtek.c: In function 'rtl821x_probe':
>> drivers/net/phy/realtek.c:147:51: error: passing argument 1 of 'PTR_ERR' makes pointer from integer without a cast [-Wint-conversion]
147 | return dev_err_probe(dev, PTR_ERR(ret),
| ^~~
| |
| int
In file included from include/linux/kernfs.h:9,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/of.h:18,
from drivers/net/phy/realtek.c:11:
include/linux/err.h:52:61: note: expected 'const void *' but argument is of type 'int'
52 | static inline long __must_check PTR_ERR(__force const void *ptr)
| ~~~~~~~~~~~~^~~
vim +/PTR_ERR +147 drivers/net/phy/realtek.c
126
127 static int rtl821x_probe(struct phy_device *phydev)
128 {
129 struct device *dev = &phydev->mdio.dev;
130 struct rtl821x_priv *priv;
131 u32 phy_id = phydev->drv->phy_id;
132 int ret;
133
134 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
135 if (!priv)
136 return -ENOMEM;
137
138 priv->clk = devm_clk_get_optional_enabled(dev, NULL);
139 if (IS_ERR(priv->clk))
140 return dev_err_probe(dev, PTR_ERR(priv->clk),
141 "failed to get phy clock\n");
142
143 dev_dbg(dev, "disabling MDIO address 0 for this phy");
144 ret = phy_modify_paged(phydev, 0xa43, RTL8211F_PHYCR1,
145 RTL8211F_PHYAD0_EN, 0);
146 if (ret < 0) {
> 147 return dev_err_probe(dev, PTR_ERR(ret),
148 "disabling MDIO address 0 failed\n");
149 }
150 /* Deny broadcast address as PHY address */
151 if (phydev->mdio.addr == 0)
152 return -ENODEV;
153
154 ret = phy_read_paged(phydev, 0xa43, RTL8211F_PHYCR1);
155 if (ret < 0)
156 return ret;
157
158 priv->phycr1 = ret & (RTL8211F_ALDPS_PLL_OFF | RTL8211F_ALDPS_ENABLE | RTL8211F_ALDPS_XTAL_OFF);
159 if (of_property_read_bool(dev->of_node, "realtek,aldps-enable"))
160 priv->phycr1 |= RTL8211F_ALDPS_PLL_OFF | RTL8211F_ALDPS_ENABLE | RTL8211F_ALDPS_XTAL_OFF;
161
162 priv->has_phycr2 = !(phy_id == RTL_8211FVD_PHYID);
163 if (priv->has_phycr2) {
164 ret = phy_read_paged(phydev, 0xa43, RTL8211F_PHYCR2);
165 if (ret < 0)
166 return ret;
167
168 priv->phycr2 = ret & RTL8211F_CLKOUT_EN;
169 if (of_property_read_bool(dev->of_node, "realtek,clkout-disable"))
170 priv->phycr2 &= ~RTL8211F_CLKOUT_EN;
171 }
172
173 phydev->priv = priv;
174
175 return 0;
176 }
177
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-12-04 7:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-03 12:54 [PATCH net-next] net: phy: realtek: disable broadcast address feature of rtl8211f Zhiyuan Wan
2024-12-03 13:18 ` Heiner Kallweit
2024-12-03 13:21 ` Zhiyuan Wan
2024-12-04 4:47 ` kernel test robot
2024-12-04 7:36 ` kernel test robot [this message]
2024-12-04 7:58 ` kernel test robot
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=202412041520.hGCSOuph-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kmlinuxm@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=willy.liu@realtek.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.