Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2384703iob; Fri, 20 May 2022 08:12:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzD851N6/vpiYC/5QxbZo7jp0+WaqS76c227p+mp+94B8nnUhRVwAX89y623c9fO3SadDaZ X-Received: by 2002:a17:906:2001:b0:6f3:bd7f:d878 with SMTP id 1-20020a170906200100b006f3bd7fd878mr9108461ejo.133.1653059579231; Fri, 20 May 2022 08:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653059579; cv=none; d=google.com; s=arc-20160816; b=x9gp0GB0SA1PQhxQwP3Vc1JqGtjCMJS6luzsTzcxcoN6HREJWWoylOUJw/uB50RzY5 2mtTAGdxoG5DcFmXduJuYVIl45D2szX/wZd8BSvIDdRhukNZaqyNJ8/oLUDPLqnjVNZj fJVE0iJKonrFuJXR1+gZfHKaiXxpN8QG184pV6ti4axuo8wb1dYNUtyBjjFmxSuUmcFi KQ9J7FYFdIqEME+L/EsGGG0EdHWlyGC5BNPA6oojeubBl01yFURmS6tlktIR/nMhjqCq lWmBiEbulU3O5kepi9g4jnYTbKMOS8khHgRktrTzp1Uo/xuXgtpaiPuTGX+LebX9A1yP uTEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CQwUBWNsvvBzsepcIInv96GZu+Y9Fs9IrqHVo2LozcE=; b=mohAH/jtCOT9tUf2fSskphG2vBO55lI+fLaE1t2Gvr2ufTC48ANvcNOb2IghymyavY 6qBVxrIBEBoZs5MB07TFnCEnNZfax0//eO+s1SuHtvB7caZJNHxpglNWYoroZNhz0L8J Co5Ymves+dCJoU6BsOR0J/CJXjqFmqC7JM9pg2ALJ84FJwmsvq/r8mUTTIfohhI7O5ql JTjzrXbQlKMMM8xTlWDOeP+uScQtsX6Xzmchm9pCkKPHnW/Pi9ZXy0qsnUop5x+V630/ dvsnDI9bA0suSuPE/JAP4ld2KQvD2CJmbHIvogoyjHevMPzaVx811j8IDL7WXKYpLBAY snXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=RcW2hhpj; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw39-20020a1709066a2700b006eff0ac4c7csi8865688ejc.230.2022.05.20.08.12.31; Fri, 20 May 2022 08:12:59 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=RcW2hhpj; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231403AbiESQZc (ORCPT + 99 others); Thu, 19 May 2022 12:25:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233614AbiESQZ1 (ORCPT ); Thu, 19 May 2022 12:25:27 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B91EC1EE2; Thu, 19 May 2022 09:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=CQwUBWNsvvBzsepcIInv96GZu+Y9Fs9IrqHVo2LozcE=; b=RcW2hhpjCtUnjbATXRZWe4Y0iY zARJGjGheRQAFvQECwXaNd9qLFbA+J4TWfPaC7vrpOINDjYwCSljBvnL8BM7v0uSWHfPC1W9Xcsk/ 55rUl/iYy3kHnvLiJqeqBXP0tMb1e+clQhz0CxNNpjzb6BeD0R8ZpooJzgPoJ+bfxceLc/x3BPc1j toMV7QWUr2h619mN24cQks+fY39q3hmP0SrN5HQEOZTiSx8tBXV/GXx2NLZ1rVm16E3y24HwXCxu1 ouvkRN1O2OXMvU9zsgPS0B/VEyrxvODHka8iUPHMxkCCBmU+Nr+Me+gleKv1jha807NwnYLUy6Akn 0Cr+j6Vg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:60778) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nrixc-0004FA-F2; Thu, 19 May 2022 17:25:12 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1nrixa-0006hk-Ks; Thu, 19 May 2022 17:25:10 +0100 Date: Thu, 19 May 2022 17:25:10 +0100 From: "Russell King (Oracle)" To: =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= 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 , Thomas Petazzoni , Herve Codina , =?iso-8859-1?Q?Miqu=E8l?= 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 v5 05/13] net: pcs: add Renesas MII converter driver Message-ID: References: <20220519153107.696864-1-clement.leger@bootlin.com> <20220519153107.696864-6-clement.leger@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220519153107.696864-6-clement.leger@bootlin.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, 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 Hi, On Thu, May 19, 2022 at 05:30:59PM +0200, Cl?ment L?ger wrote: > Add a PCS driver for the MII converter that is present on the Renesas > RZ/N1 SoC. This MII converter is reponsible for converting MII to > RMII/RGMII or act as a MII pass-trough. Exposing it as a PCS allows to > reuse it in both the switch driver and the stmmac driver. Currently, > this driver only allows the PCS to be used by the dual Cortex-A7 > subsystem since the register locking system is not used. > > Signed-off-by: Cl?ment L?ger Looks much better now, thanks. Only one thing I've spotted is: > +static int miic_validate(struct phylink_pcs *pcs, unsigned long *supported, > + const struct phylink_link_state *state) > +{ > + if (state->interface == PHY_INTERFACE_MODE_RGMII || > + state->interface == PHY_INTERFACE_MODE_RGMII_ID || > + state->interface == PHY_INTERFACE_MODE_RGMII_TXID || > + state->interface == PHY_INTERFACE_MODE_RGMII_RXID || The above could use: if (phy_interface_mode_is_rgmii(state->interface) || Also, as a request to unbind this driver would be disasterous to users, I think you should set ".suppress_bind_attrs = true" to prevent the sysfs bind/unbind facility being available. This doesn't completely solve the problem. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!