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 A6E2428B50E for ; Mon, 21 Jul 2025 09:24:40 +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=1753089880; cv=none; b=XXzBRsqDKCEKzJ+GSP+FhpdxdDoVA4p3YO4/IKM/rq9Wxai6trI4G03TzkGWQCYKNJ8egb49krYR+SLk90K/i85VooS6XfaSiwW2/POsBXNnru/D6mm73FXNb5JbrzQxAek0fWJIkvij3tNOGUKIMl4bp0FSuVZ0IRDNCn/gUaw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753089880; c=relaxed/simple; bh=nqVkc3Q7DCCQBrCpTDkQ+LxK0mVriDJswF/JB9S5Z1E=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=HiWCovJWyMWdF5BISgvQT8rovIDhdsunPapJO9hqJ5f+GYTJsiewTDZNMhWezmypmIiO2TKjp/JtT8jdsa3+v5rR7oK5hpvmIbHuO/w2f96TXA57P0/GgpVLrZ12a3ubWLLEI/EBEQvzLhAgfOum7+vT4xdkA5ADjKOJdzJxdbk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JNkrLoZL; 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="JNkrLoZL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE462C4CEED; Mon, 21 Jul 2025 09:24:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753089880; bh=nqVkc3Q7DCCQBrCpTDkQ+LxK0mVriDJswF/JB9S5Z1E=; h=Subject:To:Cc:From:Date:From; b=JNkrLoZL/9CbB3Ms5RLLMv+m+hpjTptJge+996RSBWaqsdZ/FtG4p+p7z5HCjR3cz B8Sd/FTn7XJ2TwiCG4qpLRksOGXm+SGxJQi6Yxfgt6f0hDTBIgyN+JfXwRoZ+xLq6r dZmG4l6Djd1tFAaYeczgLM5wRjaQF+QjgB86FsPw= Subject: FAILED: patch "[PATCH] i2c: omap: Handle omap_i2c_init() errors in omap_i2c_probe()" failed to apply to 5.10-stable tree To: christophe.jaillet@wanadoo.fr,andi.shyti@kernel.org,stable@vger.kernel.org Cc: From: Date: Mon, 21 Jul 2025 11:24:20 +0200 Message-ID: <2025072120-crop-penny-6e87@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.10-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.10.y git checkout FETCH_HEAD git cherry-pick -x a9503a2ecd95e23d7243bcde7138192de8c1c281 # git commit -s git send-email --to '' --in-reply-to '2025072120-crop-penny-6e87@gregkh' --subject-prefix 'PATCH 5.10.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: