Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14108835rwb; Sun, 27 Nov 2022 17:48:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf5bpYn0YqDpKJ+r4pRUQ32myeDN/NQB3bZ0f0WkNTPS36gSCmXbdLXYfIabo+49Hi3M95Lz X-Received: by 2002:a17:90b:4f45:b0:218:7146:6b3e with SMTP id pj5-20020a17090b4f4500b0021871466b3emr52808870pjb.149.1669600092178; Sun, 27 Nov 2022 17:48:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669600092; cv=none; d=google.com; s=arc-20160816; b=zDEYXs1gr1c3s73fcJpjE67bweAwFPqpWDGY7H3zKm5BDKPxTVR5YR+/752cBf6VmW O/LEI4hBl8SJ3G12DkOQ3aAvwH84ymXd+9ceH7vZHgdXV5cgB+rjCa0JE1BaIeadDNDo pVT8Yy0VkzIaJtwsty9l1a0ENG8Pkabbjh2LnXTc5OdjNIypkX7FsOWf6uoUQxiFUNqK MzypXreja7Au3ZXaAu/A0fDM6nQuatBq8tRh4i1q9umLUCtVsA3Nne4xVLYmsK7klxAG W6x6YStiGCmTvoS/L2UztD25+leJKX8kKs6nidrAr4/SeWEPRNhTypOUt+Inl4ExI7LR UYhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=vugqIFRxCyknBbu9V+wKU89OOIphCVzqPgtGWbeU2e0=; b=nQNOOExYaDtEXgkGK38s3NZacZHGgKW2Pdbh0TwZ2QxiZAIimC0DWenUim7VICdYgE p/pNrMUQ5NAUsaPu8RxueBp/PGMuzp1iiV6k1jGgu9pdL98lhcJNqxBOc3vleDILEfhg AkZU3U4kHNnJ4pqd0xfNWc621cZAQsKIQsbhU7ZUcg/5eSDHXIm8DswYrcuMp5UW0eX7 2agVS3Ry9oti1QbWYuyAbE3EIDVlMCCggrPIQ9S79O/pZBo9Cw7EM6VfoxO/RBCEpIRY SXnrmPoNDVsjcdAtLLaMdz+9Qq9ix1eutHU2TJaEu2444eFY4UTSTTxcCli4GmpvrIYV 32kw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 4-20020a170902c24400b001887af39371si9999139plg.240.2022.11.27.17.47.56; Sun, 27 Nov 2022 17:48:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229727AbiK1Bmi (ORCPT + 99 others); Sun, 27 Nov 2022 20:42:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbiK1Bmg (ORCPT ); Sun, 27 Nov 2022 20:42:36 -0500 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3303DE02; Sun, 27 Nov 2022 17:42:35 -0800 (PST) Received: by mail-pj1-f47.google.com with SMTP id 3-20020a17090a098300b00219041dcbe9so7673570pjo.3; Sun, 27 Nov 2022 17:42:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vugqIFRxCyknBbu9V+wKU89OOIphCVzqPgtGWbeU2e0=; b=3TT8s7sdFoeIYzo3znoz3PAZN7oTBTJbe1Pzw287AalQyi3//jd0miT3JTuvTfhk+1 zwESm+LfCKndgueY38VzdG/BXxCpCTlrfdSa1i4JVWEd3VoY0K5pDmNxgyJOv3DWhSiv pjlCD/JdgdhF0lONyp4sK/ZZMxGmUi5irvXNYbN1VRNrhNZJP0aLSjBVextE+dPvwai3 ARDCnKYX1j5rzG4G8KJhZ3OanhB5rihieMTHYA/Dl5XDfPrmKfwPEOYOXOJQsBfgY/r1 SyKlemaojdwERPw/V35+Gy8Xbh1DnRC29RJLc1/k/3Mu5pU64EXgIYi4S45fCkgcGEXB NR5Q== X-Gm-Message-State: ANoB5pliEMC+FMs1dFvW6CnM+WfqNAD5U+TQo1rKnk7mnT2TP51lteyn eKk4qoYySY2rCee0wYXzniWTMfH6t3TqR4bc+aY= X-Received: by 2002:a17:90a:77cc:b0:219:1747:f19c with SMTP id e12-20020a17090a77cc00b002191747f19cmr11037058pjs.222.1669599754664; Sun, 27 Nov 2022 17:42:34 -0800 (PST) MIME-Version: 1.0 References: <20221122154934.13937-1-mailhol.vincent@wanadoo.fr> <20221127130919.638324-1-mailhol.vincent@wanadoo.fr> <20221127130919.638324-3-mailhol.vincent@wanadoo.fr> In-Reply-To: From: Vincent MAILHOL Date: Mon, 28 Nov 2022 10:42:23 +0900 Message-ID: Subject: Re: [PATCH net-next v3 2/5] mlxsw: core: fix mlxsw_devlink_info_get() to correctly report driver name To: Ido Schimmel Cc: Jiri Pirko , netdev@vger.kernel.org, Jakub Kicinski , "David S . Miller" , Eric Dumazet , Paolo Abeni , linux-kernel@vger.kernel.org, Boris Brezillon , Arnaud Ebalard , Srujana Challa , Kurt Kanzenbach , Andrew Lunn , Florian Fainelli , Vladimir Oltean , Michael Chan , Ioana Ciornei , Dimitris Michailidis , Yisen Zhuang , Salil Mehta , Jesse Brandeburg , Tony Nguyen , Sunil Goutham , Linu Cherian , Geetha sowjanya , Jerin Jacob , hariprasad , Subbaraya Sundeep , Taras Chornyi , Saeed Mahameed , Leon Romanovsky , Petr Machata , Simon Horman , Shannon Nelson , drivers@pensando.io, Ariel Elior , Manish Chopra , Jonathan Lemon , Vadim Fedorenko , Richard Cochran , Vadim Pasternak , Shalom Toledo , linux-crypto@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-rdma@vger.kernel.org, oss-drivers@corigine.com, Jiri Pirko , Herbert Xu , Hao Chen , Guangbin Huang , Minghao Chi , Shijith Thotton , Ido Schimmel Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no 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-crypto@vger.kernel.org On Mon. 28 Nov. 2022 at 01:17, Ido Schimmel wrote: > On Sun, Nov 27, 2022 at 10:09:16PM +0900, Vincent Mailhol wrote: > > Currently, mlxsw_devlink_info_get() reports the device_kind. The > > device_kind is not necessarily the same as the device_name. For > > example, the mlxsw_i2c implementation sets up the device_kind as > > ic2_client::name in [1] which indicates the type of the device > > s/ic2/i2c/ > > > (e.g. chip name). > > > > Fix it so that it correctly reports the driver name. > > > > [1] mlxsw_i2c_probe() from drivers/net/ethernet/mellanox/mlxsw/i2c.c > > Link: https://elixir.bootlin.com/linux/v6.1-rc1/source/drivers/net/ethernet/mellanox/mlxsw/i2c.c#L714 > > Same comment as before. > > Before the series: > > # devlink dev info i2c/2-0048 | grep driver > driver mlxsw_minimal > > After the series: > > # devlink dev info i2c/2-0048 | grep driver > driver mlxsw_minimal ACK. I was overall confused by the device_kind. Thank you for your confirmation. I will drop the first two patches from this series. Yours sincerely, Vincent Mailhol