Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp582127rwl; Thu, 5 Jan 2023 01:23:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXvmV7MDNJtba5uC7B91LXC5O8fNUuwz6JPFHiS1fmPPy2yXU4xpI9hQt19Wtrr/v56aBIKG X-Received: by 2002:a05:6a21:2d07:b0:b2:48e8:e3a9 with SMTP id tw7-20020a056a212d0700b000b248e8e3a9mr72775661pzb.12.1672910607849; Thu, 05 Jan 2023 01:23:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672910607; cv=none; d=google.com; s=arc-20160816; b=czVXMkVirWTok2DaHenjT3wIu2PBZ8p4W3PjlQyGEK5CHBt6ENZMR2P9orNnyLShBX SzTiIpZEjheR+SR5PzS9DKkV6PNBeMfSuE4A2rFNhq1gMPFRGkVGcShjC2l6peE1dB8N iLmOBQ99cwB9ELA61ZOyG1I3dHSiIGDzilADRD5SWQu7ylEr6Ng+ZP0oODFQ2PVBDfLy /dSA8dy/wL0n3ylSsd2n0jRVEf6b8mnnz94Y87hjuROvM/SeyJgZ5AWyaW7ASSxoNnXk 2obIW84mZuTv/Hd/VCnaeHKaUalNQFpe86QjU7/0Trg7eaJ63cZIBCoX1hIce4UB5jXQ HSqg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=46nYAalxXSNyodJMSkN4KF3uACBQEOGgAnD+FhFH8/I=; b=mUwvKXCxfTj0xJoU57H4M9GLFoSH8e0vQNM4jojsrrSPoLKfWbQMjPjsQlDOJYFRdR 3PqAQexCE/GdE/I5zdNkfjQaH73T8sk4fBhvg7HXf8NcdWRpzO5iO/wfcDf75ToLcxud Nj1G55EvS892xnVXzAKcjf2sf5h/ZvXu+wqwtWnp6DUvv554V0P2OQqf0HqvjDj9P7De UMxPsvviZsHqz0npeigUlf3UOxUEad8dyCPS72tBh2nOfi2OaDqf8jDAqxdBszJvQBfk Sh9Rt1DTsqLBJ1cqzOdmJ9LLriQsmlC/uApiyfoERaJHWu25r5XciHXgwSpo+D5+2XV6 kEFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Ax/EmA1t"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i19-20020a170902eb5300b0018929921900si35648415pli.80.2023.01.05.01.23.20; Thu, 05 Jan 2023 01:23:27 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b="Ax/EmA1t"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231955AbjAEJEe (ORCPT + 55 others); Thu, 5 Jan 2023 04:04:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231989AbjAEJD5 (ORCPT ); Thu, 5 Jan 2023 04:03:57 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D804F50E46; Thu, 5 Jan 2023 01:03:51 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 768816192C; Thu, 5 Jan 2023 09:03:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F648C433D2; Thu, 5 Jan 2023 09:03:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672909430; bh=mK8m5r6Yvu6vRkxtRcJykJn1adYg546xLjheQQ7qKWk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ax/EmA1tmXTzmAFv/uwq6015BLN/tRQtXQDFWvGuiUkbIM2KUZSuJFD8deZg/Kb+B NwMdH+yxbakL6QaFtZNP1RZosTLR6+kAvkD8gwTTW0/+EBGoznxI/FTi0Lcw/IvHR6 n04jglw6BSCoYE4i7BN+7tRpUMitXL0BFwvLjVbthZAVUm8m27Kfnb0XyZCQxBXl0m 41QCJgLujYwjtrqQCKWJvKRJEAB+5WESpi56/rujWqwt5wH2bn8GT8fCPTj651XbiD IWtRfvSR55pPBMzsTuHsHWUJuXpvLcLLlQfZsS/MONd2PoXGMrtxcegLD+SGzY9TNC H3SX4RlonSmPw== Date: Thu, 5 Jan 2023 11:03:46 +0200 From: Leon Romanovsky To: Piergiorgio Beruto Cc: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Oleksij Rempel Subject: Re: [PATCH net-next 3/5] drivers/net/phy: add connection between ethtool and phylib for PLCA Message-ID: References: <5d9b49cb21c97bf187502d4f6000f1084a7e4df7.1672840326.git.piergiorgio.beruto@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5d9b49cb21c97bf187502d4f6000f1084a7e4df7.1672840326.git.piergiorgio.beruto@gmail.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Wed, Jan 04, 2023 at 03:06:30PM +0100, Piergiorgio Beruto wrote: > This patch adds the required connection between netlink ethtool and > phylib to resolve PLCA get/set config and get status messages. > > Signed-off-by: Piergiorgio Beruto > --- > drivers/net/phy/phy.c | 172 +++++++++++++++++++++++++++++++++++ > drivers/net/phy/phy_device.c | 3 + > include/linux/phy.h | 7 ++ > 3 files changed, 182 insertions(+) <...> > + curr_plca_cfg = kmalloc(sizeof(*curr_plca_cfg), GFP_KERNEL); > + if (unlikely(!curr_plca_cfg)) { Please don't put likely/unlikely on kamlloc and/or in in control path flow. Thanks