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 2/3] dpll: zl3073x: always fetch device state on start
Date: Sat, 5 Dec 2026 09:35:15 +0100 [thread overview]
Message-ID: <0493484f-4b32-457c-b57c-4f019586d968@redhat.com> (raw)
In-Reply-To: <179641050045.3146.1515029809826961628@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] Regression: a devlink DRIVER_REINIT reload now throws away the
> cached NCO frequency offset (chan->df_offset) of any DPLL channel the…
> - [Low] The commit message admits an existing defect ('The device CPU
> reset at the end of a flash update already allows the same.') and this…
>
> --
>
> dpll: zl3073x: always fetch device state on start
>
> This commit removes the 'full' parameter from zl3073x_dev_start(). The
> function now always fetches the device state and sets up the phase offset
> measurement block. The devlink DRIVER_REINIT reload, which used to skip
> both steps, now goes through them as well.
>
>> The devlink FW_ACTIVATE reload, added later in this series, resets the
>> device, which reloads the whole configuration from flash. If the
>> restart after the reset fails, a following DRIVER_REINIT reload would
>> register the DPLLs with cached state that predates the reset, and would
>> not set up the phase offset measurement block again. The device CPU
>> reset at the end of a flash update already allows the same.
>
> [Severity: Low]
> This describes an existing problem in the flash update path, and this patch
> fixes it. Should the patch carry a Fixes: tag for that?
>
> Before this patch, zl3073x_devlink_flash_finish() reset the device CPU
> through zl3073x_flash_mode_leave() and then called
> zl3073x_dev_start(zldev, true). If that start failed partway through
> zl3073x_dev_state_fetch(), or returned early because the ready bit was not
> yet set, a later DRIVER_REINIT reload called zl3073x_dev_start(zldev,
> false). That path skipped both the state fetch and
> zl3073x_dev_phase_meas_setup().
>
> The patch is presented only as preparation for FW_ACTIVATE. Without a
> Fixes: tag, it probably won't be picked up for stable trees.
>
>> diff --git a/drivers/dpll/zl3073x/core.c b/drivers/dpll/zl3073x/core.c
>> index 27a55d810d5b0..5495d2c67848a 100644
>> --- a/drivers/dpll/zl3073x/core.c
>> +++ b/drivers/dpll/zl3073x/core.c
>
> [ ... ]
>
>> @@ -895,19 +893,16 @@ int zl3073x_dev_start(struct zl3073x_dev *zldev, bool full)
>> return 0;
>> }
>>
>> - if (full) {
>> - /* Fetch device state */
>> - rc = zl3073x_dev_state_fetch(zldev);
>> - if (rc)
>> - return rc;
>> + /* Fetch device state */
>> + rc = zl3073x_dev_state_fetch(zldev);
>> + if (rc)
>> + return rc;
>
> [Severity: Medium]
> Does this lose the cached NCO frequency offset on a DRIVER_REINIT reload?
Good catch, DRIVER_REINIT does not reset the device, so the cached
state including df_offset must stay. Will fix in v2.
Thanks,
Ivan
---
pw-bot: cr
next prev parent reply other threads:[~2026-12-05 8:35 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 [this message]
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
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=0493484f-4b32-457c-b57c-4f019586d968@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