From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9D93EC3DA6F for ; Thu, 24 Aug 2023 07:00:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RmxS6eL2ErvxzqslJK4xQhSz5sHVly56wXQ1xtAxNpE=; b=kAUrAtgZAu5tmb C7tU9j2Dwi0HjwU9865MPAo+mlh8Rm31pcVvNZTvH9ibavE4QlHD+XgCRUPqFaWkP6X/wzse5TuBw fPUjxqaVWee87pTq751Hjv1G1e6ku4Mb8vRDZaLmSTugef4EdANrOvk4T4nwbukgJHKvuRr0G9+tX 7bp7OvRgepAHH0QdbYpwfMv8JnTnEktawmwcdc8BUpcdngiVy8mlg1Wi82tul+RD5YSCkDPSHXmkA ue0g8SRrPaZcJu19ATJaoGu/UNGhLsAnIQIaPsBV9I0lGlNvjL0MS2nI+A+EaQpf5fUqHAfP+5llZ kNVwXbo8uOxMcfQ14njQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qZ4Js-002Mk7-3D; Thu, 24 Aug 2023 06:59:53 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qZ4Jo-002Miz-1w for linux-arm-kernel@lists.infradead.org; Thu, 24 Aug 2023 06:59:51 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-31c3726cc45so3820125f8f.0 for ; Wed, 23 Aug 2023 23:59:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20221208.gappssmtp.com; s=20221208; t=1692860384; x=1693465184; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=+xVvlCGex8MTTZYxV9+n6jIh21hrXPC9JzY4cLwH6KA=; b=JA/SlRiSGXLmyf4uxdL8Ezug//3djjbWkWBwFLDDwMEZb8sfx3E/tGZNzckZiddzdY vzZdao/SmZppv1Jwr8TYyz+1EEMuiXtaqhPJ7UsLHabhBVyNQllseyx+wcxHnck5PYfx 3hjWgKX243esYSmP+UJ9iPL8O54M2Y1okgV06RTexXMWQJin22ja0auiPFgIJxZxJuaI 0qIi2d3hAdKgKRPFYf5Kr6t0K2llnb2ccWk78c7jf4OX2MR20VO/5sXnz2HOzK16yds/ PV7MZCBC2Ro5kwyuyRG7lb7ghiiAWapS+FketmqQpxWVxUlSyzuqj3dxhlKM2K9It+vQ 2oRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692860384; x=1693465184; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+xVvlCGex8MTTZYxV9+n6jIh21hrXPC9JzY4cLwH6KA=; b=RHPcQzJpVLy6eTBF2vDsCPMmisl/GqaBy6OhRQIZnxcrVNb9xipX1SW2Zin1tiG/m7 QGJyukwfXfYVMFBIgDR3id594fZOK11cmr22v/cRlaMHwfw7QHem+analhUf83LD3yPe wkFcmf498jMKdeLL6JcmzXC1N6SX2x94z+CAWRSo7LP8Sgnm7pzd4MbSdZM7Z3YT1TtD BUqfmHhn14zXdgCG4PG0pc0Xxi0Ii6CfiIdaJS+QZMPiVX8aOK/9+P4lKKhXgJWl9f+s WTUIIonMY79ObKW0cWsufvO4Vjo6ebnTH4HTji0GMVfTy9MikxrKEo1FAV+3GNBQkgBl cJDg== X-Gm-Message-State: AOJu0YxF1aGQ2UYf5TWzu09rvYQ8li/uEZZlfBoxdZfSC0FkJufSwsNv pGUhM8p7NzP/qfBu6Uc+0YIygw== X-Google-Smtp-Source: AGHT+IHV5h/gWiGqWISIXTEBzuyi+BE2xkRY/zgFh1SxLekzv+sqKnQhfmfoEMGVAG+tjnX0+xWpsg== X-Received: by 2002:adf:edca:0:b0:31a:d7fc:28f with SMTP id v10-20020adfedca000000b0031ad7fc028fmr12034332wro.19.1692860384103; Wed, 23 Aug 2023 23:59:44 -0700 (PDT) Received: from localhost ([212.23.236.67]) by smtp.gmail.com with ESMTPSA id y17-20020adfe6d1000000b003176eab8868sm21246718wrm.82.2023.08.23.23.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Aug 2023 23:59:43 -0700 (PDT) Date: Thu, 24 Aug 2023 08:59:42 +0200 From: Jiri Pirko To: Vadim Fedorenko Cc: Jakub Kicinski , Arkadiusz Kubalewski , Jonathan Lemon , Paolo Abeni , Milena Olech , Michal Michalik , linux-arm-kernel@lists.infradead.org, poros@redhat.com, mschmidt@redhat.com, netdev@vger.kernel.org, linux-clk@vger.kernel.org, Bart Van Assche , intel-wired-lan@lists.osuosl.org Subject: Re: [PATCH net-next v6 0/9] Create common DPLL configuration API Message-ID: References: <20230823225242.817957-1-vadim.fedorenko@linux.dev> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230823225242.817957-1-vadim.fedorenko@linux.dev> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230823_235948_881415_68324618 X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Thu, Aug 24, 2023 at 12:52:33AM CEST, vadim.fedorenko@linux.dev wrote: >Implement common API for DPLL configuration and status reporting. >The API utilises netlink interface as transport for commands and event >notifications. This API aims to extend current pin configuration >provided by PTP subsystem and make it flexible and easy to cover >complex configurations. > >Netlink interface is based on ynl spec, it allows use of in-kernel >tools/net/ynl/cli.py application to control the interface with properly >formated command and json attribute strings. Here are few command >examples of how it works with `ice` driver on supported NIC: > >- dump dpll devices: >$ sudo ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/dpll.yaml \ >--dump device-get >[{'clock-id': 4658613174691613800, > 'id': 0, > 'lock-status': 'locked-ho-acq', > 'mode': 'automatic', > 'mode-supported': ['automatic'], > 'module-name': 'ice', > 'type': 'eec'}, > {'clock-id': 4658613174691613800, > 'id': 1, > 'lock-status': 'locked-ho-acq', > 'mode': 'automatic', > 'mode-supported': ['automatic'], > 'module-name': 'ice', > 'type': 'pps'}] > >- get single pin info: >$ sudo ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/dpll.yaml \ >--do pin-get --json '{"id":2}' >{'board-label': 'C827_0-RCLKA', > 'clock-id': 4658613174691613800, > 'capabilities': 6, > 'frequency': 1953125, > 'id': 2, > 'module-name': 'ice', > 'parent-device': [{'direction': 'input', > 'parent-id': 0, > 'prio': 9, > 'state': 'disconnected'}, > {'direction': 'input', > 'parent-id': 1, > 'prio': 9, > 'state': 'disconnected'}], > 'type': 'mux'} > >- set pin's state on dpll: >$ sudo ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/dpll.yaml \ >--do pin-set --json '{"id":2, "parent-device":{"parent-id":1, "state":2}}' > >- set pin's prio on dpll: >$ sudo ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/dpll.yaml \ >--do pin-set --json '{"id":2, "parent-device":{"parent-id":1, "prio":4}}' > >- set pin's state on parent pin: >$ sudo ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/dpll.yaml \ >--do pin-set --json '{"id":13, "parent-pin":{"parent-id":2, "state":1}}' > > >Changelog: > >v5 -> v6: >- change dpll-caps to pin capabilities and adjust enum accordingly >- remove dpll.h from netdevice.h For the record, I'm fine with this version and my signed-offs stand. Thanks! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel