From mboxrd@z Thu Jan 1 00:00:00 1970 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 742A6399D02 for ; Tue, 12 May 2026 13:52:22 +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=1778593942; cv=none; b=NVrslsRDnZjZsgwMQH2jphfheKAaS9ebBc2ZSZe6s295rZON+uEvC3Lu6waFECbZkKAYOXkr0d9DyTlwb5rtMkEae/B54e4YJEfjVZWBgNLjt6m1sfbOKt7761cGEU5H6HGvjDpY7kovszB/tjB1LYlEMx9Z7lT4dcK7AEFcFa0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778593942; c=relaxed/simple; bh=kfNnxaG7aO441fJ+xWzhEdnHuqL6RFxTWiiZf41lWbM=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=u2Tt4I9bA5qDPTWegQ27dgNMg076cj+IQ9v1bTH71GY0vfcaapKTo8A7/nJp4iNLYaY33jPNJVg6vLy+NdNF5CLfIx4bVKinnqfu/KIC44Q+jspyl0EsKVdGMkq/AEeUReER4sAnlzChqpccbBx6dwFi3qyCRmYHFY3jiloKUQc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=F2qSgJF1; 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="F2qSgJF1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9CA0C2BCF5; Tue, 12 May 2026 13:52:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778593942; bh=kfNnxaG7aO441fJ+xWzhEdnHuqL6RFxTWiiZf41lWbM=; h=Subject:To:Cc:From:Date:From; b=F2qSgJF1Ea8PCvDCAVVJvg5IUUpSq92dYv1VpHgbHaD5YCYOkn/nExquGWYZQ+MPX SDirXo1x498VcTzCu29vkbiCVf/fmm55XRgMqKrJU8V7Li8C3hS7pLAPc8KVs4OpVL Y5338cdzN4WOFt+oANxKQ1erGrZBgE17F+ejsQb0= Subject: FAILED: patch "[PATCH] extcon: ptn5150: handle pending IRQ events during system" failed to apply to 5.10-stable tree To: xu.yang_2@nxp.com,cw00.choi@samsung.com,krzysztof.kozlowski@linaro.org,myungjoo.ham@samsung.com Cc: From: Date: Tue, 12 May 2026 15:52:26 +0200 Message-ID: <2026051226-state-ribcage-2e75@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 4652fefcda3c604c83d1ae28ede94544e2142f06 # git commit -s git send-email --to '' --in-reply-to '2026051226-state-ribcage-2e75@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 4652fefcda3c604c83d1ae28ede94544e2142f06 Mon Sep 17 00:00:00 2001 From: Xu Yang Date: Sat, 15 Nov 2025 10:59:05 +0800 Subject: [PATCH] extcon: ptn5150: handle pending IRQ events during system resume When the system is suspended and ptn5150 wakeup interrupt is disabled, any changes on ptn5150 will only be record in interrupt status registers and won't fire an IRQ since its trigger type is falling edge. So the HW interrupt line will keep at low state and any further changes won't trigger IRQ anymore. To fix it, this will schedule a work to check whether any IRQ are pending and handle it accordingly. Fixes: 4ed754de2d66 ("extcon: Add support for ptn5150 extcon driver") Cc: stable@vger.kernel.org Reviewed-by: Krzysztof Kozlowski Acked-by: MyungJoo Ham Signed-off-by: Xu Yang Signed-off-by: Chanwoo Choi Link: https://lore.kernel.org/lkml/20251115025905.1395347-1-xu.yang_2@nxp.com/ diff --git a/drivers/extcon/extcon-ptn5150.c b/drivers/extcon/extcon-ptn5150.c index 78ad86c4a3be..31970fb34fcb 100644 --- a/drivers/extcon/extcon-ptn5150.c +++ b/drivers/extcon/extcon-ptn5150.c @@ -331,6 +331,19 @@ static int ptn5150_i2c_probe(struct i2c_client *i2c) return 0; } +static int ptn5150_resume(struct device *dev) +{ + struct i2c_client *i2c = to_i2c_client(dev); + struct ptn5150_info *info = i2c_get_clientdata(i2c); + + /* Need to check possible pending interrupt events */ + schedule_work(&info->irq_work); + + return 0; +} + +static DEFINE_SIMPLE_DEV_PM_OPS(ptn5150_pm_ops, NULL, ptn5150_resume); + static const struct of_device_id ptn5150_dt_match[] = { { .compatible = "nxp,ptn5150" }, { }, @@ -346,6 +359,7 @@ MODULE_DEVICE_TABLE(i2c, ptn5150_i2c_id); static struct i2c_driver ptn5150_i2c_driver = { .driver = { .name = "ptn5150", + .pm = pm_sleep_ptr(&ptn5150_pm_ops), .of_match_table = ptn5150_dt_match, }, .probe = ptn5150_i2c_probe,