Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2042047lqa; Tue, 30 Apr 2024 06:58:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWDA3xV8Cegqx8Q3NLp4UA9qvYfsku6WE2YZT2YP6FQUmYd+udGIE5VXOpnTiqWs5jMA3+4fqQePB9c2xsLtRUsXo+ltexH/uKWSAsnOQ== X-Google-Smtp-Source: AGHT+IFHtQykcQwRmwT5laH2WQgZ+brKJz2zSCOuCm/ZWzUKpiHoZhaSx6/dxOgccja6MUu1Bh1G X-Received: by 2002:a05:6358:f484:b0:186:1c4f:29c7 with SMTP id ku4-20020a056358f48400b001861c4f29c7mr13123903rwb.27.1714485501466; Tue, 30 Apr 2024 06:58:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714485501; cv=pass; d=google.com; s=arc-20160816; b=zaDXGdq3PbTM1bVZML33vxUAGID1XiPjv/h2Vw2hJZvUdO12YY8azwfz+tSTiUdgOl YD2v7zaoSYocRWAKbDYX/9Ax5x2rsMMWr4L8Bfv5vQFyyZoM8bMDnAI4L9WkJ3cJQeMW JlG4UfYbqNAguYfUUZWUgZ9qNDqcHHNv90Efo2FZMdoqv3GWyHFFqPSOdMI/dTJIESBU MSdZD36MPZu3BM8bkrUcQgtwQ6UqTf+pfa9NLgDkgs8xcKhv8xWozeIJcoS9Zptd92p1 fnza2N6wMSpfri2PU6wgI1/xnjs67yKBqt9xcsktb1C6YYZ6JOcP9zmvxCV8m0ZWua5E 7dyQ== 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=qqMfdpZFIxjLfpY7KpDI8toRWsQL6mV7POHZY9A/Icc=; fh=yroVL5W+anpDZI5K0fU2gzdirmXOU/GyUvNeEMKqLNo=; b=pne1ubGhR1ewizYINm/Pbso/CikiTEB1EcgTeOn0mPrxqY7LVK4bhkS47+128C0toF 0H9BJBpSUMw/WWGXmJGHw3tk6vZ9xGE7D9c60aZPQeoYM3vDfYVlIHKYpftgMI0aM10B 2u/x378WbgSW6fRWJouM7xbvZ66FSd777hI5gQveA7gyfjZBAqFB+Jdc56OD7hukcOGy 127kL//r1kBkmuBbmMhM2q6VRwF/75JEqsVt3tPKmApbNZx0IPUQVF2T9r7ObFZDliGh AHOHY4YS9x/7Uv/23DxPI4cXK4+bJAEq1naP7g5EvOk4viOPcSPQAXioHKYqQ/c3huRm sqDA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=MBJ35qX8; 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-164048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164048-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a9-20020a654189000000b005fd6e5dbf34si16766800pgq.362.2024.04.30.06.58.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 06:58:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=MBJ35qX8; 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-164048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164048-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C230DB20CD1 for ; Tue, 30 Apr 2024 13:58:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F311172BD1; Tue, 30 Apr 2024 13:58:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="MBJ35qX8" 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 0AA84171E67; Tue, 30 Apr 2024 13:58:03 +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=1714485485; cv=none; b=pQJ4Mkls1vxUi0pRkViJMc4DDGESfHBPJLK7U2snRWv31luRpDjtU5BkjnmmD6PYS8VDam3FVo47oWqFXHMMMRaAyIFBly6xSrav3wDqwI/XFJJ0jBPEXmqWmJBaRMNFNKxidzU6o0+WUHdW9mgjX3Zfc1d2lQaCw5+aL4aLH20= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714485485; c=relaxed/simple; bh=d2R3ApKMV1f3gJuuo4H/Rasd8gq2uUW5q7jd8t2+E/U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Go1IvlQxJcCdq3qxaU6ebksnMfI2V0GskASUwzYB0w+3LOah4DN1lVlFAA3oZo0j1+ummSxcaRncO87ngNgiZBMd2aI1fn3GMq6SrHw9kGH4qZYJGxmIA6JGb2jIeZ9OC8tB0auyr1+99YjsIXHyOopJCUgZa2W0gyTdvTsxe1k= 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=MBJ35qX8; 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=qqMfdpZFIxjLfpY7KpDI8toRWsQL6mV7POHZY9A/Icc=; b=MBJ35qX8Rc1+swgu0QzomYXrkZ zBlqwucwM3GEGxiDhQQiOYN60QuMF4Q1g8jRJ3k075imLqh0udEKduQj79hyuZQM3rF86WZ4HuOUk xTsyI/J07fim8i63Q7b6a6T1I+m4uam8GWiJGKgy30nuAvzQ549H1U7u1AWn8qcn80Ec=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s1nzS-00ELQq-Ne; Tue, 30 Apr 2024 15:57:50 +0200 Date: Tue, 30 Apr 2024 15:57:50 +0200 From: Andrew Lunn To: Herve Codina Cc: Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lee Jones , Arnd Bergmann , Horatiu Vultur , UNGLinuxDriver@microchip.com, Heiner Kallweit , Russell King , Saravana Kannan , Bjorn Helgaas , Philipp Zabel , Lars Povlsen , Steen Hegelund , Daniel Machon , Alexandre Belloni , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Allan Nielsen , Luca Ceresoli , Thomas Petazzoni , stable@vger.kernel.org Subject: Re: [PATCH 08/17] net: lan966x: remove debugfs directory in probe() error path Message-ID: <11737915-40d1-4a3c-9a49-12cb1889668e@lunn.ch> References: <20240430083730.134918-1-herve.codina@bootlin.com> <20240430083730.134918-9-herve.codina@bootlin.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: <20240430083730.134918-9-herve.codina@bootlin.com> On Tue, Apr 30, 2024 at 10:37:17AM +0200, Herve Codina wrote: > A debugfs directory entry is create early during probe(). This entry is > not removed on error path leading to some "already present" issues in > case of EPROBE_DEFER. > > Create this entry later in the probe() code to avoid the need to change > many 'return' in 'goto' and add the removal in the already present error > path. > > Fixes: 942814840127 ("net: lan966x: Add VCAP debugFS support") > Cc: > Signed-off-by: Herve Codina I know you plan to split this patchset up and submit via different subsystems. When you do, please post this for net, not net-next, since it is a fix. Andrew