From: Ivan Vecera <ivecera@redhat.com>
To: netdev-bot+sashiko@kernel.org
Cc: netdev@vger.kernel.org, jiri@resnulli.us, davem@davemloft.net,
edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
horms@kernel.org, corbet@lwn.net, skhan@linuxfoundation.org,
rdunlap@infradead.org, min.li@microchip.com,
vadim.fedorenko@linux.dev, arkadiusz.kubalewski@intel.com,
linux-doc@vger.kernel.org
Subject: Re: [PATCH net-next 3/3] dpll: zl3073x: add device reset via devlink reload
Date: Sat, 5 Dec 2026 09:35:54 +0100 [thread overview]
Message-ID: <aacd42c8-0523-44d6-9fa5-a60f1db12440@redhat.com> (raw)
In-Reply-To: <179641050190.3146.13785948564015380782@kernel.org>
On 12/4/26 19:55, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 2 potential
> issue(s) to consider.
>
> Critical: 0 · High: 0 · Medium: 1 · Low: 1
>
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
>
> - [Medium] The new FW_ACTIVATE path in zl3073x_devlink_reload_up() resets
> the device CPU with zl3073x_dev_hw_reset() and then calls…
> - [Low] The patch also fixes a bug in the existing DRIVER_REINIT reload,
> but it does this inside a feature commit and gives no Fixes: tag.
>
> --
>
> dpll: zl3073x: add device reset via devlink reload
>
> This commit adds the devlink fw_activate reload action. The action resets
> the device so the firmware reboots and reloads its configuration from
> flash. The patch also moves the clock_id update into a helper that only
> driver_reinit uses, and makes reload_up() return the error from
> zl3073x_dev_start().
>
>> diff --git a/drivers/dpll/zl3073x/devlink.c b/drivers/dpll/zl3073x/devlink.c
>> index 10143ec81a116..0ff93889acd50 100644
>> --- a/drivers/dpll/zl3073x/devlink.c
>> +++ b/drivers/dpll/zl3073x/devlink.c
>
> [ ... ]
>
>> @@ -124,14 +121,51 @@ zl3073x_devlink_reload_up(struct devlink *devlink,
>> zldev->clock_id = val.vu64;
>> }
>>
>> - /* Restart normal operation */
>> - rc = zl3073x_dev_start(zldev);
>> - if (rc)
>> - dev_warn(zldev->dev, "Failed to re-start normal operation\n");
>> + return rc;
>> +}
>>
>> - *actions_performed = BIT(DEVLINK_RELOAD_ACTION_DRIVER_REINIT);
>> +static int
>> +zl3073x_devlink_reload_up(struct devlink *devlink,
>> + enum devlink_reload_action action,
>> + enum devlink_reload_limit limit,
>> + u32 *actions_performed,
>> + struct netlink_ext_ack *extack)
>> +{
>> + struct zl3073x_dev *zldev = devlink_priv(devlink);
>> + int rc, restart_rc;
>> +
>> + *actions_performed = 0;
>> + switch (action) {
>
> [ ... ]
>
>> + case DEVLINK_RELOAD_ACTION_FW_ACTIVATE:
>> + /* Reset the device CPU to reboot the firmware and reload the
>> + * configuration from flash. On failure, normal operation is
>> + * still restarted below on a best-effort basis.
>> + */
>> + rc = zl3073x_dev_hw_reset(zldev);
>> + if (rc) {
>> + NL_SET_ERR_MSG_MOD(extack, "Hardware reset failed");
>> + break;
>> + }
>> + *actions_performed |= BIT(DEVLINK_RELOAD_ACTION_FW_ACTIVATE);
>> + break;
>
> [Severity: Medium]
> After the reset, does anything wait for the firmware to finish loading
> its configuration from flash?
The reset sequence resets the chip the same way as the RST_B pin does.
Per the datasheet, device registers can be accessed either 500 ms after
RST_B goes high or after the ready bit in the info register goes high,
so the fixed 500 ms wait follows that rule. In testing, the device
needed 280-330 ms after the reset. The same reset and start sequence
has been used at the end of a flash update since the flash support was
added.
Thanks,
Ivan
prev parent reply other threads:[~2026-12-05 8:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 18:06 [PATCH net-next 0/3] dpll: zl3073x: add device reset via devlink reload Ivan Vecera
2026-12-03 18:06 ` [PATCH net-next 1/3] dpll: zl3073x: factor device CPU reset into a helper Ivan Vecera
2026-12-03 18:06 ` [PATCH net-next 2/3] dpll: zl3073x: always fetch device state on start Ivan Vecera
2026-12-04 18:55 ` netdev-bot+sashiko
2026-12-05 8:35 ` Ivan Vecera
2026-12-03 18:06 ` [PATCH net-next 3/3] dpll: zl3073x: add device reset via devlink reload Ivan Vecera
2026-12-04 18:55 ` netdev-bot+sashiko
2026-12-05 8:35 ` Ivan Vecera [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=aacd42c8-0523-44d6-9fa5-a60f1db12440@redhat.com \
--to=ivecera@redhat.com \
--cc=arkadiusz.kubalewski@intel.com \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=min.li@microchip.com \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rdunlap@infradead.org \
--cc=skhan@linuxfoundation.org \
--cc=vadim.fedorenko@linux.dev \
/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