From: Joey Lu <a0987203069@gmail.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org,
mcoquelin.stm32@gmail.com, richardcochran@gmail.com,
alexandre.torgue@foss.st.com, joabreu@synopsys.com,
ychuang3@nuvoton.com, schung@nuvoton.com, yclu4@nuvoton.com,
linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
openbmc@lists.ozlabs.org,
linux-stm32@st-md-mailman.stormreply.com
Subject: Re: [PATCH v2 3/3] net: stmmac: dwmac-nuvoton: Add dwmac support for MA35 family
Date: Thu, 14 Nov 2024 17:49:18 +0800 [thread overview]
Message-ID: <8e55e276-f2ee-4679-8e0f-ca5afb3653fc@gmail.com> (raw)
In-Reply-To: <b7fb59a9-989e-42b9-ac72-71f353854812@lunn.ch>
Dear Andrew,
Thank you for your reply.
On 11/14/24 10:56, Andrew Lunn wrote:
>> + if (of_property_read_u32(dev->of_node, "tx-internal-delay-ps", &arg)) {
>> + tx_delay = 0; /* Default value is 0 */
>> + } else {
>> + if (arg > 0 && arg <= 2000) {
>> + tx_delay = (arg == 2000) ? 0xF : (arg / PATHDLY_DEC);
>> + dev_dbg(dev, "Set Tx path delay to 0x%x\n", tx_delay);
>> + } else {
>> + tx_delay = 0;
>> + dev_err(dev, "Invalid Tx path delay argument. Setting to default.\n");
>> + }
>> + }
> The device tree binding says that only [0, 2000] are valid. You should
> enforce this here, return -EINVAL of any other value.
>
> Andrew
This will be fixed in the next version. And I will correct error messages.
Thanks!
BR,
Joey
prev parent reply other threads:[~2024-11-14 9:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-13 5:18 [PATCH v2 0/3] Add support for Nuvoton MA35D1 GMAC Joey Lu
2024-11-13 5:18 ` [PATCH v2 1/3] dt-bindings: net: nuvoton: Add schema for MA35 family GMAC Joey Lu
2024-11-13 6:15 ` Rob Herring (Arm)
2024-11-14 9:43 ` Joey Lu
2024-11-13 5:18 ` [PATCH v2 2/3] arm64: dts: nuvoton: Add Ethernet nodes Joey Lu
2024-11-13 5:18 ` [PATCH v2 3/3] net: stmmac: dwmac-nuvoton: Add dwmac support for MA35 family Joey Lu
2024-11-13 11:58 ` kernel test robot
2024-11-14 2:56 ` Andrew Lunn
2024-11-14 9:49 ` Joey Lu [this message]
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=8e55e276-f2ee-4679-8e0f-ca5afb3653fc@gmail.com \
--to=a0987203069@gmail.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=joabreu@synopsys.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=openbmc@lists.ozlabs.org \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=robh@kernel.org \
--cc=schung@nuvoton.com \
--cc=ychuang3@nuvoton.com \
--cc=yclu4@nuvoton.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
all inboxes | Powered by JetHome®