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 271AE3806AC for ; Wed, 14 Jan 2026 12:27:42 +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=1768393663; cv=none; b=A+hL2bUJTCiWSXYuxr2nKIqt2d89h20T6t9EjVjKBuEoCdUELLpy+ywPWN3j9ahATRgj23iGR+lPSH+xAd1Iga+hgI7ZrkW08ZwdBGS1aNygOHALkuGFH5cJSu7ZtH21l1lkEKp6HWsASqYT0ehRZpYJImaUHx2FxOTg1mhNN/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768393663; c=relaxed/simple; bh=RRMPE5Uwe3bGl6crR830X1+0XSG+3d4rfva3zN8Drvw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tvrkWzWq8O1Kllkgh3HDwlxyW/a3F/8pFd52oKedXzwDeANKVXPmd+IztxCoNPND1GTzdR2cKqMdaeOhsig0nPA1BI/vsPSsPoDmMg/LC43yZNnLU4Lyf+B9A0plWKd1d3AmAU0RRqgzvKK74uW6kS+PfBmDlcR63pshLH1m2OU= 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=LkUJKW4i; 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="LkUJKW4i" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1768393661; 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=E37khAmOowy5nW9WqJmZa4Qtgnu7VDjSJG9/3jN2iBY=; b=LkUJKW4i/Usur6FlN8aqAjUZNyVYpXLc0I/Z/d1Oc7xRufQ1++8njcmY6UluPl77OGqCHQ WbcUPi+e4KYuCTRMNxhcKvV7GqBRV7U4GQMkLA2KRup/G89rU74OaWqQHwRUO5M3VwkPe8 5iwtHOndCmlZLMPjmQQJMIiPWxfcvL0= 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 (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-38-8xD9JA1BNkOeOSltyDCPsg-1; Wed, 14 Jan 2026 07:27:34 -0500 X-MC-Unique: 8xD9JA1BNkOeOSltyDCPsg-1 X-Mimecast-MFC-AGG-ID: 8xD9JA1BNkOeOSltyDCPsg_1768393653 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 8FD4D19560B2; Wed, 14 Jan 2026 12:27:32 +0000 (UTC) Received: from p16v.luc.cera.cz (unknown [10.44.32.45]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 4E0A21956048; Wed, 14 Jan 2026 12:27:28 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Cc: Donald Hunter , Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Vadim Fedorenko , Arkadiusz Kubalewski , Jiri Pirko , Prathosh Satish , Petr Oros , linux-kernel@vger.kernel.org, Michal Schmidt Subject: [PATCH net-next v3 0/3] dpll: support mode switching Date: Wed, 14 Jan 2026 13:27:23 +0100 Message-ID: <20260114122726.120303-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.17 This series adds support for switching the working mode (automatic vs manual) of a DPLL device via netlink. Currently, the DPLL subsystem allows userspace to retrieve the current working mode but lacks the mechanism to configure it. Userspace is also unaware of which modes a specific device actually supports, as it currently assumes only the active mode is supported. The series addresses these limitations by: 1. Introducing .supported_modes_get() callback to allow drivers to report all modes capable of running on the device. 2. Introducing .mode_set() callback and updating the netlink policy to allow userspace to request a mode change. 3. Implementing these callbacks in the zl3073x driver, enabling dynamic switching between automatic and manual modes. Changelog: v3 - fixed reverse xmas tree order in dpll_mode_set() v2 - addressed issues reported by Vadim Ivan Vecera (3): dpll: add dpll_device op to get supported modes dpll: add dpll_device op to set working mode dpll: zl3073x: Implement device mode setting support Documentation/netlink/specs/dpll.yaml | 1 + drivers/dpll/dpll_netlink.c | 71 ++++++++++++++-- drivers/dpll/dpll_nl.c | 1 + drivers/dpll/zl3073x/dpll.c | 112 ++++++++++++++++++++++++++ include/linux/dpll.h | 5 ++ 5 files changed, 182 insertions(+), 8 deletions(-) -- 2.52.0