Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9383277rwd; Wed, 21 Jun 2023 06:52:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6PMAaMk+jvYS29AeRqn0M+BQXOht40uZXd186PGKk8dm1CkZTE8GgC8YVGLdD8KS1NXG8k X-Received: by 2002:a05:6a20:8f27:b0:10c:7a20:6dd6 with SMTP id b39-20020a056a208f2700b0010c7a206dd6mr12500203pzk.42.1687355539329; Wed, 21 Jun 2023 06:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687355539; cv=none; d=google.com; s=arc-20160816; b=BlaLWzNvYOYXKPz+LhBqeJaVQePmegPqeITnXUH0USLeIezeGHcImkrDsMUtDTRLva +hrvCB0oLPcw+pvpuoWj5IvGWq0ZoWdGSjUeshXaHo8iC+25gQENd7/ETpeplN1ML0Os 3KL7n8sZsrhcNdm3AQRV4tBpczF1v+T3MuOeUiGGzteA/5eH1VS11BdqI+CGdytVvmzb 2RBEQuSj8gj9AaISovloTZ1auePCgSAskpA9LJF09n03iHKopH1q0pnQgL49QHnK2wSh Tutz+8LLI3jvVtIrlVZKdr9dtvtl2MuiOFKTF/oBgNDULCh58pWmVitzyyA5NlTD6O5i JCaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TU5pe+asCSSBXdxRD62Pc73zx7uMR0rLSJrHUbp5re0=; b=rTT7uWBq44gTjpjFXsFPy6YQpTzPH5g2u7qMyB+EDn201514goLGJPNUQDF4v9JTqa dfEGZrVwCzr4sCUeouZ8kSFteSwPMM5lr96l7/YA+Iu5hx0VZOqo65CloWzk1HkiPFs9 dDDhvGsRFuyaFOceXJsNhWF7pHBBd6ZFOxP6a3EkdYdhmnbMSYN1juGhgrKP8osQsynV XJ/9m64J78456jDc2nFC16r0E4zo0GUtXXKPPBVdX6NypWN23eWVe75rYg68JRihws59 awx4FqyeaT2K2+AVMqOoRMbEM76xfMVJCrRWvH9Ez3YRCxMzblr4GnANmUG4KecTwOdf VQqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20221208.gappssmtp.com header.s=20221208 header.b=CkUcMHVR; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w186-20020a6262c3000000b0066887057a46si3989254pfb.120.2023.06.21.06.52.05; Wed, 21 Jun 2023 06:52:19 -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=@resnulli-us.20221208.gappssmtp.com header.s=20221208 header.b=CkUcMHVR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232239AbjFUNHu (ORCPT + 99 others); Wed, 21 Jun 2023 09:07:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232235AbjFUNHs (ORCPT ); Wed, 21 Jun 2023 09:07:48 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25B1B1994 for ; Wed, 21 Jun 2023 06:07:45 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-3094910b150so5975547f8f.0 for ; Wed, 21 Jun 2023 06:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20221208.gappssmtp.com; s=20221208; t=1687352863; x=1689944863; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=TU5pe+asCSSBXdxRD62Pc73zx7uMR0rLSJrHUbp5re0=; b=CkUcMHVR+Z8yWrVCs3aa+R3jQV4jFsz4M5P2+9ftWZgzt/db2V9KrQOJMxJ11GhMwT hAUWMvFrEi/d7CfH6HI+KC5ld9dLAWsTabouLLOzs9dkdlrE7FpQ4f2msqpavhbA422u Cuix2KNbn4SkOv7AgpXv5F+qCn68JKCtGu+8+yEDR5xIpJogQEKUIBdi70OV5u40ETay PH4+qljOaIEG09l2kO/O5FKZplJPDhwdInH3YBc7tz5gLDA/1FS6JieSn676ZDAHvUVq 9/0iAliOIzsBAlDf0OM3844UB/cUR0YMJAZTe+YI30MfMoVxhr94NC9haKVShpVdLDCu ng4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687352863; x=1689944863; h=in-reply-to:content-transfer-encoding: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=TU5pe+asCSSBXdxRD62Pc73zx7uMR0rLSJrHUbp5re0=; b=HouQLNOOfecyFlb/3OzIBx6NmHj4NtZR+HjMLVO/582vhtC1PtNbBpRI9CwloBzdfq m3bnV5S/ZAdb7EZDRyLbzs1rhGaStoQqOTXxCNjq5m1uD5I1MsC6gAla18Y/GFBTfiuG Un2XcMQiLuG3NbYhDBvH+qZntgJNmYnXVqtl2YyIjUeGAxDzRmINSXlNZUuSgrSQ34xC xJsYP87f0zaVm0CMkk0+1338vNHE4wM9/Qz0629nT0GqZuQnnLTem05nLeh3XUeruLBi 3QuJ6FK+Fi1OHRaAkw0+UPVZmDNyeAiaT2ZsMj6GivI/nuZekkAhk6w97JVW0q+aAWUF X9xQ== X-Gm-Message-State: AC+VfDy3S7kcAtYKTykpDYQQJqFsf83BmmbxUiZAL1UU5k5dO3JYSRd2 vdNXFRJxjkrTxaHhG2l1QEYiOA== X-Received: by 2002:adf:fe48:0:b0:311:10c0:85f0 with SMTP id m8-20020adffe48000000b0031110c085f0mr12540283wrs.14.1687352863404; Wed, 21 Jun 2023 06:07:43 -0700 (PDT) Received: from localhost (host-213-179-129-39.customer.m-online.net. [213.179.129.39]) by smtp.gmail.com with ESMTPSA id f7-20020adff8c7000000b0030e6096afb6sm4453467wrq.12.2023.06.21.06.07.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 06:07:42 -0700 (PDT) Date: Wed, 21 Jun 2023 15:07:41 +0200 From: Jiri Pirko To: Petr Oros Cc: Arkadiusz Kubalewski , kuba@kernel.org, vadfed@meta.com, jonathan.lemon@gmail.com, pabeni@redhat.com, corbet@lwn.net, davem@davemloft.net, edumazet@google.com, vadfed@fb.com, jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, saeedm@nvidia.com, leon@kernel.org, richardcochran@gmail.com, sj@kernel.org, javierm@redhat.com, ricardo.canuelo@collabora.com, mst@redhat.com, tzimmermann@suse.de, michal.michalik@intel.com, 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, milena.olech@intel.com, 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, mschmidt@redhat.com, linux-clk@vger.kernel.org, vadim.fedorenko@linux.dev Subject: Re: [RFC PATCH v8 04/10] dpll: netlink: Add DPLL framework base functions Message-ID: References: <20230609121853.3607724-1-arkadiusz.kubalewski@intel.com> <20230609121853.3607724-5-arkadiusz.kubalewski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Wed, Jun 21, 2023 at 01:53:24PM CEST, jiri@resnulli.us wrote: >Wed, Jun 21, 2023 at 01:18:59PM CEST, poros@redhat.com wrote: >>Arkadiusz Kubalewski píše v Pá 09. 06. 2023 v 14:18 +0200: >>> From: Vadim Fedorenko > >[...] > >Could you perhaps cut out the text you don't comment? Saves some time >finding your reply. > > >>> +static int >>> +dpll_set_from_nlattr(struct dpll_device *dpll, struct genl_info >>> *info) >>> +{ >>> +       const struct dpll_device_ops *ops = dpll_device_ops(dpll); >>> +       struct nlattr *tb[DPLL_A_MAX + 1]; >>> +       int ret = 0; >>> + >>> +       nla_parse(tb, DPLL_A_MAX, genlmsg_data(info->genlhdr), >>> +                 genlmsg_len(info->genlhdr), NULL, info->extack); >>> +       if (tb[DPLL_A_MODE]) { >>Hi, >> >>Here should be something like: >> if (!ops->mode_set) >> return -EOPNOTSUPP; > >Why? All drivers implement that. >I believe that it's actullaly better that way. For a called setting up >the same mode it is the dpll in, there should be 0 return by the driver. >Note that driver holds this value. I'd like to keep this code as it is. Actually, you are correct Petr, my mistake. Actually, no driver implements this. Arkadiusz, could you please remove this op and possibly any other unused op? It will be added when needed. Thanks! > >[...]