Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7041025rwp; Tue, 18 Jul 2023 09:10:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlFnYpfq9iO8GuTHbtFy/0UxobzlwC0R0deIiX6kmBL07nlBtFyVL1Ye+AU5okvHaZ/d07j3 X-Received: by 2002:a05:6402:5110:b0:51e:5dd8:fc59 with SMTP id m16-20020a056402511000b0051e5dd8fc59mr171776edd.1.1689696640945; Tue, 18 Jul 2023 09:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689696640; cv=none; d=google.com; s=arc-20160816; b=pyxRaaP0r2SBEjjeRarvZQF96b9urMnHfp5i8ES22Qc7RoRQxCcfGaO5ghmRTo55fH LKbC+zYW9gM9UteM4oiBaMdH1FboHhEW1vu0OGbY47KAwLE2nJBf4nI4c6jUMNjZS/IW NOrWXF43mohDZdJDBMYLXizW2Tfh1ijW0atcAJexgGZjyuNrmhQzdhADtFLvsZ8Ek5G0 3OhhZGV8+EZ7kmX5mhIonC8zurpebzixPdjicBHYDyfQEP/IeCq9dX0UchVLhggXYfPz oTVZu6C01MdELLgq9MvkECqQ3NC+/KU2G1lWf/bgxep2yVkOQhxi1DR7Wr6003cfD0dy KOpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/Xl9bZKgSzS15J7X7my6aXFKONUtvaDuDxqByit5t6Q=; fh=6FV6vW7YgVWUe9VQ3yAYUFFf7B4HxQnqaQ9MLALUZE0=; b=RN8lw9bhYlH1Y7NImy1P2/3ZSx67LViuD2PA3bdgBPMexdoYlFaAag0Tr55/cKm40E 3wwYVX+32LR7PuAnH9Z4rd+kr1Pu6VEq0zbWyAmH/Fc9SiHdyTgAUfQbNuNV2HZR4azo Me6fBiyX0XEWlu62FaKgl2aGhay4SaNZ33XsFAWbILMPSe4Fd1Xo/wrKFmSQiexL5wEZ iA67rcq2L+n8PRKkZJgjgAtIt0wrCuK04aIBIN8rW2CcicuMieGOfk4m+v2uFXQRHJoi usV4bVVP7MlRGHpdACVhdTD0RCu5iqVgNZ5wlBuDbuVmAto1O5g46Rsu8FFeneUrpmY7 BiGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=EmOhnUMO; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d7-20020a056402516700b0051dd4e2847csi1340314ede.660.2023.07.18.09.09.51; Tue, 18 Jul 2023 09:10:40 -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=@gmail.com header.s=20221208 header.b=EmOhnUMO; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233763AbjGRP41 (ORCPT + 99 others); Tue, 18 Jul 2023 11:56:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232069AbjGRP41 (ORCPT ); Tue, 18 Jul 2023 11:56:27 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9790A9; Tue, 18 Jul 2023 08:56:25 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-51e619bcbf9so8148001a12.3; Tue, 18 Jul 2023 08:56:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689695784; x=1692287784; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=/Xl9bZKgSzS15J7X7my6aXFKONUtvaDuDxqByit5t6Q=; b=EmOhnUMO+7tMBy/jkg7S0CAz8HDl9naZAONo2wPwnViMQTIbb5Fv7zLpXBhU6CbCVW VlddVe3zA8Dd/zSmHZZe9EdQsj2d2y7kxo11f8uX8ynFjRwrLZ9qVNCA2tFopHIwCA6B yDYUSGnZ2CtM6NKVK6kdNZx804ko4s5YWej1S1aLXwchkO2GVTH6eMIZikPHyGfLusHj B41Bkgo7w4O2pJWaWEzJdH9TRg6W/Jq5t4AWM1rhaUy5BKvSU2oOAYnMa3kHx+OKbhA/ mH7lg/DQyPf9MRzi9Jz5eOl4A895bP74sSmi9/gyqf9weU0r8opPCl0o9dhD4FV6UlRu JmIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689695784; x=1692287784; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/Xl9bZKgSzS15J7X7my6aXFKONUtvaDuDxqByit5t6Q=; b=TWCGlsKEXNvx8umPDzh4G5aa1IwLtix6vzY53Jug9yulPExrG4Tjazf2o7JTNZDeVG IuBp67n+rD7dNCFs94HRHKjlAhZ6U5TQBOG0dIFEWEbZLY1WPRuYISOn/LyPINSttI0b 0n7BmUcRVed0Z6hs2Pz2AL85UtT8G9JP06zgmjNDItC9zXfwlS+9Gai+bABTwT1kN8ut 4fQGqUBoAKpbWXGT6DVF/eTInCGb6t2oTo21sD9NL6oTsiIJZw8E+T4uLDDp6V0Ao/Bx cE+yejvZaUnR9N6YS70+msOPl6+w595Ck7beEluenCnG+pM+1v7tWkO2Tct2FKQxbqC4 HwVw== X-Gm-Message-State: ABy/qLY/pbk3T8BQtv/H72XxjhlLcS/yCbGn8cIiHQwHihDmXx5C8F01 znuDCgojgXy7d4Q9BPol8zo= X-Received: by 2002:aa7:d043:0:b0:521:ab99:89f9 with SMTP id n3-20020aa7d043000000b00521ab9989f9mr141431edo.14.1689695784191; Tue, 18 Jul 2023 08:56:24 -0700 (PDT) Received: from skbuf ([188.25.175.105]) by smtp.gmail.com with ESMTPSA id l25-20020aa7d959000000b0051a4c1dc813sm1378842eds.82.2023.07.18.08.56.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jul 2023 08:56:23 -0700 (PDT) Date: Tue, 18 Jul 2023 18:56:21 +0300 From: Vladimir Oltean To: Ante Knezic Cc: andrew@lunn.ch, davem@davemloft.net, edumazet@google.com, f.fainelli@gmail.com, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com Subject: Re: [PATCH net-next v2] net: dsa: mv88e6xxx: Add erratum 3.14 for 88E6390X and 88E6190X Message-ID: <20230718155621.3jenfn7rqtgouny7@skbuf> References: <20230718150133.4wpnmtks46yxg5lz@skbuf> <20230718152512.6848-1-ante.knezic@helmholz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230718152512.6848-1-ante.knezic@helmholz.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,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 On Tue, Jul 18, 2023 at 05:25:12PM +0200, Ante Knezic wrote: > > > > It does not apply cleanly to net-next. Please respin. You can retain > > > > Andrew's Reviewed-by tag. > > > > > > Respin might need a complete rework of the patch as with the > > > conversion of 88e639x to phylink_pcs (introduced with commit > > > e5b732a275f5fae0f1342fb8cf76de654cd51e50) the original code flow > > > has completely changed so it will not be as simple as finding a new > > > place to stick the patch. > > > The new phylink mostly hides away mv88e6xxx_chip struct which is needed > > > to identify the correct device and writing to relevant registers has also > > > changed in favor of mv88e639x_pcs struct etc. > > > I think you can see where I am going with this. In this sense I am not sure > > > about keeping the Reviewed-by tag, more likely a complete rewrite > > > should be done. > > > I will repost V3 once I figure out how to make it work with the new > > > framework. > > > > > > > Can't you simply replicate the positioning of mv88e6393x_erratum_4_6() > > from mv88e6393x_pcs_init()? > > I don't think so. The erratum from the patch needs to be applied on each > SERDES reconfiguration or reset. For example, when replugging different > SFPs (sgmii - 10g - sgmii interface). Erratum 4_6 is done only once? > My guess is to put it in mv88e639x_sgmii_pcs_post_config but still I > need the device product number - maybe embedding a pointer to the > mv88e6xxx_chip chip inside the mv88e639x_pcs struct would be the cleanest way. > > It needs to be implemented exactly as posted here? After mv88e6390_serdes_power() is called on any port/lane, mv88e6390x_serdes_erratum_3_14() needs to run for all lanes? That might be a problem. Do we know if the register writes are disruptive for the ports which are already up and running?