From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B61D28853A for ; Tue, 9 Sep 2025 09:15:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757409347; cv=none; b=TzzopBexdgev5RWmpAtXl9X/vqcY2lPlxJ9BE5szcI9oSgyXdV5GEBANRIiV998Lmw/5JmSpLAX/Yx99ZvS9b1PVIYrDfCxAgE86kNjmXBvZI8dMrw7V+kRxFdNPEXrrBJHlmhwZEhvnWHUKOMDHgMxDPWXLykqGNsfjTMvRRhw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757409347; c=relaxed/simple; bh=wjvHEOpNTJXgSUPx/Djy9L2Swmi3MuXtTYqnwyQKsbs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=R2vODW7YsLJS78+L0nJSJmEkRzx6o2uoUJ9yG7nmJIP9Ll/usRIRlC0y957ZxGHa7xO8rf6wJFegcZDOcZbARaowG8cDo2YUBF3fKIs8yvdlGz03q1Si3YDWqR+w1GVFYvlmZCyV6JqAXYSFUUhzaZmVUJiHyH3jCDBezsrfD1o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=e7v8kvNK; arc=none smtp.client-ip=170.10.133.124 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.b="e7v8kvNK" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1757409344; 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=C5QcXolarFAbpy368VuZzh5UPuxBsU6hGFK9X7XlUcw=; b=e7v8kvNKCbs9DXL26mSZt+DX4fA2hCpnM6TbhegcHvibiINI+znGk8rQg1DnZdozz3xTR9 dXCTt9wn1e1jLJfNvpAgHbQFcSdxFYIWzaWwl9KUI2fD/TQ/xKrkL0h2qzvd3JBPte52fT S99ENobe649jS0WFjhpUwU1AG1cJ65M= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-154-7cJqFdyNMCmfLTV2eblJJQ-1; Tue, 09 Sep 2025 05:15:40 -0400 X-MC-Unique: 7cJqFdyNMCmfLTV2eblJJQ-1 X-Mimecast-MFC-AGG-ID: 7cJqFdyNMCmfLTV2eblJJQ_1757409338 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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id EC39118004D8; Tue, 9 Sep 2025 09:15:37 +0000 (UTC) Received: from p16v.. (unknown [10.43.2.187]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id DF7A419560B4; Tue, 9 Sep 2025 09:15:33 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Cc: Jiri Pirko , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Jonathan Corbet , Prathosh Satish , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Michal Schmidt , Petr Oros , Przemek Kitszel Subject: [PATCH net-next v6 0/5] dpll: zl3073x: Add support for devlink flash Date: Tue, 9 Sep 2025 11:15:27 +0200 Message-ID: <20250909091532.11790-1-ivecera@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Add functionality for accessing device hardware registers, loading firmware bundles, and accessing the device's internal flash memory, and use it to implement the devlink flash functionality. Patch breakdown: Patch1: helpers to access hardware registers Patch2: low level functions to access flash memory Patch3: support to load firmware bundles Patch4: refactoring device initialization and helper functions for stopping and resuming device normal operation Patch5: devlink .flash_update callback implementation Changes: v6: * fixed documentation v5: * additional fixes for issues reported by Jakub v4: * fixed issues reported by Jakub (see patches' changelogs) v3: * fixed issues reported by Przemek (see patches' changelogs) v2: * fixed several warnings found by patchwork bot * added includes into new .c files * fixed typos * fixed uninitialized variable *** BLURB HERE *** Ivan Vecera (5): dpll: zl3073x: Add functions to access hardware registers dpll: zl3073x: Add low-level flash functions dpll: zl3073x: Add firmware loading functionality dpll: zl3073x: Refactor DPLL initialization dpll: zl3073x: Implement devlink flash callback Documentation/networking/devlink/zl3073x.rst | 14 + drivers/dpll/zl3073x/Makefile | 2 +- drivers/dpll/zl3073x/core.c | 362 +++++++--- drivers/dpll/zl3073x/core.h | 33 + drivers/dpll/zl3073x/devlink.c | 156 ++++- drivers/dpll/zl3073x/devlink.h | 3 + drivers/dpll/zl3073x/flash.c | 666 +++++++++++++++++++ drivers/dpll/zl3073x/flash.h | 29 + drivers/dpll/zl3073x/fw.c | 419 ++++++++++++ drivers/dpll/zl3073x/fw.h | 52 ++ drivers/dpll/zl3073x/regs.h | 51 ++ 11 files changed, 1696 insertions(+), 91 deletions(-) create mode 100644 drivers/dpll/zl3073x/flash.c create mode 100644 drivers/dpll/zl3073x/flash.h create mode 100644 drivers/dpll/zl3073x/fw.c create mode 100644 drivers/dpll/zl3073x/fw.h -- 2.49.1