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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E436C433FE for ; Wed, 12 Oct 2022 10:47:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229776AbiJLKrt (ORCPT ); Wed, 12 Oct 2022 06:47:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbiJLKr1 (ORCPT ); Wed, 12 Oct 2022 06:47:27 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02AF718B2F for ; Wed, 12 Oct 2022 03:47:24 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id a13so23942195edj.0 for ; Wed, 12 Oct 2022 03:47:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20210112.gappssmtp.com; s=20210112; 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=PRLFl99z4Qh40hibjlbXNBI2f8AmJHV10KT8Ud2jnW0=; b=RPFFAFkuF3ZmnOxRRJG+vn+gmsZAkgduOtz1BYhrrSJ2vEE+IpB8yYapYpc+uAPj9U sajuVEdVGpYFWRCBmiCXo6e+uLeBEcYIIl79v566ZnOxY3Z3ThmvCTo6OHmuoKjYzb/H AL96kjatOeq1qIjlaQ2EAuJnn+xTdqAgktKT53WM7BvPjECaiA2zeNRfcVD9U2EAIghk 7kkJEjjmu2vHK1gTVgQm08fUTByqXku64zMZCmzGImU3Loj3hHaGZXvIXBGzE0g4Q/Kx ySh2dfVO7KDRC79gH9ieV+kpLG2Ktnq1kIJyV8+GeboQfDICTBGyN5p0oPD4ZSwBmQvW AHJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=PRLFl99z4Qh40hibjlbXNBI2f8AmJHV10KT8Ud2jnW0=; b=KpfQ7tYfvuNacePTr2VfdmgOLLXCSDOmVV7n8QMs05vXpZDfLI/F8T8w/cLTk9/ha5 MnxVyTJCUGzwYzoYyqwwY3IZ8mcGvbvaSiJaiWk7L42s/oNHhpKAANuUOEH9KonmVqN5 XWISZd4SH2V53VX7fh8CqO+Yhz3K+/DGfZFDMtfVikGKCj3XQiNc/EIrxkP3CIx8OKR1 urL03ww+yIXKJWMFRXdRbGg0LBuZrCJ74DZnkQkfDaah1FBztrVnDifjlqnoTwLJqOZp YdQE1Nv3rXkoubAVHQe8RHwmnI6DfG0Tg4DR6DKiEmDSeUABip1KsuvrUUhbk1c/6ao8 awRQ== X-Gm-Message-State: ACrzQf1Ch92/q7jxa9V7bPggPzun7gKgyJ0MlpMiBt2HhwVNPZHQ+A/t 2L0OnP7h+6nSPdsYRLs0ppzsoA== X-Google-Smtp-Source: AMsMyM4XHfzQus1ejr44JBZ2/TPhSNrH6RZcu94S008EEyxLRWK1ouOJ0dGW28vuigQi/4wcq488IQ== X-Received: by 2002:a05:6402:1f06:b0:457:149d:beaa with SMTP id b6-20020a0564021f0600b00457149dbeaamr26396394edb.238.1665571643571; Wed, 12 Oct 2022 03:47:23 -0700 (PDT) Received: from localhost ([86.61.181.4]) by smtp.gmail.com with ESMTPSA id jg29-20020a170907971d00b00788c820e630sm1025093ejc.121.2022.10.12.03.47.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Oct 2022 03:47:22 -0700 (PDT) Date: Wed, 12 Oct 2022 12:47:22 +0200 From: Jiri Pirko To: Vadim Fedorenko Cc: Jakub Kicinski , Arkadiusz Kubalewski , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, Vadim Fedorenko Subject: Re: [RFC PATCH v3 1/6] dpll: Add DPLL framework base functions Message-ID: References: <20221010011804.23716-1-vfedorenko@novek.ru> <20221010011804.23716-2-vfedorenko@novek.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221010011804.23716-2-vfedorenko@novek.ru> Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Mon, Oct 10, 2022 at 03:17:59AM CEST, vfedorenko@novek.ru wrote: >From: Vadim Fedorenko > >DPLL framework is used to represent and configure DPLL devices >in systems. Each device that has DPLL and can configure sources >and outputs can use this framework. > >Signed-off-by: Vadim Fedorenko >Co-developed-by: Jakub Kicinski >Co-developed-by: Arkadiusz Kubalewski [...] >+struct dpll_device *dpll_device_alloc(struct dpll_device_ops *ops, const char *name, >+ int sources_count, int outputs_count, void *priv) Having constant array of "pins" would not work for SyncE. For example in mlxsw driver, netdevs can appear and disappear within the device lifetime (for example port splits, linecard provision). We need to register/unregister pins dynamically. [...]