From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE97C3BAD9A for ; Fri, 3 Jul 2026 10:31:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783074664; cv=none; b=ddj+HUwZfUnIAxKE7DmLTeMchYrJHZdGeJhLMiqVAs3gtfoB0RMNMMOWaUgi5qorjtb3eSPxFMKyGqmWRzMDGYv8ZX1kYssI74Is59d4ncP+hMeaLPNlcZqmGjW6O6RpsP5c0uNO2+LBBgW2bINS5Y3MUWYWnmyT84ErTh2kFWk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783074664; c=relaxed/simple; bh=OpuYdWhmyZAhNJiA5SH3z+eNa0tvgQ4u3LKATeqSu6U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PuwuWoEI+BaSKZDD6Y6PMOnPsnRQ2dzayiiTtDofB/USTqAvTHt5CNSUFp5GFNjjYxdZ+7wz1oC6mnv+4ogq8mm2xDKo5qqQlZMj0Ok4pT/TmlYx4nHUCgEJu6KgL8weEUKhPrpfWe96pV8JiyjYnzvdrZQsU7inygsuyoCw7v0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=o6yei7C3; arc=none smtp.client-ip=209.85.167.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="o6yei7C3" Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-5aeb5e85378so526632e87.1 for ; Fri, 03 Jul 2026 03:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783074661; x=1783679461; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=eCSEztyeSnYY7fS86dLtAIMVXOB4i2FzrNk+WcLpm7E=; b=o6yei7C3pI6yPWsyx7f00+Zv/Jl8UHdwjROwPyQCatk0CUtLdYX9Blws7ZAxio5GN8 yxko9TINChI1toUoqY9qr9GOoUXQq9G4GCzfqw4w8T/zqGvsKEtdL542FAMnDXWBxt59 LV3Su2vzBbNwzQkcn+9ZObHU3D1Rt35Jvbiemm/yxpFdDuHs5IecEZfNbkI9bA6ftU4d J+EBeKXkyhUMPxVJLqLcSWPvYwThwhV5HDpgifjmLN9vQ8QTLD4Sxy5ledfHNUGCB4Tm z+LdoBV0iAIpTQoPI44xbAyf9gOWJQ8QFzOj9gIy25J0BiVk7p8ENZE4d+JrZGD1rgwU JEQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783074661; x=1783679461; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eCSEztyeSnYY7fS86dLtAIMVXOB4i2FzrNk+WcLpm7E=; b=AZ9HBvdRwx+yIvLbYB3plVZPvp0hpS923fh/jzOTasSVCQ0fcnMhxG0gwV0NGrm+gI muBeiBc9Jei81Or21HHXqzup4yB01+zYE7deMDC4djN4q5UZXUZEpXbgW2hWazSfYqvq l3ouv7xfxacIJUJu9boi33zpnNVZQki5vDIawGuSiFBigEkxS/I5LNFPGaKN/dnp86fD s/QNcbRC8W7ZjMGBTAgXHUBOi+bCSECM9Zm4aEhcjPyVrxIzrPaj3WAVz8Pz2XEZ7cBu 9KDaU3Pe/GD5WjZpX5TfJm661NmBtzJ18GnAXPY6EgOxgoI3ChHvLK8xmX7fQZD74nPj +7Dg== X-Forwarded-Encrypted: i=1; AHgh+RqohEXcvs0dsAdm3HerwnaK8wpOAyxOBq3tQT9c7VNjfSUz8SIeKJt3AQvYoAsBQ3p8JGW3nR0/E9CLEF4=@vger.kernel.org X-Gm-Message-State: AOJu0YzRtXOUdnzkQFbSiSW3c4/BsNetHBc6O67BF+nN61adas2Nt18M v2KAzNfEMzFr6f9P+LQOFPrRoUAfGajz9G54urr5/GCjFtTYUNyLqey4HzE0tg== X-Gm-Gg: AfdE7cmziZzavio+wVMhP9HM5Ay87DX1VoCLgIY4xH6NGH4/upzzOG0wQ878sLl9Soc UAwK/AwLTVhAfz5w825QSLxRH7q9Gs6Iip3MU3lncPW/2IKxUZpdMXYVhAStJHGJzeD9tRvp+2o PxP5BtL1v8pc/3VWAKlDmVv/AhN9PZhVmDZEmyIvyKW/cDm8i+0lxvR+SoJHKY2pR0PRDc1O9R5 2JsXfowXf1nmLDPcXpnv8SyokIr+5SDNP4yfT+K+geCaqFwKtOCnoAv8/obw5q55ESdux4pDzuw WV5cLh7Lz4+LGYBrLAuM0ctlAQzKCcxsMDMkl1FNUxXTA6wTpKNGPjF5a8nnZEwrvFgXjy3i0ol H/NN1vWqwmlMM0qK0N4+KWItpMehbfeUZjFG4Bzkih200NSVa4S28Ko5Zl97RH8inEGlqjmOgZ7 st8y8TokLHVKCdS+mIIrqMuXhwgGc= X-Received: by 2002:a05:6512:8354:b0:5ae:b4d5:6e5f with SMTP id 2adb3069b0e04-5aec67b87abmr1628901e87.40.1783074660853; Fri, 03 Jul 2026 03:31:00 -0700 (PDT) Received: from localhost (soda.int.kasm.eu. [2001:678:a5c:1202:7b92:9ac1:b9ef:5287]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5aed137708bsm379446e87.22.2026.07.03.03.31.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jul 2026 03:31:00 -0700 (PDT) Date: Fri, 3 Jul 2026 12:30:59 +0200 From: Klara Modin To: Prashant Rahul Cc: Greg Kroah-Hartman , Shuah Khan , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/4] staging: octeon: Improve initialization error handling Message-ID: References: <20260702-staging-driver-octeon-panic-v2-0-2c2b6ae086dd@gmail.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: <20260702-staging-driver-octeon-panic-v2-0-2c2b6ae086dd@gmail.com> On 2026-07-02 12:36:13 +0530, Prashant Rahul wrote: > Hi all, > > The TX and RX initialization paths currently call panic() on some > initialization failures. Instead, these failures should be reported back > to the probe function so that it can unwind any resources acquired during > initialization and fail gracefully. > > This series replaces those panic() calls with proper error logging, propagates > the errors to the probe function, and adds the necessary cleanup to avoid > leaving the driver in a partially initialized state. I have not tested > these changes as I do not own this hardware. > > This is my first time working with drivers, so please let me know if I > have made any mistakes. > > Thank you! :3 > > Signed-off-by: Prashant Rahul Tested-by: Klara Modin > --- > Changes in v2: > - ethernet.c: remove unnecessary curly braces around single line for-loop > - ethernet.c: dont mark cvm_oct_remove_device as inline > - ethernet.c: remove unnecessary call to cvmx_pko_disable as cvmx_pko_shutdown > already does that. > - cover: specify no testing > > - Link to v1: https://lore.kernel.org/r/20260628-staging-driver-octeon-panic-v1-0-fe8c34989254@gmail.com > > --- > Prashant Rahul (4): > staging: octeon: factor out device removal into a helper > staging: octeon: Propagate rx initialization failures > staging: octeon: Propagate tx initialization failures > staging: octeon: handle rx/tx initialization failures in probe > > drivers/staging/octeon/ethernet-rx.c | 18 ++++++---- > drivers/staging/octeon/ethernet-rx.h | 2 +- > drivers/staging/octeon/ethernet-tx.c | 17 +++++----- > drivers/staging/octeon/ethernet-tx.h | 2 +- > drivers/staging/octeon/ethernet.c | 66 ++++++++++++++++++++++++++++-------- > 5 files changed, 74 insertions(+), 31 deletions(-) > --- > base-commit: 4e5dfb7c84012007c3c7061126491bbc92d71bf1 > change-id: 20260625-staging-driver-octeon-panic-2602ed8d5d67 > > Best regards, > -- > Prashant Rahul >