Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5669440rwd; Mon, 5 Jun 2023 07:04:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4pimcr2x9Ba73YIyUWr1vMr9O+Z8cH9ij1w5EanWETeTkmCF6bEqQMR9GvW+WefS5XNCxh X-Received: by 2002:a17:90b:817:b0:256:ae6e:993d with SMTP id bk23-20020a17090b081700b00256ae6e993dmr8522739pjb.1.1685973846321; Mon, 05 Jun 2023 07:04:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685973846; cv=none; d=google.com; s=arc-20160816; b=B1TWm5E7ITK2+jx/5wRXIiLz7SMDj8nXcESXpDd9zZsopB0EcIgTijP3DY/Azd9Qfb rKrp3O1BfKqiD5hzllWtSHCmPieI8EGqlOfTHqZiBVFi3/EYQCr3BheAlseTYb/aTupf XYFRwlCJW/7u3okh0hYPruZ0+DH6bygvkdaHmqB8bPlYw09jcshJpalJBohqGSySNiv2 p/h1xRSq4hvvq2xIQvXCWc4Dmts+7/H+z3ouXK4KgJWYUPZYXgBYZb4Phlom6S81cRbH J7aY9JRl+XDQLiW7L1hbxeY0V0wM7i7+WH3XLz2Q7I16xzihwdD54/jlNtra1/H3q97d cWCw== 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=ezVCXA59R6OoUuoJw4TkUJ8Lfny/r5hrMVf+Oit43HM=; b=q4QGiwHxa4sEiU4xqijOl3kO3w7F7rid+yBbZ8Mg+ikcKHvTq0hMq6Kub8cc84a8PU qN6lMCcUEjvO6KWgziqYP/eVEZY/eGOMSMwmhDI4v6AucN/yoyprKIwefmi36p5SGuNc IUCvWXWbbO1ZXGAwsV/0xjDFlWryW5CxJZq1ZdGjIBpkB402yHtlpsbFhwHuqBIIEOk2 xufHXMAbY18PUSxFIdexQzSjtaMUo6rcIaaRyQvTJCBrs4YmvNA7GXoGj0YgrxanIwYw nXWOSk8phqhONI2JDLqgoveVn7XDRkd8bKQJOKqhPzxMJ2oagfQk2Ro9Q3Ww1XZWOhjb gBnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="pFe/JDym"; 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 w9-20020a17090aea0900b002465d98f18csi7123251pjy.170.2023.06.05.07.03.48; Mon, 05 Jun 2023 07:04:06 -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="pFe/JDym"; 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 S234001AbjFENPX (ORCPT + 99 others); Mon, 5 Jun 2023 09:15:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233990AbjFENPW (ORCPT ); Mon, 5 Jun 2023 09:15:22 -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 74DD383; Mon, 5 Jun 2023 06:15:20 -0700 (PDT) X-GND-Sasl: maxime.chevallier@bootlin.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1685970918; 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=ezVCXA59R6OoUuoJw4TkUJ8Lfny/r5hrMVf+Oit43HM=; b=pFe/JDymlb8lWaJnLc+kVSQv2RGWrE5mG4o7pyvP3LBJ5Ypix7HyK1wfxtPo1LU+Mq62s+ xRdi5Pg+15iCku3Rx/BTziSPmQlJQOpOjlP0eh9SiWM3PnoIL/O1T61yprHFzySc6ilP2H jmfxuqRP8U/FdZApLzD8W9mgqOC9eWuaIfYDmrUHPqC7wcj0GXdIDZbRyIo0Dk09L5v1Kr UEiaAT+IPPC2FyGfv2iRQDK5zNGrRWJ4nKmvvaGJ/lYx0zecNYeQfhdE4LtUplA5aiziTp Kln0ykC1Zef0iG561jiN1eHtpeiAH7WFw5WP9gmx/9f87HciFBXjcAY0dSFcEw== X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 661EE60010; Mon, 5 Jun 2023 13:15:15 +0000 (UTC) Date: Mon, 5 Jun 2023 15:15:14 +0200 From: Maxime Chevallier To: Mark Brown , davem@davemloft.net Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alexis.lothore@bootlin.com, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Florian Fainelli , Heiner Kallweit , Russell King , Vladimir Oltean , Ioana Ciornei , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Maxime Coquelin , Jose Abreu , Alexandre Torgue , Giuseppe Cavallaro , Simon Horman Subject: Re: [PATCH net-next v4 2/4] net: ethernet: altera-tse: Convert to mdio-regmap and use PCS Lynx Message-ID: <20230605151514.20112956@pc-7.home> In-Reply-To: <20230601141454.67858-3-maxime.chevallier@bootlin.com> References: <20230601141454.67858-1-maxime.chevallier@bootlin.com> <20230601141454.67858-3-maxime.chevallier@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Hi, On Thu, 1 Jun 2023 16:14:52 +0200 Maxime Chevallier wrote: > The newly introduced regmap-based MDIO driver allows for an easy mapping > of an mdiodevice onto the memory-mapped TSE PCS, which is actually a > Lynx PCS. > > Convert Altera TSE to use this PCS instead of the pcs-altera-tse, which > is nothing more than a memory-mapped Lynx PCS. > > Signed-off-by: Maxime Chevallier [ ... ] > - ret = request_and_map(pdev, "pcs", &pcs_res, > - &priv->pcs_base); > + ret = request_and_map(pdev, "pcs", &pcs_res, &priv->pcs_base); It turns out I'm missing the zeroing of pcs_regmap_cfg, which can trigger errors at probe time. I know this series has been applied, and that I can send a followup fix, but due to the missing regmap patch in the net-next tree, this series will break altera_tse and dwmac_socfpga anyway,as mentionned here (and in the cover): https://lore.kernel.org/netdev/20230605142039.3f8d1530@pc-7.home/ Is reverting the way to go then ? Best regards, Maxime