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 2FD2E355044 for ; Tue, 27 Jan 2026 13:10:11 +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=1769519411; cv=none; b=tU1fuKiKiaeZvHKFbhH8X2++Y18IIrPtzceaDT7L0wMk89kQKZJsph+oXG5DgOAUy+5hydMnEndfdbsSDPAlO+oSMtXpvE7b4EmBRnEmSwYjtpXUiBrrggHP5UWm5DIDcmGLOHqoPnd4ksja0fL9q9IjYnsnNhqs4AbD4b35OEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769519411; c=relaxed/simple; bh=WAhTgpDxPprTjSl/n/0kpfQayKeShzEqaIreO4TqPrU=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=PwTQ15QsHoBIxQlxj7pxRsbfNn4ZpANv5MCNiPwXuRv3hRA8chRuR2fb1l/P0NFiXWZXwIkCyA7bcQAXpUWJoUa+Kb8P4b646kW5Fo/555I0isFxnVd2QUM+pDxCR8Jmtco8KGqjJHnfMMoIJ7DeaJdoKuUFFRznzK9OzsKlufQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Pb/CoXA9; 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="Pb/CoXA9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99F9AC116C6; Tue, 27 Jan 2026 13:10:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769519411; bh=WAhTgpDxPprTjSl/n/0kpfQayKeShzEqaIreO4TqPrU=; h=Subject:To:Cc:From:Date:From; b=Pb/CoXA9JqF2fxAo6rfpBURmeUb+Qpoo1cMNjKaRxrbhjkQQp5221CfBEZP6Jd2/o GuDuY9EHka+QX9h+sc7/kWNJENgupIIvMxyOpzc2JC4+7cjEP35UsrEY3jCdN+dDLo p0SRiR/AaPUQoUpb7+FLHrnPkn8jxAPuI5AIaZvE= Subject: FAILED: patch "[PATCH] iio: adc: exynos_adc: fix OF populate on driver rebind" failed to apply to 5.10-stable tree To: johan@kernel.org,Jonathan.Cameron@huawei.com,krzysztof.kozlowski@oss.qualcomm.com Cc: From: Date: Tue, 27 Jan 2026 14:09:54 +0100 Message-ID: <2026012754-snuggle-nursing-d9b7@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 ea6b4feba85e996e840e0b661bc42793df6eb701 # git commit -s git send-email --to '' --in-reply-to '2026012754-snuggle-nursing-d9b7@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From ea6b4feba85e996e840e0b661bc42793df6eb701 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Fri, 19 Dec 2025 12:05:45 +0100 Subject: [PATCH] iio: adc: exynos_adc: fix OF populate on driver rebind Since commit c6e126de43e7 ("of: Keep track of populated platform devices") child devices will not be created by of_platform_populate() if the devices had previously been deregistered individually so that the OF_POPULATED flag is still set in the corresponding OF nodes. Switch to using of_platform_depopulate() instead of open coding so that the child devices are created if the driver is rebound. Fixes: c6e126de43e7 ("of: Keep track of populated platform devices") Cc: stable@vger.kernel.org # 3.16 Signed-off-by: Johan Hovold Reviewed-by: Krzysztof Kozlowski Signed-off-by: Jonathan Cameron diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c index 1484adff00df..f2400897818c 100644 --- a/drivers/iio/adc/exynos_adc.c +++ b/drivers/iio/adc/exynos_adc.c @@ -540,15 +540,6 @@ static const struct iio_chan_spec exynos_adc_iio_channels[] = { ADC_CHANNEL(9, "adc9"), }; -static int exynos_adc_remove_devices(struct device *dev, void *c) -{ - struct platform_device *pdev = to_platform_device(dev); - - platform_device_unregister(pdev); - - return 0; -} - static int exynos_adc_probe(struct platform_device *pdev) { struct exynos_adc *info = NULL; @@ -660,8 +651,7 @@ static int exynos_adc_probe(struct platform_device *pdev) return 0; err_of_populate: - device_for_each_child(&indio_dev->dev, NULL, - exynos_adc_remove_devices); + of_platform_depopulate(&indio_dev->dev); iio_device_unregister(indio_dev); err_irq: free_irq(info->irq, info); @@ -681,8 +671,7 @@ static void exynos_adc_remove(struct platform_device *pdev) struct iio_dev *indio_dev = platform_get_drvdata(pdev); struct exynos_adc *info = iio_priv(indio_dev); - device_for_each_child(&indio_dev->dev, NULL, - exynos_adc_remove_devices); + of_platform_depopulate(&indio_dev->dev); iio_device_unregister(indio_dev); free_irq(info->irq, info); if (info->data->exit_hw)