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 E319134C9AC for ; Tue, 27 Jan 2026 13:09:55 +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=1769519396; cv=none; b=en9tvXGZUbUFoevJswMzC+gtZtR9Jv07zifa7flM5v4AwIMTolUyZeE5ZFKz9oQjpL8u+zNeHHPGkj9xvqvp1G4oh60WIpjJq+sCkLszqQBdiFVJsvgMBAqok3igX7PLtnlcvBHbRXIHYLbPOLWe3I5umkF/RqKxBZVZOlo9Pnk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769519396; c=relaxed/simple; bh=J3QyH2QRcK8CjyhXefVcly8uVVb6xl+j+fQUxk+8HZQ=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=OAS52mbsfPHXvi0vN/gN8cn1VN+MnHiqm19KixcLPAIkizIbfz8GUmqluQw9lfIvxyYSmIkNW/0u/49g+xQ/HxEMmYjo7yjb8P3QzEVQlOIXmFl796l1YwOovyq7dL1TEZE5IAN9CU7uBwdgz3vJ1lTMESwn5/eKKRoB3RXAKeg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gg8eNS66; 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="gg8eNS66" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21594C116C6; Tue, 27 Jan 2026 13:09:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769519395; bh=J3QyH2QRcK8CjyhXefVcly8uVVb6xl+j+fQUxk+8HZQ=; h=Subject:To:Cc:From:Date:From; b=gg8eNS660t+YbhWNL0IF8PvC8kTO+0gTS/bfEkpqVaJvad+PmGPMhv7Wql33yg4eg Cqp14qxBY6ExSduDR6+4DYRBMIANt68mEfBaAXXxWFt62/MfwtJ2GlsdMrrCTnp7D5 KWR7KwI6XHZv/WS5Bf8STerNdALcJ3NB7izzmlMM= Subject: FAILED: patch "[PATCH] iio: adc: exynos_adc: fix OF populate on driver rebind" failed to apply to 6.12-stable tree To: johan@kernel.org,Jonathan.Cameron@huawei.com,krzysztof.kozlowski@oss.qualcomm.com Cc: From: Date: Tue, 27 Jan 2026 14:09:52 +0100 Message-ID: <2026012752-handgrip-bronco-0815@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.12-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.12.y git checkout FETCH_HEAD git cherry-pick -x ea6b4feba85e996e840e0b661bc42793df6eb701 # git commit -s git send-email --to '' --in-reply-to '2026012752-handgrip-bronco-0815@gregkh' --subject-prefix 'PATCH 6.12.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)