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 1DA8328B50E for ; Mon, 21 Jul 2025 09:24:47 +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=1753089887; cv=none; b=qfyvsvYuKxlSAYRHHQg6/jNhn6EOURie5rXwLh7tEMlCWlPtbyHbc+qmyAmwJLYKxAByx5UQKIvfZvSEHZbyNivITOxhxVONHKw9g8OfPj+crteGb6qJb4JE2wQBn5bCMav0cehPjqdxtXyentzQpBLFwc515/SUqGoMKRaCSQk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753089887; c=relaxed/simple; bh=5Z+4/qzBAXhITxLqtolwBKMCKKwmMtkxuKIJwjeILAQ=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=R7mtY6JBTBv/BFoXx89rYLYGF+tnbqOYP8GuE1i5gn/LqhMAWtS03jLt1HoOjn5QvizC1OXnvfZsSKdBM0UVXishDVaOQl0wKPzh2XfRysad6XVTfic8ccl+l25LxSqUKasVIlCe/m/+h6dCZ/hm6wjtzXIMIjABYWatx2UQIms= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Fy+1+XX2; 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="Fy+1+XX2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75AF3C4CEED; Mon, 21 Jul 2025 09:24:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753089886; bh=5Z+4/qzBAXhITxLqtolwBKMCKKwmMtkxuKIJwjeILAQ=; h=Subject:To:Cc:From:Date:From; b=Fy+1+XX2OsjcxlVntLxXbaPD2eWCXt5dMvVmMCyP6onR+ZHHDNmKpCwLAH4id0RmZ Xu/7JfOy5omtWWZojB4Z+gqG4BcZ1xMp5zrej7pIXPwnxQJQI1MnZ85Uw0kp+mT9Cf 7YEsWnXa3CT4nWHYw6W7UiEgurb6t/2LtyTHasK0= Subject: FAILED: patch "[PATCH] i2c: omap: Handle omap_i2c_init() errors in omap_i2c_probe()" failed to apply to 5.4-stable tree To: christophe.jaillet@wanadoo.fr,andi.shyti@kernel.org,stable@vger.kernel.org Cc: From: Date: Mon, 21 Jul 2025 11:24:21 +0200 Message-ID: <2025072121-attendant-puma-a775@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 5.4-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-5.4.y git checkout FETCH_HEAD git cherry-pick -x a9503a2ecd95e23d7243bcde7138192de8c1c281 # git commit -s git send-email --to '' --in-reply-to '2025072121-attendant-puma-a775@gregkh' --subject-prefix 'PATCH 5.4.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From a9503a2ecd95e23d7243bcde7138192de8c1c281 Mon Sep 17 00:00:00 2001 From: Christophe JAILLET Date: Sat, 5 Jul 2025 09:57:37 +0200 Subject: [PATCH] i2c: omap: Handle omap_i2c_init() errors in omap_i2c_probe() omap_i2c_init() can fail. Handle this error in omap_i2c_probe(). Fixes: 010d442c4a29 ("i2c: New bus driver for TI OMAP boards") Signed-off-by: Christophe JAILLET Cc: # v2.6.19+ Signed-off-by: Andi Shyti Link: https://lore.kernel.org/r/565311abf9bafd7291ca82bcecb48c1fac1e727b.1751701715.git.christophe.jaillet@wanadoo.fr diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 8b01df3cc8e9..17db58195c06 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1472,7 +1472,9 @@ omap_i2c_probe(struct platform_device *pdev) } /* reset ASAP, clearing any IRQs */ - omap_i2c_init(omap); + r = omap_i2c_init(omap); + if (r) + goto err_mux_state_deselect; if (omap->rev < OMAP_I2C_OMAP1_REV_2) r = devm_request_irq(&pdev->dev, omap->irq, omap_i2c_omap1_isr, @@ -1515,6 +1517,7 @@ omap_i2c_probe(struct platform_device *pdev) err_unuse_clocks: omap_i2c_write_reg(omap, OMAP_I2C_CON_REG, 0); +err_mux_state_deselect: if (omap->mux_state) mux_state_deselect(omap->mux_state); err_put_pm: