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 0BCAE3C345D for ; Tue, 28 Apr 2026 15:49:21 +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=1777391363; cv=none; b=TI5k4vgyJga7EhOc5fWun6lYEubXrkyNwXQGE/AEBPqkiUggzpECmpSH+Prgpd8C4OpUY+A1CBI72WpNwxMQFiHG3tFL6tXG4zb+XvJ3egIOToF7dWINUqvtgZMZv9bN42DoepVhdjpfPPusDQ7fmd3KEhgonLPAc2BcQtCGxW8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777391363; c=relaxed/simple; bh=+Z5HXONavSEyjB//byLhSd6h81Jb2iPsZnkfpJKBF/M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oLJ6UdWovxscMPW9xfIy40yNpo/lDXQRJOvLcRVa2mzqBJuSqyHnVHgf418HU8lEYBWOuC/99sK1ec+ghuU+8HITAJRL0/8tbgAm2heeFjvleI4fAx3KsHTSZK62Q1ayS0DaCqEtOVIqXwejHmvK/sVNb6b6p9qzihQXdNwGcvI= 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=h2+C0/uW; 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="h2+C0/uW" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1777391361; 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=WnBL6blayqS159iiH3uewuzFbEY/o0MaGUqGJ2MjARg=; b=h2+C0/uWZb09PMfeS/lHynn+QTWzVT1yeYq1zgLJ9C2JPufT58Wf02f9uZbWCCN6A/Z6Lw HWgJJ0/jZVZnH5hoeiSDoeb/WsnmD92R1cavQbW1njXv618j7b96UljLbcay24SR1hDaVq TlKnGM1L2akChVvPY39IASTRmWC7QcU= 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 (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-670-aduUqFe-MSmZ_jmv-B7Avw-1; Tue, 28 Apr 2026 11:49:17 -0400 X-MC-Unique: aduUqFe-MSmZ_jmv-B7Avw-1 X-Mimecast-MFC-AGG-ID: aduUqFe-MSmZ_jmv-B7Avw_1777391355 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (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 E372B1956054; Tue, 28 Apr 2026 15:49:14 +0000 (UTC) Received: from p16v.redhat.com (unknown [10.44.49.234]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1B8DB300756E; Tue, 28 Apr 2026 15:49:08 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Cc: Arkadiusz Kubalewski , "David S. Miller" , Donald Hunter , Eric Dumazet , Jakub Kicinski , Jiri Pirko , Jonathan Corbet , Michal Schmidt , Paolo Abeni , Pasi Vaananen , Petr Oros , Prathosh Satish , Shuah Khan , Simon Horman , Vadim Fedorenko , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 0/2] dpll: add pin operational state Date: Tue, 28 Apr 2026 17:49:05 +0200 Message-ID: <20260428154907.2820654-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.4.1 on 10.30.177.4 Add pin operational state (operstate) to the DPLL subsystem to separate administrative intent from actual hardware status. Currently pin-state mixes what the user requested (connected, selectable, disconnected) with what the hardware is actually doing. This makes it difficult to diagnose situations where a user sets a pin as selectable or connected but the hardware cannot use it due to signal issues. The new operstate attribute is reported inside the pin-parent-device nest alongside the existing state and is read-only. Defined values: - active: pin is qualified and actively used by the DPLL - standby: pin is qualified but not actively used by the DPLL - no-signal: pin does not have a valid signal - qual-failed: pin signal failed qualification checks Patch 1 adds the operstate enum, netlink attribute and the operstate_on_dpll_get callback to the DPLL subsystem. It also updates Documentation/driver-api/dpll.rst to describe the separation between admin state and operational state. Patch 2 implements the callback for ZL3073x input pins using the reference monitor status register. It also refactors the existing state_on_dpll_get to return purely administrative state and switches periodic monitoring to track operstate changes. Ivan Vecera (2): dpll: add pin operational state dpll: zl3073x: implement pin operational state reporting Documentation/driver-api/dpll.rst | 38 +++++---- Documentation/netlink/specs/dpll.yaml | 31 ++++++++ drivers/dpll/dpll_netlink.c | 27 +++++++ drivers/dpll/dpll_nl.c | 3 +- drivers/dpll/dpll_nl.h | 2 +- drivers/dpll/zl3073x/dpll.c | 108 +++++++++++++++++--------- drivers/dpll/zl3073x/regs.h | 9 ++- include/linux/dpll.h | 6 ++ include/uapi/linux/dpll.h | 23 ++++++ 9 files changed, 192 insertions(+), 55 deletions(-) base-commit: 1f5ffc672165ff851063a5fd044b727ab2517ae3 -- 2.53.0