Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2138274rdb; Mon, 9 Oct 2023 14:04:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGlwMM7jTIrtP41XWT1CFEabWlHpkTL6++bYNLNr+z0eAqqtl/EYrI5DdikNPrZEPj1fJ0v X-Received: by 2002:a05:6a20:da8c:b0:16c:b5ce:50f with SMTP id iy12-20020a056a20da8c00b0016cb5ce050fmr7551689pzb.32.1696885481978; Mon, 09 Oct 2023 14:04:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696885481; cv=none; d=google.com; s=arc-20160816; b=fYiwYzp2peBFevRPMbhVWVH08P3ds6eNFM4weXqalM2WEa1WKg3tpKueWzGl/jbf7B kjH7voAS9x9g3I5pbrRS1RStiRhT5zUlTd7o0IVygmAvMxuQ7nTgD2rRiL5A2GDRHTQr Ng2uRqV6Onau04D6qy4Q9fo7ATcV6aQn7gOdiO5xchhBco6Urx+a8ceSzDOBPpbi/l1d Zbbr3CnUbu6mFEkjUwqk2lfkxDpj3ScDDFXgBkmLLMOOwcauGLyvXTZcmGdfHvO6ETKH A0J2lmBn1EwrYkXpn4HIRZJ9FqVzAU7jgIlKoWG+ahQYwwXa/PPr87brE4jTINEEw1qB B4Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=GNBV7INRIgyeXhVbCD9dGMkZulR+GcLVmLyfrSfkaoA=; fh=hUBzOvYhukvOC/sbKg3LKCPw7tr1DL9hAv85Ll2pv8c=; b=AQPRfBZyB9p0VKEU92fV9fi0oofJ5+6mg+pRhTIV6qEo74FLEWK9yDexBVqAQp3cbG 797kVqbcV573c2AX7FeZ9dlAn1WUJFbwYZDn9452SJ0ueU/wSaaBQUaVkInzzPDwJLWf JJEcYLycYOJtjldBLcZKatMyZNswFJkkWGmKcPudfhYc0naQFeKFhWEFKFxAQ2MZ+Ff9 NHHAjhR7KG1cqjNjJyQRHtldHwx3UBlw17NvQKALnkl9XZWYLR7Agow+5L8/Wp4cxxmP CLe//QP4GpgVC3nbXVNcZt0ZvmozPe0kSbYvSu6sL1XjZfinfkjaGFWHElfS6N1ON0t1 6hag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nCiq55DX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id e5-20020a170902f10500b001c3b2d40b3csi9758054plb.330.2023.10.09.14.04.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 14:04:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nCiq55DX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id AA3328051149; Mon, 9 Oct 2023 14:04:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378165AbjJIVEb (ORCPT + 99 others); Mon, 9 Oct 2023 17:04:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378239AbjJIVE2 (ORCPT ); Mon, 9 Oct 2023 17:04:28 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11CAC118; Mon, 9 Oct 2023 14:04:17 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1c9b1e3a809so547235ad.2; Mon, 09 Oct 2023 14:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696885456; x=1697490256; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GNBV7INRIgyeXhVbCD9dGMkZulR+GcLVmLyfrSfkaoA=; b=nCiq55DXPbJN3gs4EUUU2Ymj17VdxGVFLOVchQ1tFNw5eHGrqIfiwLrnuhvrIYW0H9 QaCDAJTXKEcmYNtO/6Cj5NcQ3JmIBpXXltO91pGOfFhsknodDpPu4xhsHp9YQqmWDi/M Ic9MF0AlPfMZZPSmlPXaNiP0aCKrjYlmYEJ7P1Uwkk+g22a82q5NoY6ojCe0r17/jghE WUyriVXj2tOH8GHKKE+a4V77uC8vEPs4pRqAo/ncF6Sal5QLM3i5qbO1A6tYQp84rNBU eDAKOINuWviVDFJUwZgR/Z9mKoTG4/C1u8wja8v7R5CpKlCA0k/jY2i8meJu8nsg1MpS sJWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696885456; x=1697490256; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GNBV7INRIgyeXhVbCD9dGMkZulR+GcLVmLyfrSfkaoA=; b=DhhsBH3h+QxmOgpUn7DpOwOGyN7tAMquW+Ao9/BU/l8CPkns7RkBupV/FOo4DdUQbz REv6Lvf3IoVp6VoRL9diKH5efNftzfSIREHmvToSVwAZCN+3zRVnobzc/vCqzczmxnHn FyE7dzF0S+MvoMJ6U5VwORWV4mdmq4N+vczTNhfDN4mTjQKdnjWx5qa0Lcun4YbNp/+o zVce+vXefup66a+AUjSW5rzu1fmA0JrdtUjPcHz+F5hbvCg9Is+tXT683QBz/tq94dn+ h2Jdq/4H9gU4lDbVK6+p1mg6kdqzzMsbW2zy6A6xpEaDPRv4zyIW2asRwkLfuSZKn3tj t7EA== X-Gm-Message-State: AOJu0YwhJ43Ch1FH2q0nG030YP4i9sDXchks1ehEZ9VENyMGrvMnik6Y Oqh9/PTgYPdsD+HP6kxjiWw= X-Received: by 2002:a17:90a:a393:b0:278:fa86:13d8 with SMTP id x19-20020a17090aa39300b00278fa8613d8mr13023890pjp.41.1696885456465; Mon, 09 Oct 2023 14:04:16 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id e2-20020a17090a630200b00277337818afsm6484585pjj.0.2023.10.09.14.04.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Oct 2023 14:04:15 -0700 (PDT) Message-ID: Date: Mon, 9 Oct 2023 14:04:13 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v5 02/16] net: phy: Remove the call to phy_mii_ioctl in phy_hwstamp_get/set Content-Language: en-US To: =?UTF-8?Q?K=C3=B6ry_Maincent?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Cc: Thomas Petazzoni , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Jay Vosburgh , Andy Gospodarek , Nicolas Ferre , Claudiu Beznea , Horatiu Vultur , UNGLinuxDriver@microchip.com, Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , Richard Cochran , Radu Pirea , Willem de Bruijn , Vladimir Oltean , Michael Walle , Jacob Keller , Maxime Chevallier References: <20231009155138.86458-1-kory.maincent@bootlin.com> <20231009155138.86458-3-kory.maincent@bootlin.com> From: Florian Fainelli In-Reply-To: <20231009155138.86458-3-kory.maincent@bootlin.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, 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 agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 09 Oct 2023 14:04:39 -0700 (PDT) X-Spam-Level: ** On 10/9/23 08:51, Köry Maincent wrote: > From: Kory Maincent > > __phy_hwtstamp_set function were calling the phy_mii_ioctl function > which will then use the ifreq pointer to call the hwtstamp callback. > Now that ifreq has been removed from the hwstamp callback parameters > it seems more logical to not go through the phy_mii_ioctl function and pass > directly kernel_hwtstamp_config parameter to the hwtstamp callback. > > Lets do the same for __phy_hwtstamp_get function and return directly > EOPNOTSUPP as SIOCGHWTSTAMP is not supported for now for the PHYs. > > Signed-off-by: Kory Maincent Reviewed-by: Florian Fainelli -- Florian