From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796459770; b=PcTFZNIIG+in8LHIrM8vu9HB/IcKUAyCTpF06LfoXeCUhrOLSNSs+rNICHEs5qHdfomt IH8PrrRcyQBdU5VtOvVtEgvDkt8U6eCjIBaHr0rsozxgSIQxlG/MTD2H6gx3LgTZW/gGo F9dCjOD3KD6GLbbw+d4SB0J24MmzyTYECExdv/GmK3l6X7OwUr1Wb2qAAdZLZTlELmwpS FL/d43QXIPtEUyy1w37sYafylniaALuDWK6WDpgB+Zs3uTeyvqyQPQqstQY20lGNj2+xZ 7a/ael7UtXVshWIibh9zrdfChjKRjh4ydQGDkwq1GSu8glrd5fI19TZ154PleSNO0Dg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796459770; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-Scanned-By; bh=Sxi1aGYcea0PcW5YzNmup593YKrJvfv3DEVR6itm/Zk=; b=e6kew7ufJ35zP1l6PCNMYocSmbGqja3BXqmigQ9lvO1eAqnuA4d0bnvc5s/IMspbzit5 skwHwZ7aaje4f2YdqCEbBvffKTn6u5MnURkPNKSC5HIFnJnRlfsLN+d0G6W3coEegGnnC 08/R8jv+3XWGTlqmf4Y5h9EMp3dfhhpxeQKY3Up6PaLmmhiJwMNKx4nTpRd0qoC65LhrY hFKSNUgmK88JLjfQv2DIjZizTC9En7+T1TygRxKmJWj129g8so2O6/h8vLtriKiUISZea ZXaKWqKowjh2QUbrL1auDMwwTf/eFhOdXm2lMmLSLLo5RFJddd8D/WHe1yGJOmz6zvA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ZTtd0xh6; arc=none smtp.remote-ip=170.10.133.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 165E4606A322 for ; Sat, 5 Dec 2026 08:36:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 165E4606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ZTtd0xh6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796459770; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Sxi1aGYcea0PcW5YzNmup593YKrJvfv3DEVR6itm/Zk=; b=ZTtd0xh6mmEiMC8dBQv/YI1O0xP5rBR2yLuK/M8MPFpHuZegA+QdClJ1TOklY6KXvGqDw7 JwLsPJFUCM9E3z6KVep2s9wDuSwfynehr7hUMKhz0vhi6Vps0l92hV2rkANP1uCAsKF4Zj 4u/PAxNkCE1FIj1EQb1LFpHYl6G0/uc= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS with 8BITMIME (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-298-jNMpPCQvNBihBv6ViG5yOg-1; Sat, 5 Dec 2026 08:36:02 +0000 X-MC-Unique: jNMpPCQvNBihBv6ViG5yOg-1 X-Mimecast-MFC-AGG-ID: jNMpPCQvNBihBv6ViG5yOg_1796459760 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 35B7B18F5F24; Sat, 5 Dec 2026 08:36:00 +0000 (UTC) Received: from [100.91.101.41] (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 225191955E9C; Sat, 5 Dec 2026 08:35:55 +0000 (UTC) Message-ID: Date: Sat, 5 Dec 2026 09:35:54 +0100 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next 3/3] dpll: zl3073x: add device reset via devlink reload 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 References: <20261203180627.215256-4-ivecera@redhat.com> <179641050190.3146.13785948564015380782@kernel.org> Content-Language: en-US From: Ivan Vecera In-Reply-To: <179641050190.3146.13785948564015380782@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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