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 87BB7355024 for ; Tue, 27 Jan 2026 13:10:04 +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=1769519404; cv=none; b=j3BLvJl+yW32lNR5Ci+s+bKVSGTguL+e4agiyzw+v24Lw3fw+5BHtIfJbQS5QB0pMCPB8ONbVoo8nY0GuspG7l5gOCo7ensIR1jiuUTPvZlZwzX7vBSz4OY2I0WT9O3jHaoa7r01CkwjeIJamd40Jm17Jf+xULhP6dyzhW50f/E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769519404; c=relaxed/simple; bh=ZobimBNcou5rpT1CtHtju+HwjeyZ+TADL0qFOc5L5UM=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=ATq6flAbB799DwTulMZrf8lKv+2wInnjSJsQ7eyUovZ/xaJjkOrrRbb8VNUbxAX9RMv+Gm2me7c4/Hfoh8gW1RWWYPi/wzyMW/xQGsMHFJtbPdTyd11W20Nh3dqy5aR61t9fYpxZDP57oYGL2tSgyu65xb7emeSRQCcKq/BXHSI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MfTclZGo; 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="MfTclZGo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA9FEC116C6; Tue, 27 Jan 2026 13:10:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769519404; bh=ZobimBNcou5rpT1CtHtju+HwjeyZ+TADL0qFOc5L5UM=; h=Subject:To:Cc:From:Date:From; b=MfTclZGoorult6U4HdIWswTDlCkp4hC2czJ+wQz/mT5Zn0axJCl2M35AcGdv/IJuH iauGiO1SNYACK48BdOk0WDNWSY1KH0KzBFHjC5dA/nAQAGhkJUv5i5CftHOuvGHGV9 uXuHQl+Ld/tmrUW/qheXF+Yl1EuAUJoEpFO3Aat0= Subject: FAILED: patch "[PATCH] iio: adc: exynos_adc: fix OF populate on driver rebind" failed to apply to 6.1-stable tree To: johan@kernel.org,Jonathan.Cameron@huawei.com,krzysztof.kozlowski@oss.qualcomm.com Cc: From: Date: Tue, 27 Jan 2026 14:09:53 +0100 Message-ID: <2026012753-hangnail-upwind-6078@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 ea6b4feba85e996e840e0b661bc42793df6eb701 # git commit -s git send-email --to '' --in-reply-to '2026012753-hangnail-upwind-6078@gregkh' --subject-prefix 'PATCH 6.1.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)