Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp455630lqt; Thu, 6 Jun 2024 08:23:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMy0IIcB4wLqVnEaVYaBDIk1U5dLvYFXEtJaSpVXxk9UxgdkX0vS3cjZgaWRkCLEDS67mPPiFp8Ucy2THF3T9c9PTRDYIs0r1EBiROrQ== X-Google-Smtp-Source: AGHT+IHrdzr0uyxb5BTx+SMP3KX5qu+RFBAIIj/LtImuvey5I/4/flyYmeOeMvgIoLftASz/L37z X-Received: by 2002:a05:6830:1299:b0:6f1:3aa3:b0e7 with SMTP id 46e09a7af769-6f94340e6c1mr7019307a34.7.1717687421237; Thu, 06 Jun 2024 08:23:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717687421; cv=pass; d=google.com; s=arc-20160816; b=MDNKH2nb7Fsg9sZGA8nFWgvzCtXotoVm5piyvMpf06w3sazNJ8TLBcAMKTu2lMH9op VNgJToPlA6Wb4I8s4LJcvL1o4GcalDOUotXZkAxL+QOrBZKK88rNzQrUWrmxPIS7rAbW D/MiSshw8rJBu93SwEOH4k6+qX+a/IbD3C/wxkqKF/jBKYjUFf4anAWP919vvdtD+AFq 5KhasD6rz8uWTubNmwEZTxmSY2X56Kcxq5IplijCnfHZ/LjGcJfMPXd29uJcDL43e+mj 79MbeZnO3TAy18VLCZGjeooqOIUFQlJ4CZWwUvXMdbzXjc1ngw4M6rIU29EWP3TEKgZD NU9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GMT1ykjhbgM22EzMElHF0RPQcaLGLoRrCnFOFHH5cgQ=; fh=AIaWzzizbwO3C9VRUBlCzAsc9O9UfVQJm0Diwj+531k=; b=EnO9dPwRE34BjGlZr8MRjZBCjZQEkmURjtUbATvfqObOX8lgCM+FAu/y9LzSjm7wbJ 4THjZYDP+P08dNgk+lc9FEo4BNCod/xcyG6/11SupeX9okR/8q272NBQKZad0IM1rGWy r5LeNJ4YcMykgY8IjPD2Drm1BlG+69ReN9G4sQtdbMdTKsj+H/duY6IqPZ9Dc5FePQnZ anXQIqLHlPFQbororeUw38APviDnps/IexsRxiSXSNoYnyNp2xfKrVQS1kOT0JxuXmFQ NPR4EpO2fvhUuMOHng4aLJ9I8ZlMTp53uX97EVaKyIIL4efTVAe0vwElw+pFpwM2p2A0 w38w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=PHTiZfyZ; 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-204561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204561-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ada2fe7eead31-48c1a0f5f3csi399151137.140.2024.06.06.08.23.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 08:23:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=PHTiZfyZ; 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-204561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204561-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 6EC1D1C2324C for ; Thu, 6 Jun 2024 15:23:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68839197509; Thu, 6 Jun 2024 15:21:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="PHTiZfyZ" 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 6CD17195B11; Thu, 6 Jun 2024 15:21:50 +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=1717687312; cv=none; b=RiIMZriqeTNYfui3W/2o9M9vy4yM84F9TGuGgyvXRZHikuwiP1T0btQ9Zlb3vh58pi0stXsHnWejX4+F9QXZYOMw9Ml+S4nU/i346VdRPDnKFWC+yicXIPJTiamoAtnRne8U1gcdShzCLv5ew4l/3ygf+Rug99FMqSnLAmLSwkw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717687312; c=relaxed/simple; bh=+JbV2WwHLiNrIrXPhAnPneX3NCFy22wigTTB7b9U+jY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Iy7oAJqTL3g1WAcQVTkl8/HPpkNoas6LPf1oV9JlOCn2cnUs7xBKjP/JMv2gT3UEW2UAya5wFx+YWuJWlcpLis0h37TgESamRjSzOKyoRPVhvwW2iI2rZyMEaMbm9cw0wQce4/d172s3SDR7ey7zDVBPGzei4Jdo/3tyH9VQGiM= 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=PHTiZfyZ; 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-Transfer-Encoding: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=GMT1ykjhbgM22EzMElHF0RPQcaLGLoRrCnFOFHH5cgQ=; b=PH TiZfyZAZ2V5yposKZaaL0QYpCK5AUaOSZ5KQ1Y6abzo1vaOuUM1m1TQ+tWR27Hq1VLWwU2NPLRidY chqFe5WvAIcsU2TWZ93uhwIuZzgmS4/lHzGNAnIC6i2mVynAb6bTLWjA11zp7C4y9upfkzdM4dM79 5Mo9cR5rhz+os9U=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sFEvx-00H1vZ-IS; Thu, 06 Jun 2024 17:21:45 +0200 Date: Thu, 6 Jun 2024 17:21:45 +0200 From: Andrew Lunn To: =?iso-8859-1?B?Q3Pza+FzLA==?= Bence , Russell King Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Russell King , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: Re: [PATCH] net: sfp: Always call `sfp_sm_mod_remove()` on remove Message-ID: <24a48e5a-efb3-4066-af6f-69f4a254b9c3@lunn.ch> References: <20240605084251.63502-1-csokas.bence@prolan.hu> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240605084251.63502-1-csokas.bence@prolan.hu> On Wed, Jun 05, 2024 at 10:42:51AM +0200, Cs?k?s, Bence wrote: > If the module is in SFP_MOD_ERROR, `sfp_sm_mod_remove()` will > not be run. As a consequence, `sfp_hwmon_remove()` is not getting > run either, leaving a stale `hwmon` device behind. `sfp_sm_mod_remove()` > itself checks `sfp->sm_mod_state` anyways, so this check was not > really needed in the first place. > > Signed-off-by: "Cs?k?s, Bence" I was expecting Russell to review this. Maybe he missed it. This looks O.K. to me: Reviewed-by: Andrew Lunn Andrew