Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1150474lql; Tue, 12 Mar 2024 08:37:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYwVAv1RsADwjrONTaRBQiG3lI7sCOMzol59aaepa0UgRdDad8RyUFMgMl7PRO7V3yncgfzY24rioWJGTye8CWyobxuaN6+WDOBsuiqg== X-Google-Smtp-Source: AGHT+IEuvQSgOoyERtYIkpbrObuU6vvwj4Ljh+r8VZqRxuMcut66eG8ekasM0aUaATrAmWUIVW+A X-Received: by 2002:a17:907:d301:b0:a3f:33b2:5ce2 with SMTP id vg1-20020a170907d30100b00a3f33b25ce2mr6132960ejc.35.1710257833197; Tue, 12 Mar 2024 08:37:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710257833; cv=pass; d=google.com; s=arc-20160816; b=cTlXApKhrv0NlGWQhh4+mGbXYP9M73z8eSJSU2oODG9z9WeUhy05HSPyVEoalzlOSY 59+vHVEpjEiJbWSWoBaA/WWx7oni2bxsaZeLNtST22Mbqrn3CYpUtefSQLP8nr31qMzV TucEjrA1IasMiLLKZPPa7mgHWispaPtoJUB25qEmXefclAfajCrfRIpr7/SuaQcT57Ik U93eGfhLTgQEC62J6/jXtzHqfSl0sSWNCWjzjr8e+nL5Pa0Oo6m1fTav5lvQaKxyya9/ eX6ygJtuimXy4KDqLbGtfuog8QoMleDpp5k/3MFW7Ob+ZHjh3qzJRp0z8J9gpV6jzZz7 8UKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=WWFuTR9EE+EdIqMSgXCGOUuGRY+Sbvto2K1yVsekP80=; fh=NAcsc8eGM9ERxvAaD6Gcau0yDzSEFPMPAkTnTEeIWq4=; b=OGeXTzxqzIlHDFtDZTfNG5APuI27IVWAql96huu5HWTxUyUcFYMvlh82GN4p502DVA R34SpaAiO1tsSwwl3aJvD9853aVLcAxkYcEBZh/GeJawsLxd0mYBRYlKYwAtcrUYWKh4 dg6eEWftvLrsHldOa9gnjB/Crl+RzyXhCcSJUx2grZqunZQSpLJf3A0MkTxNTMyzXyeM IBZsqGjtORSp6PQdJ7fb5RXD9nA64DOVtFiuAVcJhaTUjpK4u7cVWcDTFkoRN/rqWxAg hrIy+lVxnaLZCu4wQNp2z1Jd9Xg94Jx83PIE7cK3JUqUI2T0PRrTnmiSDnJssrqJKEeL jvdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=CRnpOGj7; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-100433-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100433-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d20-20020a17090648d400b00a44969e40desi3538073ejt.634.2024.03.12.08.37.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 08:37:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100433-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; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=CRnpOGj7; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-100433-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100433-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 EC02C1F253DF for ; Tue, 12 Mar 2024 15:27:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB50A7C6CF; Tue, 12 Mar 2024 15:27:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="CRnpOGj7" Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 CEEB27B3E5; Tue, 12 Mar 2024 15:27:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710257231; cv=none; b=Lb+1oHz/OdisFBx/fAPIi+VACaDOsUDRnEAxLw/qGgdMdZJ+WAYJliT7tOxsRfpvXqfBHYmsVjTL9RGKFx2nsFn6ihadIa50U1ZtkkxutzYUZVPQB/FHqXhwc7hNu1DgJkYZ+q/bvHZ0tNLvtQpJtoZZCyjwXcHPeosek2amIO8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710257231; c=relaxed/simple; bh=4QoYwtaR2a7omQwUBxbzONi95ZuvPaOkAYyrjfJKR4E=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OD5ycwzvuSpf/ugnjVcIdDk4Tob2oCLvtjZeKhRmjwMXML4BLUNdMO0LyzfcIfjh5g+JmACbuDBqf39DtIxNqZJBGZF3fQ7Kg635mHOl+n7d4gMc0Nh+MIJH0z5lpmjHWW0wjVlvh0kRmAyWeI3i1dv5ceAIa9G2zFqzbMSpJFU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=CRnpOGj7; arc=none smtp.client-ip=217.70.183.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 4801D1C000D; Tue, 12 Mar 2024 15:27:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1710257227; 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=WWFuTR9EE+EdIqMSgXCGOUuGRY+Sbvto2K1yVsekP80=; b=CRnpOGj7TSxW/oBFDuWtQSTRBDymEn+N+GFGLrqwHYMDbxl0k6vpiq3/omqTU6KmuljuPD 9b6qkpj21I+TVHPARj/TzczAe7Tj0jcy/+H2GHFdlZrdj8oSBxbMKwOeGNX1jglMzj7sIv fDC+7bIqGoB5814s1iXA/z5bR8pRCwB2u/ng2dTw/iYokiTJata8NhEBkAK7Mpeu4ytxoF WzeW1WU+zdMqEh4xtTwKjE7EGvzgQCgooBhtxSfkFt8rMZKzdS3UL6cyb0g/4YZ2WNH5vL lnZGAM/lfybVVX3aqnsIQvDL7sUKZBKA+RTzTeK/N3yhk1dpZbnhXQ2wm639Pw== Date: Tue, 12 Mar 2024 16:27:05 +0100 From: =?UTF-8?B?S8O2cnk=?= Maincent To: Elad Nachman Cc: , , , , , , , , , Subject: Re: [PATCH 1/3] net: marvell: prestera: fix driver reload Message-ID: <20240312162705.0097ee5a@kmaincent-XPS-13-7390> In-Reply-To: <20240311135112.2642491-2-enachman@marvell.com> References: <20240311135112.2642491-1-enachman@marvell.com> <20240311135112.2642491-2-enachman@marvell.com> Organization: bootlin X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) 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-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com On Mon, 11 Mar 2024 15:51:10 +0200 Elad Nachman wrote: > From: Elad Nachman >=20 > Driver rmmod after insmod would fail because of > the following issues: >=20 > 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. >=20 > 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. Tested-by: Kory Maincent --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com