Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp493034lqt; Thu, 6 Jun 2024 09:20:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXN0Ponq0hOEMZwifcjbYIKVxvkcKp9e6TN8L5lyX0lkKwlag9lGq9d/SznljXJVuFdPqz5/q8tG5LF2jFHfxOx9uAoKkdJo/OBIFijQw== X-Google-Smtp-Source: AGHT+IE+pJBPh9j5DoQpj2i3BrKba3iCbxLZmtoeI60EnKBnuZuIOmc9yZwon7NKezIPUYD6k0aj X-Received: by 2002:a17:906:d10c:b0:a65:36cd:c7b7 with SMTP id a640c23a62f3a-a6cdad22f00mr2863566b.56.1717690805692; Thu, 06 Jun 2024 09:20:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717690805; cv=pass; d=google.com; s=arc-20160816; b=X+/wcpYkpjvqmjA3FvNbndl+HKBmSAVMJqcwtcKIoyW61i0s1hZ+N0I/akwWE0EgcP bLWXkE0zPKezV4ATsyD2XD0B1+GYF/ryYvZ0LS4u0qndicuoZbyvG1gjtuCjvhhLEn9y Xg9Lgw1/RRcWFpfqNGOpNv7rGaJWdmuiahOeTHmCuY6fahKcYmFQCRm1Z9NZAIN6mvx/ 8ifMKpuqRqmG+ItKT5f9YGbNj6zbqS01TT+TAv6LojXqluNz9YKoP3fH7KGwjCQUUHW6 p3AVym/MqOPzaeNLi1A4D2mpmQ6ScAbeahSM+IBsL+1HQRi7q6fF7iUaBH39ZYK6aPM4 KJGg== 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=mDaT/6dqllCZHo2gumWmEXOi5NqdI3/lfYccvH9BDkE=; fh=z0qttR2sm4bJOBQ75x8jrusOTeMZ2y2bB4JgQBoIZKQ=; b=rV+EkMdPoErtAjq03hMXRXiTx2/SQxQCEKUaFF9qm60M7nm2QWqLDb+d57INvR+9Ax U7G+tYhATNFt9Ptt+hniXyxmNpU1+Sp1HnS+Lwo/xDMuWf0qOlWgwrGAjwS7rrvaXkKX xVWWWJCpQ+U+QZ7C/UxtYtOnxt5UQHVLgCSk0zOCTsMaWi7T7cNI2AEpw9dkDwZ8EHBN 0h1aETdQCmGhh8+oWTphHErAT27lylF4rfXQMPtLlI7lcWUkLuOLzCOu9HF0GrsH350B cxBLDPo558/p7VwFddr1ZfOYgDtfJgs8E3it6yEC08Mg436Kff+D36ciFlF7jD55MZbg odOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=jJC88ykM; 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-204679-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204679-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c806db70fsi85760866b.380.2024.06.06.09.20.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 09:20:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204679-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=jJC88ykM; 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-204679-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204679-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5C5751F26AF1 for ; Thu, 6 Jun 2024 16:20:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B52B5198A1D; Thu, 6 Jun 2024 16:15:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="jJC88ykM" 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 8A9C3196D8C; Thu, 6 Jun 2024 16:15:07 +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=1717690508; cv=none; b=DoDsC2yAscX+TI0KkKzcgkP6ETo0tBcIdBEyzadeHC/4xr0lbjkOX+pqFJ7JL2la7+/6YRrCa8CULG+Q1Johv1qMJymcsoyRMztf7ILy1uZbCQeYrAnZ6TB3vxTcuN7lSize+ZC6I8RE6PUBBd7ZIqaQ3Nq/5Vc7lsZhgSp3kks= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717690508; c=relaxed/simple; bh=6v0CUPRfaXGAoLPrPrKauXw7CPWZ+MBBWv69fm/Az0s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MdPMwL+DJtIpl3MY+znVQGmnxa3Rhzeo8zxkzt/nGeiIJJ4GU/+eRMHjB04YiDciHQ427QIpy6g2+iZt4gTjIvG2lx5XA2hq1aakgDgjTXkkESFulzxJGzQr7wUyI2Am0upTQlo5zYXtDLIp5QEDFVmynb1DVpSuKI+A4KjYQJo= 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=jJC88ykM; 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=mDaT/6dqllCZHo2gumWmEXOi5NqdI3/lfYccvH9BDkE=; b=jJC88ykMQtPQhL2WJaUqKKQ3OQ 2vavJMlgub9cow1wxW4ZK6+JCMiX5cuj0eWf1lP+mKMb4XCYxC1XGS9ujavcTrrmiWL9bKbQaIRqc sX2pmN3KA2ak5W4iMcgMRzmkpK1KmVtcZHPFoG2UDpU6a1batT48h6/3nYURzwWrcNSs=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sFFlX-00H2Fg-5T; Thu, 06 Jun 2024 18:15:03 +0200 Date: Thu, 6 Jun 2024 18:15:03 +0200 From: Andrew Lunn To: Jakub Kicinski Cc: =?iso-8859-1?B?Q3Pza+FzLFw=?= Bence , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Russell King , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Paolo Abeni Subject: Re: [PATCH] net: sfp: Always call `sfp_sm_mod_remove()` on remove Message-ID: <7768e181-19a5-4579-9113-c6d70479c452@lunn.ch> References: <20240605084251.63502-1-csokas.bence@prolan.hu> <24a48e5a-efb3-4066-af6f-69f4a254b9c3@lunn.ch> <20240606082830.30e3a294@kernel.org> 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: <20240606082830.30e3a294@kernel.org> On Thu, Jun 06, 2024 at 08:28:30AM -0700, Jakub Kicinski wrote: > On Thu, 6 Jun 2024 17:21:45 +0200 Andrew Lunn wrote: > > I was expecting Russell to review this. Maybe he missed it. > > While it's fresh in your mind - does it look like a fix to you? > From a quick look - we're failing to unregister a device? Yes. A Fixes of: commit d2e816c0293fc263b3f168c14992a5f1a50d7593 Author: Russell King Date: Sun Nov 10 14:06:28 2019 +0000 net: sfp: handle module remove outside state machine Removing a module resets the module state machine back to its initial state. Rather than explicitly handling this in every state, handle it early on outside of the state machine. is probably best, since that refactored to code. Andrew