Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp656251rdg; Wed, 11 Oct 2023 01:28:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0LRMjTuDty+46Clz2pj3HOHvJ6DjBmLmUtOgmL/XJjQ4kU7EEfnaSRH65hdsrXGOrVIDW X-Received: by 2002:a05:6a20:3942:b0:174:2c0:a4e2 with SMTP id r2-20020a056a20394200b0017402c0a4e2mr167363pzg.39.1697012889756; Wed, 11 Oct 2023 01:28:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697012889; cv=none; d=google.com; s=arc-20160816; b=dRzRLKSWcgLX4JFmxUF4RTnuNbBR7rO2YePRrn1jsAYeOhgXxGkHNELMeg9OdOF2lA wOhdQxv3vPUtAGBfcik4nmSHCmJw8xu29j8vqazHloLx3aNQUKzfu8QR6WyWtsN8K2Cu /ODZbRtgn6o32o7AniVX980k3ALVhO9PeMS5ao9HsgBJydUBcrr+cg/pu75JKFmwoNRB n0S+yfytvuDyFwBPJYWk/+QxWfp4S2clqNu87w65FKQztrdwSJwc0JtGyi65Q12EX+Ic koGfC6yAkoIiZ+iR2+H0xIQJleCE0ACgL1s0qt3oGm2UpmS9/p1wbFCJd3SGD7sz5tpq X+Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=tAl6wI267mdYSd5CG5718M4Naq5umv5wPjrfbzBjjTk=; fh=0IUv2r8uJyZfVngzNODb/JiOYKWFNNChx16/n0sbjwM=; b=K0rEBB8CpdXFYjN5e1VGRROqsPM4uwt9JoEcZdTBJDIDEsHCjNXc8hf2T17DaHhzNR k4Y6ACJDjWTL+lhG/qTIN8oyPs5/tHurByZiw97xltkxZPsVo9Wduc1zZrSMiGqS0Xkv BdnBDokoYm5QzaTt+qSCFboQ7J2U4dgLK1f+2Oc+jPYEmm0jm65jXZ6Lov1/Rif9Yhqs GHGs6QzBtvavJqdDrMKTD3SdN0ug5gzg0t94Xi9iYvKdBfRqpYCBERYiRVpPMOjIBjYZ 9495iMskSzqMS5SHkWa5R6AkDt+WEmVGOJ+GnLVZVI6C8eYRh5DFR8Gz5Qz57BPNraO6 jnAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=IbJagmVN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id ld11-20020a170902facb00b001b9ffdd9488si37806plb.624.2023.10.11.01.28.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 01:28:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=IbJagmVN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 90C1E80DFA43; Wed, 11 Oct 2023 01:28:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230115AbjJKI2A (ORCPT + 99 others); Wed, 11 Oct 2023 04:28:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230202AbjJKI16 (ORCPT ); Wed, 11 Oct 2023 04:27:58 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::223]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 176129D; Wed, 11 Oct 2023 01:27:56 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 1169360002; Wed, 11 Oct 2023 08:27:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1697012875; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tAl6wI267mdYSd5CG5718M4Naq5umv5wPjrfbzBjjTk=; b=IbJagmVNv9BmJV/Bk5syT4UgbLmG1Ihv1V1/9IA1g+O/kgec2Yzou3NA4q82G6/O0bPfqL xVQztLWHj8nR4DWyH5VNhPjzE2cU8IcXfgiOmsXDBuGCbaGWU7anPlCosMDsZ8Uxr5O8Kz H6Ni4o4uLsD7ufzPQPz0tCHET50qIAIvvCpP8J775sZw2K+cWpKcfiRq6ube9+1EGtYPy3 gw69qKXhzHaYi8VdYp/0wlmtgnVeRDUPwSJeqSykjTdEgXXrYF25A4Tdc5gqPxUd2xuavv 3l3qbN2cniCHyPCGa3CwzldrfbPV3MMAEDWC33vPl0BzqimYKM0nl8XCTPTwtA== Date: Wed, 11 Oct 2023 10:27:49 +0200 From: =?UTF-8?B?S8O2cnk=?= Maincent To: Simon Horman Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, 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 Subject: Re: [PATCH net-next v5 01/16] net: Convert PHYs hwtstamp callback to use kernel_hwtstamp_config Message-ID: <20231011102749.6fb29adb@kmaincent-XPS-13-7390> In-Reply-To: References: <20231009155138.86458-1-kory.maincent@bootlin.com> <20231009155138.86458-2-kory.maincent@bootlin.com> Organization: bootlin X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Wed, 11 Oct 2023 01:28:07 -0700 (PDT) X-Spam-Level: ** On Tue, 10 Oct 2023 17:37:47 +0200 Simon Horman wrote: > ... >=20 > > diff --git a/drivers/net/phy/nxp-c45-tja11xx.c > > b/drivers/net/phy/nxp-c45-tja11xx.c index 7ab080ff02df..416484ea6eb3 10= 0644 > > --- a/drivers/net/phy/nxp-c45-tja11xx.c > > +++ b/drivers/net/phy/nxp-c45-tja11xx.c > > @@ -1022,24 +1022,21 @@ static bool nxp_c45_rxtstamp(struct mii_timesta= mper > > *mii_ts, } > > =20 > > static int nxp_c45_hwtstamp(struct mii_timestamper *mii_ts, > > - struct ifreq *ifreq) > > + struct kernel_hwtstamp_config *config, > > + struct netlink_ext_ack *extack) > > { > > struct nxp_c45_phy *priv =3D container_of(mii_ts, struct nxp_c45_phy, > > mii_ts); > > struct phy_device *phydev =3D priv->phydev; > > const struct nxp_c45_phy_data *data; > > - struct hwtstamp_config cfg; > > =20 > > - if (copy_from_user(&cfg, ifreq->ifr_data, sizeof(cfg))) > > - return -EFAULT; > > - > > - if (cfg.tx_type < 0 || cfg.tx_type > HWTSTAMP_TX_ON) > > + if (cfg->tx_type < 0 || cfg->tx_type > HWTSTAMP_TX_ON) =20 >=20 > Hi K=C3=B6ry, >=20 > cfg is removed from this function by this patch, but is used here. Thanks for your review. Indeed there is a mistake here. It will be fixed it next version.