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=1795786812; b=L+4JWSdLEef8WTL30JFEut7JOhJHaE/zfnjZeac51MLDNGfrs7CiIcUmDptXOaX234UC 4YqSCrWtE0z27nONnmiYSWV4GlB2Gd+gcBHG8lwnEa9YflqkJ9BncX+xkVJAN0tDAsqLh hXR/vsLpG2qOZVw3Uaoya5PhXlm0c4h3cVaNxUCR0Keeh/oYh4wRsF2CCAAj4gOI+Esdp 8JuPP04IZf4bbEL5IjqD/kK9WWiwfLjVPaFmMipCymqGyhMSos+bPDeJJcD7FnqE2JJRl 6yUTi6hsJAI++kAXsQsgwqc7T4gFsxmp4NaLRHVGez+kQnha3Gv+zhdZmosZ3KIV+jg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795786812; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-Scanned-By; bh=D/BFyojwH8uW2gTjODdP45TT4XczkirDrns9OGOr3Ho=; b=3jA7wfwkjggD/r9s9WrnqXRbi+oMwKrpZx4hDG6I8fBK9rccQ6YcgP0eKhFK0QmGGfBV kE9Eqv31FRi1+E9xCBEsn0pBWbl1lFNcF6p0BSK5wXB2rtP0KacnU5atOGYun4bNnxLLG MoOYax42Ncw5adclDGgCNoDzVSosJrwWfnV6803Nc7vVQQTjymH8AfXhPWTxMrRZwAK7x JcMj2yp2I5+IKSeachWPFqCmx/iXgkCJeufHDnPnGDvSjG3b3L8ZJbdHgqpU8JL4XU91Y tvWU3dTb/IRVlj+MaizH+pbM/17k5ZkEq+b2Qv8HrBRgXcUyE0xrAPlh8T7Q6cAtm6A== 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="h/cH1u+n"; 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 4F554606A324 for ; Fri, 27 Nov 2026 13:40:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4F554606A324 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=h/cH1u+n DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795786810; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=D/BFyojwH8uW2gTjODdP45TT4XczkirDrns9OGOr3Ho=; b=h/cH1u+nwbPVMga4jEwMRSsPGWO15b0FhvplxsHt9fvgL8RSZFdckcZ6c2uIHSDzsHM+tc epsahVHGkn8IPYbEuUOzyq9uvw6LI05OqAUzeUlQceeOHVGW9dKKPjrv1i6SY/HiYIQNJu GH0OdWQIjrDER5gmWPzQwCYM/wFLge8= 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-175-4I1DoUC8N1akkwr8jRO8rA-1; Fri, 27 Nov 2026 13:40:04 +0000 X-MC-Unique: 4I1DoUC8N1akkwr8jRO8rA-1 X-Mimecast-MFC-AGG-ID: 4I1DoUC8N1akkwr8jRO8rA_1795786802 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 BC088195604C; Fri, 27 Nov 2026 13:40:01 +0000 (UTC) Received: from [100.91.101.41] (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 5A3571956042; Fri, 27 Nov 2026 13:39:57 +0000 (UTC) Message-ID: <0d89beb1-a997-48b7-aa85-201caf3860f7@redhat.com> Date: Fri, 27 Nov 2026 14:39:56 +0100 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 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v5 07/14] dpll: dpllsim: Add support to get/set priority on input pins To: Petr Oros , netdev@vger.kernel.org Cc: Jonathan Corbet , Shuah Khan , Shuah Khan , Randy Dunlap , Jani Nikula , Vadim Fedorenko , Arkadiusz Kubalewski , Jiri Pirko , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20261125090522.3777494-1-poros@redhat.com> <20261125090522.3777494-8-poros@redhat.com> Content-Language: en-US From: Ivan Vecera In-Reply-To: <20261125090522.3777494-8-poros@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 On 11/25/26 10:05, Petr Oros wrote: > Add support for getting and setting the priority of input pins. > Implement the prio_get and prio_set callbacks and advertise the > priority-can-change capability for input pins, which includes the MUX > type pins since those are always inputs. > > The initial priority of a pin is configured through a new prio attribute > of the pin directory, which takes a value between 0 and 255 and defaults > to 128, so that a test can lay out the reference order before the device > goes live. Like the other pin attributes it is writable only while the > device is not live. Priority changes made over netlink are stored and > reported back, the driver does not select a reference by them. They are > kept apart from the configured value, so that every live transition > starts from what configfs holds, the way the pin state starts from > disconnected, and the attribute keeps showing what was configured. The > setter rejects a value above 255 with EINVAL and an extack message. A > priority is meaningful for input pins only, so live fails with EINVAL > when an output pin was given a priority other than the default, next to > the frequency validation. > > Signed-off-by: Petr Oros Reviewed-by: Ivan Vecera