Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2663171rwd; Wed, 14 Jun 2023 06:03:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4NruyQl7Q1W9uJ8apEH3XcvgjKbgl0/l8QP6s0/LabkueGgEasIZuyYRmHDx2dY2heIPVq X-Received: by 2002:a17:907:3f82:b0:96a:48ed:5333 with SMTP id hr2-20020a1709073f8200b0096a48ed5333mr16295416ejc.50.1686747807175; Wed, 14 Jun 2023 06:03:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686747807; cv=pass; d=google.com; s=arc-20160816; b=JS608jhH+iuMBEuMXPvljb81Dm/N5IwiyVzR72G6eX/PaH/bp+D4j3u9BaqqTTaxem x8rO3DTaQSnXWTtYelNo67g4gsd7/LSWoLyhqOLGqH25CdV7L3y8sEVVWhvknRm5po5t PuhaGY2QIYd4FkqSy7GjMhR2DnV8jq2kMpQpyaPwPbJ654plw/ereqR8Qn0tv9MdbxXh FYjp4cWduBqy3dzi5t02g9TBM1/WUK+GmnH1zcfjcc+QpmQWoOIyCvo9Y3l5DyPnwB5i /fOMjeKxvUYXznM23sya/aBEdOe+nhM3RrZHtVzXe+86UAz3no4uo5ldiI12C+nyrVbv b/yg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=MNppMuHMeKgysJXC7EbfiSUuwwHRpmAenVaDNktN3WI=; b=pwtCrXbR42ywhrTSlzPH0TbmVoX+OvhxQ2y7Jhb32v/gytfOXWz74fkmAbXI5gLN7z KxhXqutNwyH9jnzhNbij/19TCsnboeZ/Hlo4KSj6KFtlIxtZ6UelNKrZzn6ZXf+TGKWQ 6kVWmYjBioUNun8+8xNzX95KoCJHbQt7sV48xk1nPhFkD2eMUnJVUzGcYUqerAoh3zDi TnxXFsi8dgEmLtwVY5FdK36miUyTsNMJSWgCI4n6ACMsj6LQc9RTANmOx+OjcIqeDX1n 6go1CUt/jHmhxMszbzb82bKKhWIqMadf5aGLJab3KYig6JoznZDk2DIl4BQzvvUO4PP0 xRQQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=njVxilXK; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id uz7-20020a170907118700b0096a8202e209si8393608ejb.955.2023.06.14.06.02.48; Wed, 14 Jun 2023 06:03:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=njVxilXK; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244192AbjFNMVk (ORCPT + 99 others); Wed, 14 Jun 2023 08:21:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236192AbjFNMVi (ORCPT ); Wed, 14 Jun 2023 08:21:38 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2197219BC; Wed, 14 Jun 2023 05:21:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686745297; x=1718281297; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=z5gmdTwtb6kwOc2vCBWsrVKOmbNlwWSzFIbHOtcaN0E=; b=njVxilXKuF/gizzYSRUkZBuSmmUdCFLFfTjyhrW/W3MC1Ti5KOXH7KDj aeUhkol2JLJgB6lMGBH8xNY+XWlEj4/vdG2FX5VbheLsB2FHAFRKMkPtU Hqcx+y4RRZ1oMHgH9B3VvFwS2RDKKtBkU3PtBBLOIYUxZjR3QaNe3p/Q/ vPrsXOnFPKIAHVP4zzO5uaXYoKDdCWT3eJJ3qhAaz/nqzfN0J4Y3CuAcb duYsjYTz2emzpqXRoPhZknLMjN/EIoO0UwsaBWeYfCDfLnZkZ1TZnMe31 fasKUsD5IpO6KgdGO4FIIpOdmltZTAej4Zmf9X77h1ufgXbH64/QWVdeh A==; X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="361969033" X-IronPort-AV: E=Sophos;i="6.00,242,1681196400"; d="scan'208";a="361969033" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2023 05:21:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="958783277" X-IronPort-AV: E=Sophos;i="6.00,242,1681196400"; d="scan'208";a="958783277" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga006.fm.intel.com with ESMTP; 14 Jun 2023 05:21:34 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 14 Jun 2023 05:21:33 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Wed, 14 Jun 2023 05:21:33 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.173) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Wed, 14 Jun 2023 05:21:33 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C1omFlvQfFrkBWC1OZGpdPrUDn4yW/17kWTm3qPA25q/5IeYT/fTwsF9BMY9wSzwgPQVhqsCiosIApeM3ZY3xKmyBoFxKGDq0YdYYRdXFW01xwnrrQ4aua+DtGVcOHYQUMcSVCtLN7XxNJvo0sCsqkWlZDDUGkr1I0zyawloAmHn8SvnArpZIB2NgUMH65TygzvBmmoJbVFKP17U0dR0eKJXr/fH/dVp4FGLIlb0UFN8yY0qOwbbEo0iZrY6p8ZnBBgP+3VPriHhVv1ygCU/qTAkO+GWV2IfbmJ/tL7NqYtwtrIC9Ig3/c0oQnAbvu3tmN8jDIU3FR6xupmz7zR/bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MNppMuHMeKgysJXC7EbfiSUuwwHRpmAenVaDNktN3WI=; b=BuOLWplT2+TZ7NRX3GY9rWn/SDSFX15QRo9UROH7xGUoDoeM39xDg1vkA0/0FtfNJzi4X6mKj5Af18CXUr8NEPE6lLMSELXpGVs7nRxFvkYKyPnHBp4ajN1Bb4jx13reEjrVnHyZQYzvYd0oX99gvViyZB8rZYyzV8a9lmHo5g/5OSwtdcvGopP679rQ0DHkjWwpBAc3+N5fQ8gDiULgKEpWL8RbGE1tmDUowhXOccQhEgx96eCJe7NUj6q3N+FfXaK0JxKkDp43TFZ+jXuhLbRovnEb7USpXv7YiiEchxr5Iq+Ul/vT0mHdC6jkIzdItRuV88mWHa9qyHUv0VcOlQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM6PR11MB4657.namprd11.prod.outlook.com (2603:10b6:5:2a6::7) by PH7PR11MB5796.namprd11.prod.outlook.com (2603:10b6:510:13b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.39; Wed, 14 Jun 2023 12:21:30 +0000 Received: from DM6PR11MB4657.namprd11.prod.outlook.com ([fe80::24bd:974b:5c01:83d6]) by DM6PR11MB4657.namprd11.prod.outlook.com ([fe80::24bd:974b:5c01:83d6%3]) with mapi id 15.20.6455.045; Wed, 14 Jun 2023 12:21:30 +0000 From: "Kubalewski, Arkadiusz" To: Jiri Pirko , Jakub Kicinski CC: "vadfed@meta.com" , "jonathan.lemon@gmail.com" , "pabeni@redhat.com" , "corbet@lwn.net" , "davem@davemloft.net" , "edumazet@google.com" , "vadfed@fb.com" , "Brandeburg, Jesse" , "Nguyen, Anthony L" , "M, Saeed" , "leon@kernel.org" , "richardcochran@gmail.com" , "sj@kernel.org" , "javierm@redhat.com" , "ricardo.canuelo@collabora.com" , "mst@redhat.com" , "tzimmermann@suse.de" , "Michalik, Michal" , "gregkh@linuxfoundation.org" , "jacek.lawrynowicz@linux.intel.com" , "airlied@redhat.com" , "ogabbay@kernel.org" , "arnd@arndb.de" , "nipun.gupta@amd.com" , "axboe@kernel.dk" , "linux@zary.sk" , "masahiroy@kernel.org" , "benjamin.tissoires@redhat.com" , "geert+renesas@glider.be" , "Olech, Milena" , "kuniyu@amazon.com" , "liuhangbin@gmail.com" , "hkallweit1@gmail.com" , "andy.ren@getcruise.com" , "razor@blackwall.org" , "idosch@nvidia.com" , "lucien.xin@gmail.com" , "nicolas.dichtel@6wind.com" , "phil@nwl.cc" , "claudiajkang@gmail.com" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "intel-wired-lan@lists.osuosl.org" , "linux-rdma@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , poros , mschmidt , "linux-clk@vger.kernel.org" , "vadim.fedorenko@linux.dev" Subject: RE: [RFC PATCH v8 01/10] dpll: documentation on DPLL subsystem interface Thread-Topic: [RFC PATCH v8 01/10] dpll: documentation on DPLL subsystem interface Thread-Index: AQHZmszoYeH83BxaW02EVqODRhjpgq+HyQOAgAC7rICAAHCNgIABGgiAgAAa0HA= Date: Wed, 14 Jun 2023 12:21:29 +0000 Message-ID: References: <20230609121853.3607724-1-arkadiusz.kubalewski@intel.com> <20230609121853.3607724-2-arkadiusz.kubalewski@intel.com> <20230612154329.7bd2d52f@kernel.org> <20230613093801.735cd341@kernel.org> In-Reply-To: Accept-Language: pl-PL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM6PR11MB4657:EE_|PH7PR11MB5796:EE_ x-ms-office365-filtering-correlation-id: f0b35c82-0ea3-4325-bf06-08db6cd1e1c6 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FQ3S3Ai8cSdjphnRCRwn8nBqKEQNRtzfiHUBa2ScebqN0pmorIE40SX7aMfxEy0wg4Z7Dzj2J7P//TqW5CRMlaOefztXEql6Usq9/mVYf7w8dh2TSO0X1uFySY1g62bfABiiWJcmUXjB/H1sC8ik/0vOztKb0L9kY743/vA3tcVB394VjkQfla9kgXrPN+1/gm0h0Op6NNBraCeSUiB7VIQar7kSBRaQXhNULAHTtPL005c/9ciWZdr5cRHcqs3gY2MPs3OXuEGNEEic3Vh5uc7JpSIzN5zqliOGu6GdfC2fyoxU60OGpEzichXfF5NAn7oaLtKuQL5fRld6iqGDXjWivGg81I8rcatcZLcjA0vtMbBauCGgx685eujULFXhwWhJoNFtKBUFOsUrHqUqzsm8PQLSfAizZDqD9d50tIfVknKV30BiVuI4vDIUrWUfmgV1MY5CGPFbR7Urj1kMvAIRdHaasPUOZzmpZkUQ9fZ9BZn81AiAJkgXUCGNCnZUihaxA5FHytkzegoutY9Z8/zacH9TcwGHbz4M5DWaglnSaFxSnlSWsrz5KDyTujzIcWMZWbfvhjWIH5ufnDG512P9CwKvxm80Q6a58PjDi/R8YTFfizGFbFsOrO3rMXJY x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB4657.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(136003)(376002)(366004)(39860400002)(396003)(346002)(451199021)(66946007)(4326008)(66556008)(64756008)(76116006)(66476007)(478600001)(110136005)(8676002)(5660300002)(8936002)(54906003)(71200400001)(66446008)(52536014)(41300700001)(7696005)(316002)(38100700002)(122000001)(82960400001)(6506007)(26005)(7406005)(7416002)(186003)(83380400001)(86362001)(38070700005)(9686003)(2906002)(33656002)(55016003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?CQpz9DIX3FVTzO40Pha6iEnBS1P9r3vA+UaVyO4SSZ0nReqb9vXpe+26e+qH?= =?us-ascii?Q?UvoaMN9PSn8UMAzeirj/VMqdU6+r5BSKIVeL0pvzT4E6ePVQIVwpbqNB9yr8?= =?us-ascii?Q?CsuPDWkL/9HDSJPVjsAFP6Vm6aCbDHDaehVvxsJ+BQx0LHmQ0tDVo5AHw6mp?= =?us-ascii?Q?FQvOGmM+xqOO2kuIKsQoc1wSVZOFV4G3HUjwpZYKjaZW+2fxljd4Wd7YOqRo?= =?us-ascii?Q?90G/9qtnccVp1QoneyC4x8up5oa6M8D158HJcGAaU+F6OZgGF7ciRwyEwRLV?= =?us-ascii?Q?V50H8qPNNV2QajWZ3ppz9UmW6PhKQVMUYPwclMT74TsIIW4nbC5A4Cyd0CXC?= =?us-ascii?Q?xoJzMiEWoqbJJqZ9E4/XT5UW8sAgbCIYogWTEOAud4VTCiRPfORlIbUlhXho?= =?us-ascii?Q?JJOcalFGi9zvh0WzlzjD6cFzoz7EQhZR8mlrMn7zx0C6Qh0r0uY5iKEN889w?= =?us-ascii?Q?KuOB/HDKxELtOyJbCU1jMc0U/5ARM5wjTpfkxAH57VxLQoHtpHrBFohbWPgo?= =?us-ascii?Q?s+CDfVhqrvgRWD9zSVrPL2UMNDZ7JSSIjgxULq8TgqtOwX24YpsCG8gjG5Qo?= =?us-ascii?Q?8VhGSnLncUH+XpcW9cA9BqgCQhHDveNSLC6PMXrqecZqytSSkis5qLzj7pk8?= =?us-ascii?Q?+DQmxEX2pqzE16q5rVcgta0PTxfY0GH0Y1fkpL7F/h53FV4TyJzBGUxVlCLf?= =?us-ascii?Q?zZ23w8M6ROuxt3jmAbMZA8105fvUHADtIdk74rqH9V8d4tHMENgvT6dWEA3y?= =?us-ascii?Q?8OWJ2ylQfUUX+SLuYepAxlJ7O/YxuMZPDnovAaGPt6psmrYYt+kWWRthbxOn?= =?us-ascii?Q?lNwEhuvFyFIykWeliv+hs8szDYemTbUo1Yvk9vYOLm4C8fQ4UhsTzHbKdYqj?= =?us-ascii?Q?QY2aeqvGcS7495QIVHkqftqs+irR+C1KQjJ+n/TgMcrW0zfgC7YvWGAjgs28?= =?us-ascii?Q?MzaKgwWDlIqaxfO0fWmkC7tZ1jiwSOCq741eacsKKsUtuTexahqHMsUiqeTq?= =?us-ascii?Q?985e4zv7Yl6QshniO3/mhNpb1VhfGSuG2xGPmJrZ4tr/MCLZZ9RCU0TO6Mqw?= =?us-ascii?Q?1avHpDSAKwTLi+Wy02reuN1yGEZ5RHADP8aqWfX7dUrZTDj56ApI4ZRnyE2O?= =?us-ascii?Q?TueAWL1HtmEQi8juzY1vkXgMyi31/PcDNcck57u3MuL4hRdjkb9cIIk6R1vN?= =?us-ascii?Q?CvfIkCtafescHSruukJ27qXSqTOsKIIF6QtZEny/NrazQt72tADj+vY4Tgw8?= =?us-ascii?Q?sP/fnqD7tdtg4RjcARKCZcevhYLO0aUNECHOy0hjJt5y4WVv6wILVGnsfGlv?= =?us-ascii?Q?iw4wvonJCrOgBTlxsXz4APkVSPAqAkOD82A1EM2ZMK060I+dnDQ9GhTN39jK?= =?us-ascii?Q?zvei9mK2+FNpXpKgkOf3h3YEVKjmvM6/452vbkwL1Ykyb5g07ojFN+hE586O?= =?us-ascii?Q?G9dLZzVxmbUrPvxQ7SDdNTvT85tCs5yHTr5V3G96xcZRKIih7SRdDnpRLNK9?= =?us-ascii?Q?gI89HcI6KoIea2q4PhoMGT7AABFvpTPnbHD51YhX5puGhOumWND7aF+Lj9Yq?= =?us-ascii?Q?xxKEY3z7mOcnF2/F7rPxoKC8HG8Z+MkMsf66JEC11X43Kxc5N+6cmghz4GZi?= =?us-ascii?Q?Rg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4657.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f0b35c82-0ea3-4325-bf06-08db6cd1e1c6 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jun 2023 12:21:29.4752 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 1dJdcOamgTJzDk35+9p4WjDIVAn0C9f11hmRmAtcI3ujO6N2jSkT5KvZEGXZw/7ZeHQ5TRWoijhaan6B+MH1fSdWu2x1l92ZpF4X4tk9Dmw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB5796 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >From: Jiri Pirko >Sent: Wednesday, June 14, 2023 11:27 AM > >Tue, Jun 13, 2023 at 06:38:01PM CEST, kuba@kernel.org wrote: >>On Tue, 13 Jun 2023 11:55:11 +0200 Jiri Pirko wrote: >>> >> +``'pin': [{ >>> >> + {'clock-id': 282574471561216, >>> >> + 'module-name': 'ice', >>> >> + 'pin-dpll-caps': 4, >>> >> + 'pin-id': 13, >>> >> + 'pin-parent': [{'pin-id': 2, 'pin-state': 'connected'}, >>> >> + {'pin-id': 3, 'pin-state': 'disconnected'}, >>> >> + {'id': 0, 'pin-direction': 'input'}, >>> >> + {'id': 1, 'pin-direction': 'input'}], >>> >> + 'pin-type': 'synce-eth-port'} >>> >> +}]`` >>> > >>> >It seems like pin-parent is overloaded, can we split it into two >>> >different nests? >>> >>> Yeah, we had it as two and converged to this one. The thing is, the res= t >>> of the attrs are the same for both parent pin and parent device. I link >>> it this way a bit better. No strong feeling. >> >>Do you mean the same attribute enum / "space" / "set"? > >Yeah, that is my understanding. Arkadiusz, could you please clarify? > From user perspective the pin object is configured either: - by itself (DPLL_A_PIN_FREQUENCY), as this affects all registered pin's dp= lls=20 and frequency set ops are called on all of them, - in a tuples, where ops are called only on particular parent object: - pin:'dpll device' (DPLL_A_PIN_STATE, DPLL_A_PIN_PRIO, DPLL_A_PIN_DIRECT= ION), - pin:'parent MUX-type pin' (DPLL_A_PIN_STATE). =20 Right now DPLL_A_PIN_PARENT nest can convey both parent types: - if the nest contains DPLL_A_ID, other attributes describe config with the parent dpll device, - if it contains DPLL_A_PIN_ID, the other attributes describe config with t= he parent pin. The above example is actually a bit misleading, as this relates to the muxe= d pin. From user perspective the information on parent dpll devices is redund= ant, and I think in this case we shall not pass it to the user, as the pin was n= ot explicitly registered with a device by device driver. The user shall only get parent pin related info, like: ``'pin': [{ {'clock-id': 282574471561216, 'module-name': 'ice', 'pin-dpll-caps': 4, 'pin-id': 13, 'pin-parent': [{'pin-id': 2, 'pin-state': 'connected'}, {'pin-id': 3, 'pin-state': 'disconnected'}, 'pin-type': 'synce-eth-port'} }]`` Thus will fix this by removing the parent device information from the muxed pins info. But to answer the question: for now it seems good enough to have the PIN_PA= RENT nest that conveys either parent pin or parent dpll device information. IMHO the real question here is about the future, are we going to add pin-pa= rent only config, which would not be a part of pin-device superset and would mak= e things unclear? Unfortunately I don't have on my mind anything more that would be needed fo= r pin:parent_pin tuple.. Surely, we can skip this discussion and split the nest attr into something = like: - PIN_A_PIN_PARENT_DEVICE, - PIN_A_PIN_PARENT_PIN. > >>In the example above the attributes present don't seem to overlap. >>For user space its an extra if to sift thru the objects under >>pin-parent. >> >>> >Also sounds like setting pin attrs and pin-parent attrs should be >>> >different commands. >>> >>> Could be, but what't the benefit? Also, you are not configuring >>> pin-parent. You are configuring pin:pin-parent tuple. Basically the pin >>> configuration as a child. So this is mainly config of the pin itsest >>> Therefore does not really make sense to me to split to two comments. >> >>Clarity of the API. If muxing everything thru few calls was the goal >>we should also have very few members in struct dpll_pin_ops, and we >>don't. > >How the the internal kernel api related to the uapi? I mean, it's quite >common to have 1:N relationsip between cmd and op. I have to be missing >your point. Could you be more specific please? > >Current code presents PIN_SET command with accepts structured set of >attribute to be set. The core-driver api is pretty clear. Squashing to >a single op would be disaster. Having one command per attr looks like an >overkill without any real benefit. How exactly do you propose to change >this? Well, I agree that one command per attribute might be an overkill. Thank you, Arkadiusz