Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp425576lqi; Thu, 7 Mar 2024 01:03:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX7+JL8UAaeivYlHdsdmoWNO+p6wMQtKD6QBzujoy4ZxBuZ1YQ5Rke23NkWaO1C+IzUxzir8yh9skd0rD+HsWy7X+JbA8JPj9FqD0LhvQ== X-Google-Smtp-Source: AGHT+IGfWIFPEQp/bhZi3Xs9UFqapIv0DixSEXV85FEUJJnfTWkiXJJAEw11lzbbvlx362Nq0Mwu X-Received: by 2002:a50:cbcc:0:b0:565:f7c7:f23c with SMTP id l12-20020a50cbcc000000b00565f7c7f23cmr10954291edi.3.1709802206009; Thu, 07 Mar 2024 01:03:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709802205; cv=pass; d=google.com; s=arc-20160816; b=LEvO53PvgN1jgbVYKb7Nh0QNJOcAQUbOby+nD83wxnyNt5cb10NIM3AGJGGg9lw2yn C+2iFM1QJ0+zwfM7olIP1g+UHgyZsj8Y5FJ3wRC1Gb75dWk6DBVCVhXzP50TJrhWxtQ2 GEH1Et6UoOUdXlEBKtclip/kPlEQXjreCkoHwm0ZYG+s5MeTNSvnPUC9SIlDjlOeRMBZ uVYjAM7oVWnWXOm/iDVM/RK9nNfr7cKEtg9gECXbtpFgqCo69WjlaMVfdyMNf8in30vW tBEtXN1sL+prMqXtjkgpc0Cx7qSxXB7UiOEHFQfDwrxhlFYPs6HQp1bBpyUrRO0M7Oab ZX0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=hnKFzoKdAtWI28eKJbn2YVzmBlxKJwWCgIeBod8aKiw=; fh=oOxTv4UOja0a03UkY+xnngNZQaUs7PaRBujJjFeh8OE=; b=0+fDY/DeAwtQf4NSqsw/xNdaF8qQIfz4z2gARf35CRw7p+DsNB5g6hYC2ETO0YVNY9 nC70E+wpgjWucH9/kGUwQKQpezhUcuR/3sOeW/to369tT1wRVHU7izt/a02itXXn2Mpq bYPHW63ENfXW+R/hvflU2b4DADjXmJAQBpDlBOcjxQGaBhk36LwEFTzFPv4K63jclBMS WxDxTfHafeBSeJtT5JePUwwHjFjFQlb4AVGtsVcCoppKAfL4jYpiHq+K1Vbv5+GGaI1n r7slESsBqeoyxMrTk+C+l4uM6MDtF50cveVTbInXX/qG8sATDbCYSZp56mhT8a9bHL+Y mYvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-95177-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95177-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z7-20020a056402274700b00567fc29df32si913243edd.523.2024.03.07.01.03.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 01:03:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95177-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-95177-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95177-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BAD9D1F2319C for ; Thu, 7 Mar 2024 09:03:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F035A82D7F; Thu, 7 Mar 2024 09:03:19 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5AF563134 for ; Thu, 7 Mar 2024 09:03:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709802199; cv=none; b=VSpYG4zjCIHdt0yVfoLPoJCclp9z/Z+hhkkYYohB46GQO4H3oh9Eei8LdwbksV078zUx8j5oeNVWIYpmGw2fZtlkMgCfF+EVcblBzJ6f8zqPcLiGx2KjSJgFc8jskGz5fUh48cM59S84ELcpi0bSxpCtrQynJBu0R8oT2afe1jA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709802199; c=relaxed/simple; bh=19Sxx4QzVGp0LXla15vrSDZwzTBNjcGW13SPUGGzonc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oZGu5bDkfTQfTuYIb0D8pLrJU7kZCZRO2izEadPElR7O2jLvXh+Jj4P2PrDSBve5S/Fg22PVlJCPAw2l/WbFDF1AHPCiOi6ikb0ZeQaM+QcwpDhx9I9dhMOKxDn8uIpIqfkAYaeH3vYBzB5iG4PItyhVGJNIy/OB8l1caY7Fp1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ri9ed-0005F4-Ve; Thu, 07 Mar 2024 10:03:07 +0100 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ri9ec-004uGZ-B3; Thu, 07 Mar 2024 10:03:06 +0100 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1ri9ec-006Lo8-0m; Thu, 07 Mar 2024 10:03:06 +0100 Date: Thu, 7 Mar 2024 10:03:06 +0100 From: Oleksij Rempel To: Arun.Ramadoss@microchip.com Cc: kuba@kernel.org, andrew@lunn.ch, kernel@pengutronix.de, olteanv@gmail.com, davem@davemloft.net, Woojung.Huh@microchip.com, linux-kernel@vger.kernel.org, pabeni@redhat.com, f.fainelli@gmail.com, edumazet@google.com, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com Subject: Re: [PATCH net v2 1/1] net: dsa: microchip: make sure drive strength configuration is not lost by soft reset Message-ID: References: <20240305064802.2478971-1-o.rempel@pengutronix.de> <20240305191457.37419bd4@kernel.org> <935b7bd6fe116291ff5f1f5a7a52cdad89e4607a.camel@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Hi Jakub, On Wed, Mar 06, 2024 at 07:03:39AM +0100, Oleksij Rempel wrote: > On Wed, Mar 06, 2024 at 03:29:32AM +0000, Arun.Ramadoss@microchip.com wrote: > > Hi Jakub, > > > > On Tue, 2024-03-05 at 19:14 -0800, Jakub Kicinski wrote: > > > EXTERNAL EMAIL: Do not click links or open attachments unless you > > > know the content is safe > > > > > > On Tue, 5 Mar 2024 07:48:02 +0100 Oleksij Rempel wrote: > > > > This driver has two separate reset sequence in different places: > > > > - gpio/HW reset on start of ksz_switch_register() > > > > - SW reset on start of ksz_setup() > > > > > > > > The second one will overwrite drive strength configuration made in > > > > the > > > > ksz_switch_register(). > > > > > > > > To fix it, move ksz_parse_drive_strength() from > > > > ksz_switch_register() to > > > > ksz_setup(). > > > > > > > > Fixes: d67d7247f641 ("net: dsa: microchip: Add drive strength > > > > configuration") > > > > Signed-off-by: Oleksij Rempel > > > > > > Hm, this is much larger than I anticipated, and also doesn't apply, > > > so there will be conflict with -next. Andrew, should we go back to > > > the v1? > > > > Suggestion: Instead of moving ksz_parse_drive_strength() from end of > > file to above, can we move ksz_setup() & ksz_teardown() down. So that > > the changes will be minimal. Will that work? > > This will make it hard portable to stable too. As alternative I can > offer to use v1 patch for stable and send bigger patch for next after > in the next net-next window. Are any changes on my side required? Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |