From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796459954; b=C00rKcg9JjmnlpB0m3tcldV0eAtUzkDc5Mmaa6ruQH4fUISyBTzzw5YaikhuDNu3Ct1c TeZSGxbAdK7u8VnKx+/mKKEK1JAchKGEgFL9nmxzysqQa8XrFXq94l0In+gXmOtw11MOS Io7kPbP/Pgco8PlzjCD1M8GPCS4d9B31oxUW4ipmlipRwIIO8snyPYpSHHh3pAysLgwVR X5lnOheP/+oNHTb2SNbET0zKzBJVEg2VcOK2rAkJPrgqRBehT+ozMgbeYut1DUxvwwnQz x7yjqG3pjsj1BQLMthBVNM9vp8vN36MgUMuheqvH146LbLtF+cWZYp5HQSBgXP7X/FQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796459954; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:From:To:Cc:Subject:Date: Message-ID:MIME-Version:Content-Transfer-Encoding:X-Scanned-By; bh=A0rOXrZjK/zG864G421onxAfG1Y4wC58Q9hYqIAtL4A=; b=MpCiyPPpVt0jRHqGcSoylpJxMzLnctO+HWCw6fwxwJyg7kR0e1vbNg7iA5wyhGzpIULr xdhvZ7rLjN0oYN1Xctl8ogWZRkDH52Gt2bRdSl9P/xNXix0GftdLvpvngTgx8Bi7wURdI yBLrxOstfqYjIMKLC8Y/25HgP+UbX9RWLJX/ni6odbDsL7TluvN3TstOH6HsPDPyrz1tS IHbZc6OB+g93ge8f5g8eEWXi4WWBa5xWNiHg67TLfLjZbxjXm5dLR8C3q13I56YpmHH25 cCJp5lUOtz5mHCTl12brA3cqW1LjEopEh256lINvzRLNjLzlC94f1CWBsDmXRlMR6Lw== 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=XLaa0iri; arc=none smtp.remote-ip=170.10.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 100F3606A322 for ; Sat, 5 Dec 2026 08:39:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 100F3606A322 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=XLaa0iri DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796459954; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=A0rOXrZjK/zG864G421onxAfG1Y4wC58Q9hYqIAtL4A=; b=XLaa0iri26rGexgMgXlADxUUhW44HFg1wd1pEfNR/xgMbTTaorFqZru/ff0T8lOjmKa2TD 9ltzS+LCmc1NXOMkVE1RjARpyEVEB+727GniIQS70bSxBIdLpdGCyga7tWxzrcsUirTa5a ZoTqj1/SywNcU9vgobueUxtG9igbE3c= Received: from mx-prod-mc-03.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-107-amaUIIRAO9W7Ak3iY16Ymw-1; Sat, 5 Dec 2026 08:39:09 +0000 X-MC-Unique: amaUIIRAO9W7Ak3iY16Ymw-1 X-Mimecast-MFC-AGG-ID: amaUIIRAO9W7Ak3iY16Ymw_1796459947 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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id CCBF018C37C6; Sat, 5 Dec 2026 08:39:06 +0000 (UTC) Received: from ivecera-thinkpadp16vgen1.tpbc.csb (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 D8D771955E9E; Sat, 5 Dec 2026 08:39:02 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Cc: Jiri Pirko , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Willem de Bruijn , Simon Horman , Jonathan Corbet , Shuah Khan , Randy Dunlap , Min Li , Vadim Fedorenko , Arkadiusz Kubalewski , linux-doc@vger.kernel.org Subject: [PATCH net-next v2 0/3] dpll: zl3073x: add device reset via devlink reload Date: Sat, 5 Dec 2026 09:38:57 +0100 Message-ID: <20261205083900.595822-1-ivecera@redhat.com> X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 The ZL3073x chips can reboot the firmware and reload the whole configuration from flash. This series exposes this full device reset through the devlink 'fw_activate' reload action. As the reset affects the whole chip, devlink is used rather than the per-DPLL netlink interface. Patch 1 factors the HW register sequence used by zl3073x_flash_mode_leave() to reset the device CPU into a reusable helper. Patch 2 makes the driver track whether its cached device state is valid, so that the state is fetched again after a reset. Patch 3 adds the 'fw_activate' reload action and documents the supported reload actions. Changes in v2: - Addressed the Sashiko review: patch 2 keeps the cached state across a DRIVER_REINIT reload, patch 1 comments the wait after the reset; see the patches for details v1: https://lore.kernel.org/netdev/20261203180627.215256-1-ivecera@redhat.com/ Ivan Vecera (3): dpll: zl3073x: factor device CPU reset into a helper dpll: zl3073x: track whether the cached device state is valid dpll: zl3073x: add device reset via devlink reload Documentation/networking/devlink/zl3073x.rst | 25 ++++++ drivers/dpll/zl3073x/core.c | 81 ++++++++++++++++--- drivers/dpll/zl3073x/core.h | 10 +-- drivers/dpll/zl3073x/devlink.c | 81 +++++++++++++------ drivers/dpll/zl3073x/flash.c | 84 +++++--------------- 5 files changed, 181 insertions(+), 100 deletions(-) base-commit: 503f683265b31ee4f3207752129242512f30196c -- 2.56.1