Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 116D41C683 for ; Mon, 19 May 2025 12:37:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747658229; cv=none; b=SOuiHcxwwAgs+leSNp7NhSJmBKbf5uW83K5ANEN6H9LDQ6oUiRGmn57WAGVrRhO1+Zdu/n9VnaJh2LswA6FLABBkE6Fznknx6YigdX3SjiJlYfumf3wtt76/4Krl5anOevg2a4+hR9wX7fSRWRxTdHtrKcncek2tTVSOabfbI0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747658229; c=relaxed/simple; bh=tFfCucmK9T2VuGHNfvKrnxIVE5MNU1yfBUJaq3RfwGM=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=aDdugOxGfg9kAhElZGMQVyWqXWvI3AwW06jP4Pgezrnw0L2Ev46D0QrrT3r2qK8HMkP0gqa1ISCt5+l/6nMqrSOySxtMIbN2VoypvubMEqZzwrXnLTNlqc3hF1Mo1bFSQqrMWsGoAKhrwN2Qgmmzn7CxzkBvcL4TlUz/h9qH6a4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VETHm1F4; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="VETHm1F4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75CF5C4CEE4; Mon, 19 May 2025 12:37:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747658228; bh=tFfCucmK9T2VuGHNfvKrnxIVE5MNU1yfBUJaq3RfwGM=; h=Subject:To:Cc:From:Date:From; b=VETHm1F45qQ8eNrlq+6J+ftqX9gL+7Y/Yy/311v4NkK3b9QomO5//PC3PxdWDbyUb u3DZOZTmffIWStl8ZVBXj8UVKrjAiwZmQ8qypmV/NjDFDWnfzSxoIJtEbOuCcN6TOB qVSuoNkeled4qpWK9NxgT8tt6ErW2j4vPEYob9Lw= Subject: FAILED: patch "[PATCH] i2c: designware: Fix an error handling path in" failed to apply to 6.1-stable tree To: christophe.jaillet@wanadoo.fr,andi.shyti@kernel.org,jarkko.nikula@linux.intel.com,stable@vger.kernel.org Cc: From: Date: Mon, 19 May 2025 14:36:57 +0200 Message-ID: <2025051957-mumps-vista-1dce@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x 1cfe51ef07ca3286581d612debfb0430eeccbb65 # git commit -s git send-email --to '' --in-reply-to '2025051957-mumps-vista-1dce@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From 1cfe51ef07ca3286581d612debfb0430eeccbb65 Mon Sep 17 00:00:00 2001 From: Christophe JAILLET Date: Tue, 13 May 2025 19:56:41 +0200 Subject: [PATCH] i2c: designware: Fix an error handling path in i2c_dw_pci_probe() If navi_amd_register_client() fails, the previous i2c_dw_probe() call should be undone by a corresponding i2c_del_adapter() call, as already done in the remove function. Fixes: 17631e8ca2d3 ("i2c: designware: Add driver support for AMD NAVI GPU") Signed-off-by: Christophe JAILLET Cc: # v5.13+ Acked-by: Jarkko Nikula Signed-off-by: Andi Shyti Link: https://lore.kernel.org/r/fcd9651835a32979df8802b2db9504c523a8ebbb.1747158983.git.christophe.jaillet@wanadoo.fr diff --git a/drivers/i2c/busses/i2c-designware-pcidrv.c b/drivers/i2c/busses/i2c-designware-pcidrv.c index 8e0267c7cc29..f21f9877c040 100644 --- a/drivers/i2c/busses/i2c-designware-pcidrv.c +++ b/drivers/i2c/busses/i2c-designware-pcidrv.c @@ -278,9 +278,11 @@ static int i2c_dw_pci_probe(struct pci_dev *pdev, if ((dev->flags & MODEL_MASK) == MODEL_AMD_NAVI_GPU) { dev->slave = i2c_new_ccgx_ucsi(&dev->adapter, dev->irq, &dgpu_node); - if (IS_ERR(dev->slave)) + if (IS_ERR(dev->slave)) { + i2c_del_adapter(&dev->adapter); return dev_err_probe(device, PTR_ERR(dev->slave), "register UCSI failed\n"); + } } pm_runtime_set_autosuspend_delay(device, 1000);