Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4154063iog; Tue, 28 Jun 2022 10:04:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vbnIUaDeDyxHZmn9uH+ZPulb6xPQ/MWuaxAZ2EW3PQs5owJdpcpQeH8cQi63+xiYzFZ7+A X-Received: by 2002:a17:90b:354d:b0:1ec:b990:a17e with SMTP id lt13-20020a17090b354d00b001ecb990a17emr625767pjb.127.1656435870330; Tue, 28 Jun 2022 10:04:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656435870; cv=none; d=google.com; s=arc-20160816; b=qps7IHrAg6dMiuQgpV+SIORmtFdVGSGjhwGROdgBs/VyflzK3W2qTRTJvca1rVBdwZ anyO04S/HwM6C8qCWMetGX3DghSVHqOB1r38Pe7RcJZI8zYp+qlwmks5CaunbOQNME7l zsoblQNuuh/C19g5CbBeFrNnTws3bZGJTl89l1GaBsIQBHzXGY1v9U0NDk7EZWKrABkG tB17v5q5OMxIlt8TZ3UtgNZT2oZtxHxTUKqiNimn6pWEcKrqnh2O7cZZpU95TFFJ8T+5 U/W3OZgyqnQnnBitQ6EJryjLXn/oOtGifYtmK+842y8fH6EfR2dmMVPi+fjDXNxBtotf 1XVg== 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=dz/PyMsuJCPlzxV0NdNxQF4B1f3xTrWyRIxj17TyzNE=; b=KMlOfIeNllPoTFJzfvnQkRJXe6T53n2wxe979z8XbO6u+Xs1jO8Vt8sWRRDkBM6QXE SKFx30rFrSYqdjIfHgwu4cVA8qPxJnwVZs7n3uqMA76AYB6XkX+C0RpT4Fvg/5kT4Kir MVKswh8ZDSxL6jJZK8GQ0urkCII2hD3gSyWj+qI+Ao0pwkDm8Vwy1jdJh+n+I9Sj8BVW xxTO+7REW9DpiVaRYlJWcOjrWE3/kLd3dvEyr4+a0e2ReEkqvMEFBEoGUWJFSyPUxgDy 5a0nqRKuWuIBRNUDb77VpxixPkVGLJqZrXJQ6XTOPY1er6g+rSRpL25Z/ZXnOSEGxUQ1 RSQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=VvSS27cp; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id me9-20020a17090b17c900b001df6b7a8a91si154931pjb.109.2022.06.28.10.04.17; Tue, 28 Jun 2022 10:04:30 -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=@bootlin.com header.s=gm1 header.b=VvSS27cp; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230329AbiF1QxP (ORCPT + 99 others); Tue, 28 Jun 2022 12:53:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233947AbiF1QvJ (ORCPT ); Tue, 28 Jun 2022 12:51:09 -0400 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [217.70.178.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9E5A21A4; Tue, 28 Jun 2022 09:50:47 -0700 (PDT) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 01377240007; Tue, 28 Jun 2022 16:50:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1656435046; 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=dz/PyMsuJCPlzxV0NdNxQF4B1f3xTrWyRIxj17TyzNE=; b=VvSS27cpBdvgCLlVD9xXQyXFssPJf6KbUMFiYUU4391snY7ZSfiOBLTosXOIdnFkn7AWcC aC3TGHr2tEWK+TqR4H6k15+Oy/YYtxGYkq5CTgIpRu/lU9LUBVOmr1AGxqDI1keeFvHZXi Dvb71vdSVct1kNBF+U/xZKVI1ZeobWnNCzstTdlqIha1a6Z1dPcfs2dKhDA08H82xoaYqw 3grtBuceIP1rdakS2TqZNIHgpgzzWChSGoUSdaDeGMZUqUBLX43NCoX2mjCVYVQDx/4DnW CoPvIbVqRju5u/9cX8+p914tpqEadfBZs33HAjjZFsySjB1gyyGwieDAmDI6sQ== Date: Tue, 28 Jun 2022 18:49:54 +0200 From: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= To: "Russell King (Oracle)" Cc: Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven , Magnus Damm , Heiner Kallweit , Alexandre Torgue , Giuseppe Cavallaro , Jose Abreu , Thomas Petazzoni , Herve Codina , =?UTF-8?B?TWlxdcOobA==?= Raynal , Milan Stevanovic , Jimmy Lalande , Pascal Eberhard , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next v9 05/16] net: pcs: add Renesas MII converter driver Message-ID: <20220628184954.6757ffe4@fixe.home> In-Reply-To: References: <20220624144001.95518-1-clement.leger@bootlin.com> <20220624144001.95518-6-clement.leger@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Le Tue, 28 Jun 2022 17:42:58 +0100, "Russell King (Oracle)" a =C3=A9crit : > > + break; > > + default: > > + return -EOPNOTSUPP; > > + } > > + > > + val =3D FIELD_PREP(MIIC_CONVCTRL_CONV_MODE, conv_mode) | > > + FIELD_PREP(MIIC_CONVCTRL_CONV_SPEED, speed); > > + > > + miic_reg_rmw(miic, MIIC_CONVCTRL(port), > > + MIIC_CONVCTRL_CONV_MODE | MIIC_CONVCTRL_CONV_SPEED, val); > > + miic_converter_enable(miic_port->miic, miic_port->port, 1); > > + > > + return 0; > > +} =20 >=20 > the stting of the speed here. As this function can be called as a result > of ethtool setting the configuration while the link is up, this could > have disasterous effects on the link. This will only happen if there is > no PHY present and we aren't using fixed-link mode. >=20 > Therefore, I'm willing to get this pass, but I think it would be better > if the speed was only updated if the interface setting is actually > being changed. So: Hi Russell, Ok, I'll make a follow-up patch to handle that properly. --=20 Cl=C3=A9ment L=C3=A9ger, Embedded Linux and Kernel engineer at Bootlin https://bootlin.com