Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp446844lql; Mon, 11 Mar 2024 07:27:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWZiV24rDfJrlc3xYGLky+Wwv0ICqeM2eZMiYShyDe4+nmyhjA4S+/ugljtO4RVREYmD8Zq1xHlFu9nr3g1sCYXgQ+9FMqQV76KWmSlvA== X-Google-Smtp-Source: AGHT+IHpt2g3DiV6wgHYNCUej2oQNvdOo5N9IFge9wC6ps//uBFVipiega6T5y8VlWFlHMIlzNQu X-Received: by 2002:a05:620a:4899:b0:788:2682:9f5f with SMTP id ea25-20020a05620a489900b0078826829f5fmr8060130qkb.76.1710167241269; Mon, 11 Mar 2024 07:27:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710167241; cv=pass; d=google.com; s=arc-20160816; b=ualeW5UtE5mEc8lb0kUWmq+elTaB85oMCzZO7AXyQvIm8+Alqy75DAl+0wFMDMT6Tx +ia8WJkflBcmXe6RQCg3VnVrE/eMJ7TfJFgA7jKvMJM2i45stezASFyitIio6J2Kxs/M FNUqvVTj66v4MbMNMhZsguvAxYomMHxTx59J4H+SJREIlxbViVptXz3lW2JTBbm1ySIR LHSHvCj+9AFPUsBBlxm5ozVJo+FmqFHckQiOCXTEVVGnyMMCn5KQzXgci5QaECdL42Yp pa3deD9SoFS5/qWx4aUD6PQz3InQYyzJgm92VOUhjiAqYvicPxQebHrHzC5mnrJIlW0s cTTg== 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:dkim-signature; bh=oZTbxkjQedlArZ4e1pEnB9bCeXJ2IXvLPwUoSVRKmrU=; fh=Op5lpeOgmsfeqBznfHLGeaWVT6K4sb/dc/7WDz2zwWE=; b=uBVlZZM3QhLvJgIX8i6opRRwECl4nweTj/Dl7Hu8/bTawUybDctvUjWb/q4SqC0ewd Ccj3/q9+MUt4EOjZQhrR638jB0xKkoQtT+4VPkwihz012Q+N45bXLslj7aFYJISVDdGD 6X+0pmxyvYfPbBMmUYIR4ybkd+RgIc7s8R+4GHhahThhDd1CLkRdTTJ1NuxhFjr3wmxX mxDMdf2jboxBJmmsxxRBJg5vucG6un3JL+IiNXGdDazWHX4GfDgK+/AXJHfKnS+Oj9m0 giPlMiGzZv/P5e89rn8MlMv9hYfvVpIt0tXCGBlqtVY6Ppa8nYNg8n2jWlJ09sqX6uUS sVJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=WjVhg7Rx; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-98958-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98958-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w2-20020a05620a094200b0078821b62975si5400096qkw.744.2024.03.11.07.27.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 07:27:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98958-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=WjVhg7Rx; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-98958-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98958-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E5E361C221E6 for ; Mon, 11 Mar 2024 14:27:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0BA9405C6; Mon, 11 Mar 2024 14:27:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="WjVhg7Rx" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 F1E6C3FE20; Mon, 11 Mar 2024 14:27:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710167231; cv=none; b=lqS6uSD5CAzB0p6HREwJJPpmDVxXmIyyvmnzY5ZJBArXpUXNFSYNlTHidp0nXkBp4+iSqCE4oKBRDZY8grzXNlKb9r5gRNiyVTU/VCzOMKRAnLu1WcejHCjPcp3590NLpCX1nnaLuKT1ssAZdbzNfNVyIJVguGRWxnMBF3zdBWQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710167231; c=relaxed/simple; bh=1aJ4w3r/zuASTGzt0lTlVBVdTLgTFG77gu8clfftNhw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XmVXmC1GizcPSEjBfnhY/NnYuDSWZpsZLwm5bEy6xjWhn86+k8mTLq3fKVCe3XXCYB8QfXddTYLnw7Nm6x1PCEAn08fR8U4lutcC6GiofN+xdrkeTuPoKO/oBthCHM+HwykX9D4o/BJBQrTZTbe9nox3HR6dxpPNEErA+rZPTqg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=WjVhg7Rx; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=oZTbxkjQedlArZ4e1pEnB9bCeXJ2IXvLPwUoSVRKmrU=; b=WjVhg7RxE78mYJA9EoCPJHHhGK VMninMbKOuUUU0FUXCz9/F97u7+gipe1cZOlnhQLoslr7Qt6Ao8esrO9PVyGv6QQ+Nh0KUMCsKbsq BrrNFHexTPpbmu/OTEE2KqJvS1lfONbB7ryS47D0OfHU6Ju+6LaU5LgYKdE3kfPdeUrA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rjgck-009yQL-RJ; Mon, 11 Mar 2024 15:27:30 +0100 Date: Mon, 11 Mar 2024 15:27:30 +0100 From: Andrew Lunn To: Elad Nachman Cc: taras.chornyi@plvision.eu, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, kory.maincent@bootlin.com, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] net: marvell: prestera: fix driver reload Message-ID: <4bd45f5f-d341-471e-8ceb-4fbc98d3ac33@lunn.ch> References: <20240311135112.2642491-1-enachman@marvell.com> <20240311135112.2642491-2-enachman@marvell.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=us-ascii Content-Disposition: inline In-Reply-To: <20240311135112.2642491-2-enachman@marvell.com> On Mon, Mar 11, 2024 at 03:51:10PM +0200, Elad Nachman wrote: > From: Elad Nachman > > Driver rmmod after insmod would fail because of > the following issues: > > 1. API call to reset the switch HW and restart the > firmware CPU firmware code loading was missing in > driver removal code handler. > 2. Timeout waiting for the firmware CPU firmware > loader code to start was too small. > > Fix by adding API call to reset the switch HW and > restart the firmware CPU firmware code loading when > handling the driver removal procedure, > increase the timeout waiting for this restart operation > from 5 to 30 seconds. The commit messages suggests this does two things. So it should be two patches. Please could you explain why the firmware needs resetting during shutdown. That is odd, so should be explained. The commit message is about Why?, not What? Andrew