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=1795725223; b=SvSSNQpxzxt8Q6QaJUEpJi79ywcjUbrN3yEeFE7DItEXkW8sRpUafKimTuI9jbpU95bz ZuuykenvFchVY7bXTQ1ST26OgD+AFyOJjoTMNTBd+QWcmyItSW3+WLSB1khBmCkw7LWHf MsMWobkPHrFw05RHGSKIeRTugSK/w1omB968FJtqZHdkMVX5uEM6eV1Xx/o/BSS1RQGQV hU11qYGUme5+x0BJxoxNWzZmPRUyBMGKyY+IabscIku3V/QBxEkO7uAnvauv3pem282Y5 r4nL0Jl9bNSlMFtfl4vXL9+FTvbjHcgETfiJnX1e9lZoQ+qgw1YLo2G9vPbqXV9FSHA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795725223; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:From:To:Cc:Subject:Date: Message-ID:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Scanned-By; bh=6+IvshoIOnpz5rdUCHpe36q5hslcK32E1hpH+6SscWk=; b=Lk8svEUqQnXdx0Pdf6/aanrXjFi4DmKA9gtMggI7To9WGgNa4Y70b7seI8ASpCi9NhEU 8X6Oj2MRVeUcAHMX9BNcbJFsAnY+R3ixVpZMF0LRg390s8SUG/2/sEL2SSPyEATrcwsAE fTWWvvasfms4YIey23XZ/j8YqMQGjyA3RK6iYfYGiPSE+Xd+FPbuLp8zefdR3i7zAyLYQ mNV37zUs3XMBWVepW2SS1U/35Nyn4MoWvF0JipIgxR9+446bELWyC1v+R01k21gZ0BA7o DQmnCV9lmFytP+vUbY6BtAdetYVm4bjPFXjxqbGHfZoA+Ek/Yh36rNF/kTp9CkqEsVQ== 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=iYcInpAX; 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 752CC606A32F for ; Thu, 26 Nov 2026 20:33:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 752CC606A32F 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=iYcInpAX DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795725221; 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: in-reply-to:in-reply-to:references:references; bh=6+IvshoIOnpz5rdUCHpe36q5hslcK32E1hpH+6SscWk=; b=iYcInpAXOndnoFwBmSgoNBqFF6hGHgbv9BBMX/J5I330GLpWwePsgKk4EL5mdhpiw1JASc b7OhluCQshZJ0Umip68LfTZ84WK8GaJziEufYLiJnEaqQTr4n+hDl3aVbQx/tBN1HYc1aZ aLvyxhvvOHLCeiQmg840ioFGPNHvMYQ= 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-518-HfJwxuRLNPWteVoBnAXBug-1; Thu, 26 Nov 2026 20:33:38 +0000 X-MC-Unique: HfJwxuRLNPWteVoBnAXBug-1 X-Mimecast-MFC-AGG-ID: HfJwxuRLNPWteVoBnAXBug_1795725215 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (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 30D2219541A6; Thu, 26 Nov 2026 20:33:35 +0000 (UTC) Received: from ivecera-thinkpadp16vgen1.tpbc.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 0195D1801977; Thu, 26 Nov 2026 20:33:28 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Cc: Vadim Fedorenko , Arkadiusz Kubalewski , Jiri Pirko , Jonathan Corbet , Shuah Khan , Randy Dunlap , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Donald Hunter , Tony Nguyen , Przemek Kitszel , Andrew Lunn , Alexander Lobakin , Richard Cochran , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org, Min Li , Grzegorz Nitka , Karol Kolacinski , Saeed Mahameed , Tariq Toukan , Petr Oros Subject: [PATCH RFC net-next 08/19] dpll: drop the state change exception for pins with a firmware node Date: Thu, 26 Nov 2026 21:32:20 +0100 Message-ID: <20261126203231.934632-9-ivecera@redhat.com> In-Reply-To: <20261126203231.934632-1-ivecera@redhat.com> References: <20261126203231.934632-1-ivecera@redhat.com> 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 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Commit 521b6d5de08d ("dpll: allow fwnode pins to attempt state change without capability bit") let user space try to set the state of a pin with a firmware node also without DPLL_PIN_CAPABILITIES_STATE_CAN_CHANGE. It was needed for the zl3073x output pins that ice registered with its TXC and TSPLL DPLLs. ice now uses its own pins, which have the capability, and zl3073x, the only driver that sets a firmware node, gives it to every pin whose state can be set. Check the capability for all pins again. Signed-off-by: Ivan Vecera --- drivers/dpll/dpll_netlink.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/dpll/dpll_netlink.c b/drivers/dpll/dpll_netlink.c index 931ea2027cf68f..fab234553b422a 100644 --- a/drivers/dpll/dpll_netlink.c +++ b/drivers/dpll/dpll_netlink.c @@ -1328,11 +1328,8 @@ dpll_pin_on_pin_state_set(struct dpll_pin *pin, u32 parent_idx, unsigned long i; int ret; - /* fwnode pins may not set the capability bit upfront; let the ops - * layer return -EOPNOTSUPP if the operation is unsupported. - */ if (!(DPLL_PIN_CAPABILITIES_STATE_CAN_CHANGE & - pin->prop.capabilities) && !pin->fwnode) { + pin->prop.capabilities)) { NL_SET_ERR_MSG(extack, "state changing is not allowed"); return -EOPNOTSUPP; } @@ -1367,11 +1364,8 @@ dpll_pin_state_set(struct dpll_device *dpll, struct dpll_pin *pin, struct dpll_pin_ref *ref; int ret; - /* fwnode pins may not set the capability bit upfront; let the ops - * layer return -EOPNOTSUPP if the operation is unsupported. - */ if (!(DPLL_PIN_CAPABILITIES_STATE_CAN_CHANGE & - pin->prop.capabilities) && !pin->fwnode) { + pin->prop.capabilities)) { NL_SET_ERR_MSG(extack, "state changing is not allowed"); return -EOPNOTSUPP; } -- 2.56.1