From: Parvathi Pudi <parvathi@couthit.com>
To: Md Danish Anwar <a0501179@ti.com>
Cc: parvathi <parvathi@couthit.com>, danishanwar <danishanwar@ti.com>,
rogerq <rogerq@kernel.org>,
andrew+netdev <andrew+netdev@lunn.ch>,
davem <davem@davemloft.net>, edumazet <edumazet@google.com>,
kuba <kuba@kernel.org>, pabeni <pabeni@redhat.com>,
robh <robh@kernel.org>, krzk+dt <krzk+dt@kernel.org>,
conor+dt <conor+dt@kernel.org>, ssantosh <ssantosh@kernel.org>,
richardcochran <richardcochran@gmail.com>,
m-malladi <m-malladi@ti.com>, s hauer <s.hauer@pengutronix.de>,
afd <afd@ti.com>, jacob e keller <jacob.e.keller@intel.com>,
horms <horms@kernel.org>, johan <johan@kernel.org>,
m-karicheri2 <m-karicheri2@ti.com>, s-anna <s-anna@ti.com>,
glaroque <glaroque@baylibre.com>,
saikrishnag <saikrishnag@marvell.com>,
kory maincent <kory.maincent@bootlin.com>,
diogo ivo <diogo.ivo@siemens.com>,
javier carrasco cruz <javier.carrasco.cruz@gmail.com>,
basharath <basharath@couthit.com>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
netdev <netdev@vger.kernel.org>,
devicetree <devicetree@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
Vadim Fedorenko <vadim.fedorenko@linux.dev>,
ALOK TIWARI <alok.a.tiwari@oracle.com>,
Bastien Curutchet <bastien.curutchet@bootlin.com>,
pratheesh <pratheesh@ti.com>, Prajith Jayarajan <prajith@ti.com>,
Vignesh Raghavendra <vigneshr@ti.com>,
praneeth <praneeth@ti.com>, srk <srk@ti.com>,
rogerq <rogerq@ti.com>, krishna <krishna@couthit.com>,
pmohan <pmohan@couthit.com>, mohan <mohan@couthit.com>
Subject: Re: [PATCH net-next v14 2/5] net: ti: icssm-prueth: Adds ICSSM Ethernet driver
Date: Wed, 3 Sep 2025 11:53:57 +0530 (IST) [thread overview]
Message-ID: <806290623.278790.1756880637551.JavaMail.zimbra@couthit.local> (raw)
In-Reply-To: <1b892cde-bcdc-4a4e-83b7-35cc13eef8f4@ti.com>
Hi,
>
> On 8/22/2025 6:55 PM, Parvathi Pudi wrote:
>> From: Roger Quadros <rogerq@ti.com>
>>
>> Updates Kernel configuration to enable PRUETH driver and its dependencies
>> along with makefile changes to add the new PRUETH driver.
>>
>> Changes includes init and deinit of ICSSM PRU Ethernet driver including
>> net dev registration and firmware loading for DUAL-MAC mode running on
>> PRU-ICSS2 instance.
>>
>> Changes also includes link handling, PRU booting, default firmware loading
>> and PRU stopping using existing remoteproc driver APIs.
>>
>> Signed-off-by: Roger Quadros <rogerq@ti.com>
>> Signed-off-by: Andrew F. Davis <afd@ti.com>
>> Signed-off-by: Basharath Hussain Khaja <basharath@couthit.com>
>> Signed-off-by: Parvathi Pudi <parvathi@couthit.com>
>
> [ ... ]
>
>> + /* get mac address from DT and set private and netdev addr */
>> + ret = of_get_ethdev_address(eth_node, ndev);
>> + if (!is_valid_ether_addr(ndev->dev_addr)) {
>> + eth_hw_addr_random(ndev);
>> + dev_warn(prueth->dev, "port %d: using random MAC addr: %pM\n",
>> + port, ndev->dev_addr);
>> + }
>> + ether_addr_copy(emac->mac_addr, ndev->dev_addr);
>> +
>> + /* connect PHY */
>> + emac->phydev = of_phy_get_and_connect(ndev, eth_node,
>> + icssm_emac_adjust_link);
>> + if (!emac->phydev) {
>> + dev_dbg(prueth->dev, "PHY connection failed\n");
>> + ret = -EPROBE_DEFER;
>> + goto free;
>> + }
>> +
>
> Why are you returning EPROBE_DEFER here? If phy connection fails, you
> should just return and fail the probe. That's what ICSSG driver does.
>
> In drivers/net/ethernet/ti/icssg/icssg_prueth.c
>
> 404 │ ndev->phydev = of_phy_connect(emac->ndev, emac->phy_node,
> 405 │ &emac_adjust_link, 0,
> 406 │ emac->phy_if);
> 407 │ if (!ndev->phydev) {
> 408 │ dev_err(prueth->dev, "couldn't connect to phy %s\n",
> 409 │ emac->phy_node->full_name);
> 410 │ return -ENODEV;
> 411 │ }
>
>
> Before phy connect you do `dev_warn(prueth->dev, "port %d: using random
> MAC addr: %pM\n"`
>
> If device is using random mac address, this will be printed, your phy
> connect fails, you try probe again, print comes again, phy fails again
> and so on ...
>
> This results in system getting spammed with continuos prints of "using
> random MAC addr"
>
> I suggest if phy fails, let the probe fail don't do EPROBE_DEFER.
>
> Saw this issue on few boards which has issue with ICSSG phy.
>
Yes, we will check and address this in the next version.
Thanks and Regards,
Parvathi.
next prev parent reply other threads:[~2025-09-03 6:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-22 13:25 [PATCH net-next v14 0/5] PRU-ICSSM Ethernet Driver Parvathi Pudi
2025-08-22 13:25 ` [PATCH net-next v14 1/5] dt-bindings: net: ti: Adds DUAL-EMAC mode support on PRU-ICSS2 for AM57xx, AM43xx and AM33xx SOCs Parvathi Pudi
2025-08-22 13:25 ` [PATCH net-next v14 2/5] net: ti: icssm-prueth: Adds ICSSM Ethernet driver Parvathi Pudi
2025-09-01 14:48 ` Anwar, Md Danish
2025-09-03 6:23 ` Parvathi Pudi [this message]
2025-08-22 14:39 ` [PATCH net-next v14 3/5] net: ti: icssm-prueth: Adds PRUETH HW and SW configuration Parvathi Pudi
2025-08-22 14:39 ` [PATCH net-next v14 4/5] net: ti: icssm-prueth: Adds link detection, RX and TX support Parvathi Pudi
2025-08-27 16:08 ` Jakub Kicinski
2025-08-28 17:12 ` Parvathi Pudi
2025-08-22 14:39 ` [PATCH net-next v14 5/5] net: ti: icssm-prueth: Adds IEP support for PRUETH on AM33x, AM43x and AM57x SOCs Parvathi Pudi
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=806290623.278790.1756880637551.JavaMail.zimbra@couthit.local \
--to=parvathi@couthit.com \
--cc=a0501179@ti.com \
--cc=afd@ti.com \
--cc=alok.a.tiwari@oracle.com \
--cc=andrew+netdev@lunn.ch \
--cc=basharath@couthit.com \
--cc=bastien.curutchet@bootlin.com \
--cc=conor+dt@kernel.org \
--cc=danishanwar@ti.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=diogo.ivo@siemens.com \
--cc=edumazet@google.com \
--cc=glaroque@baylibre.com \
--cc=horms@kernel.org \
--cc=jacob.e.keller@intel.com \
--cc=javier.carrasco.cruz@gmail.com \
--cc=johan@kernel.org \
--cc=kory.maincent@bootlin.com \
--cc=krishna@couthit.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m-karicheri2@ti.com \
--cc=m-malladi@ti.com \
--cc=mohan@couthit.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pmohan@couthit.com \
--cc=prajith@ti.com \
--cc=praneeth@ti.com \
--cc=pratheesh@ti.com \
--cc=richardcochran@gmail.com \
--cc=robh@kernel.org \
--cc=rogerq@kernel.org \
--cc=rogerq@ti.com \
--cc=s-anna@ti.com \
--cc=s.hauer@pengutronix.de \
--cc=saikrishnag@marvell.com \
--cc=srk@ti.com \
--cc=ssantosh@kernel.org \
--cc=vadim.fedorenko@linux.dev \
--cc=vigneshr@ti.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).