* [PATCH v6 0/8] iio: adc: at91_adc: fix NULL trigger dereference and convert to devm
@ 2026-12-03 17:30 Abdelnasser Hussein
2026-12-03 17:30 ` [PATCH v6 1/8] iio: adc: at91_adc: skip unpopulated triggers on teardown Abdelnasser Hussein
` (7 more replies)
0 siblings, 8 replies; 12+ messages in thread
From: Abdelnasser Hussein @ 2026-12-03 17:30 UTC (permalink / raw)
To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Nicolas Ferre, Alexandre Belloni, Claudiu Beznea, Maxime Ripard,
Greg Kroah-Hartman, u.kleine-koenig
Cc: linux-iio, linux-arm-kernel, linux-kernel, Abdelnasser Hussein,
stable, Joshua Crofts, Andy Shevchenko
This series fixes a NULL pointer dereference during trigger teardown in
at91_adc and modernizes the driver to use firmware-agnostic property
APIs and device-managed (devm) resources.
When the "atmel,adc-use-external-triggers" property is omitted from the
Device Tree, at91_adc_trigger_init() leaves external trigger slots in
st->trig as NULL. Patch 1 provides a minimal fix in at91_adc for easy
backporting to stable kernels, while the subsequent patches modernize
the driver and convert it to devm_* APIs (removing the manual teardown
code and the st->trig array altogether).
Changes in v6:
- Patch 1: Add a comment explaining that iio_trigger_unregister() is
intentionally not NULL-aware (Andy Shevchenko, Jonathan Cameron).
- Patch 2: Add Joshua's Reviewed-by tag.
- Patch 3: Return -ENODATA instead of -ENODEV when no matching device
data is found.
- Patch 4: Introduce local struct device *dev and const char *propname,
read properties through device_property_read_bool() and
device_property_read_u32(), return the real property-read error with
"Missing %s property", and use device_property_match_string() for the
lowres check (review feedback from Andy Shevchenko and Jonathan
Cameron). Drop <linux/of.h> without adding
<linux/mod_devicetable.h> (<linux/platform_device.h> already provides
struct of_device_id) (feedback from Uwe Kleine-König and Joshua
Crofts).
- Patch 5: Only convert the remaining device pointer uses in
at91_adc_probe() now that dev is introduced by patch 4, and update the
commit message accordingly.
- Patch 6: Add Andy's Suggested-by tag and Joshua's Reviewed-by tag.
- Patch 7: Add Joshua's Reviewed-by tag.
- Patch 8: Shorten the commit message as requested by Jonathan Cameron.
Changes in v5:
- Patch 1: Keep the minimal NULL check in at91_adc instead of modifying
iio_trigger_unregister(), and explicitly note in the commit message
that it is a minimal fix for backporting before devm removal (as
requested by Jonathan Cameron).
- Patch 2: Drop the redundant dev_err_probe() message after
devm_request_irq() in a separate patch.
- Patch 3: Switch from of_device_get_match_data() to
device_get_match_data() and check for NULL in a separate patch.
- Patch 4: Convert of_property_*() calls in at91_adc_probe() and
at91_adc_probe_dt_ts() (renamed to at91_adc_probe_ts()) to
device_property_*() APIs, removing the local device_node pointer and
dropping "in the DT" from missing-property logs. Since no OF APIs
remain, replace <linux/of.h> with <linux/mod_devicetable.h>.
- Patch 5: Introduce local struct device *dev in at91_adc_probe() and
switch devm_iio_device_alloc() to sizeof(*st).
- Patch 6: Pass struct device *dev instead of struct platform_device *pdev
to at91_ts_register() in a separate patch.
- Patch 7: Replace raw 1000 with HZ_PER_KHZ from <linux/units.h>.
- Patch 8: Convert the remaining buffer, trigger, touchscreen input, and
IIO device registrations to devm_* APIs, use unsigned int for the
trigger loop index, drop the now-unused st->trig array, drop the
redundant input->dev.parent assignment, and remove at91_adc_remove().
Changes in v4:
- Split the series into 3 atomic patches: (1) standalone NULL trigger
teardown fix for stable backporting, (2) local struct device pointer
cleanup, and (3) full devm_* conversion.
Changes in v3:
- Address review feedback from Andy Shevchenko on v2 (drop redundant
-ENOMEM log, use local struct device pointer, scope loop index to the
for-loop, and convert error paths to dev_err_probe()).
Changes in v2:
- Drop the simple NULL check approach from v1 and refactor the driver to
use device-managed (devm_*) APIs as suggested by Jonathan Cameron,
removing manual cleanup functions and at91_adc_remove(), and inlining
trigger initialization into at91_adc_probe().
Signed-off-by: Abdelnasser Hussein <abdelnasserhussein11@gmail.com>
---
Abdelnasser Hussein (8):
iio: adc: at91_adc: skip unpopulated triggers on teardown
iio: adc: at91_adc: drop duplicate IRQ allocation error message
iio: adc: at91_adc: switch to device_get_match_data()
iio: adc: at91_adc: convert to device_property_*() APIs
iio: adc: at91_adc: use local struct device pointer in probe
iio: adc: at91_adc: pass struct device to at91_ts_register()
iio: adc: at91_adc: use HZ_PER_KHZ instead of raw 1000
iio: adc: at91_adc: convert to device-managed resources
drivers/iio/adc/at91_adc.c | 287 +++++++++++++++------------------------------
1 file changed, 93 insertions(+), 194 deletions(-)
---
base-commit: 3f66b2a8051f61c2039abdcc26a4e5ed3dbc0009
change-id: 20261130-at91-adc-v6-fcce5708e16a
Best regards,
--
Abdelnasser Hussein <abdelnasserhussein11@gmail.com>
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v6 1/8] iio: adc: at91_adc: skip unpopulated triggers on teardown
2026-12-03 17:30 [PATCH v6 0/8] iio: adc: at91_adc: fix NULL trigger dereference and convert to devm Abdelnasser Hussein
@ 2026-12-03 17:30 ` Abdelnasser Hussein
2026-12-03 17:53 ` Andy Shevchenko
2026-12-03 17:30 ` [PATCH v6 2/8] iio: adc: at91_adc: drop duplicate IRQ allocation error message Abdelnasser Hussein
` (6 subsequent siblings)
7 siblings, 1 reply; 12+ messages in thread
From: Abdelnasser Hussein @ 2026-12-03 17:30 UTC (permalink / raw)
To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Nicolas Ferre, Alexandre Belloni, Claudiu Beznea, Maxime Ripard,
Greg Kroah-Hartman, u.kleine-koenig
Cc: linux-iio, linux-arm-kernel, linux-kernel, Abdelnasser Hussein,
stable
at91_adc_trigger_init() and at91_adc_trigger_remove() iterate over all
st->trig entries. External trigger slots remain NULL when
"atmel,adc-use-external-triggers" is absent, so skip them in both
teardown loops.
Keep this as a minimal stable-backportable fix; the devm conversion later
in the series removes this teardown code.
Fixes: 0e589d5fb317 ("ARM: AT91: IIO: Add AT91 ADC driver.")
Cc: stable@vger.kernel.org
Signed-off-by: Abdelnasser Hussein <abdelnasserhussein11@gmail.com>
---
drivers/iio/adc/at91_adc.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c
index 0ac74ad92fca..a4b1d08e8081 100644
--- a/drivers/iio/adc/at91_adc.c
+++ b/drivers/iio/adc/at91_adc.c
@@ -660,6 +660,13 @@ static int at91_adc_trigger_init(struct iio_dev *idev)
error_trigger:
for (i--; i >= 0; i--) {
+ /*
+ * iio_trigger_unregister() is intentionally not NULL-aware so
+ * unregistering an unallocated trigger fails loudly.
+ */
+ if (!st->trig[i])
+ continue;
+
iio_trigger_unregister(st->trig[i]);
iio_trigger_free(st->trig[i]);
}
@@ -673,6 +680,13 @@ static void at91_adc_trigger_remove(struct iio_dev *idev)
int i;
for (i = 0; i < st->caps->trigger_number; i++) {
+ /*
+ * iio_trigger_unregister() is intentionally not NULL-aware so
+ * unregistering an unallocated trigger fails loudly.
+ */
+ if (!st->trig[i])
+ continue;
+
iio_trigger_unregister(st->trig[i]);
iio_trigger_free(st->trig[i]);
}
--
2.56.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v6 2/8] iio: adc: at91_adc: drop duplicate IRQ allocation error message
2026-12-03 17:30 [PATCH v6 0/8] iio: adc: at91_adc: fix NULL trigger dereference and convert to devm Abdelnasser Hussein
2026-12-03 17:30 ` [PATCH v6 1/8] iio: adc: at91_adc: skip unpopulated triggers on teardown Abdelnasser Hussein
@ 2026-12-03 17:30 ` Abdelnasser Hussein
2026-12-03 17:30 ` [PATCH v6 3/8] iio: adc: at91_adc: switch to device_get_match_data() Abdelnasser Hussein
` (5 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: Abdelnasser Hussein @ 2026-12-03 17:30 UTC (permalink / raw)
To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Nicolas Ferre, Alexandre Belloni, Claudiu Beznea, Maxime Ripard,
Greg Kroah-Hartman, u.kleine-koenig
Cc: linux-iio, linux-arm-kernel, linux-kernel, Abdelnasser Hussein,
Joshua Crofts
Return the devm_request_irq() error directly from at91_adc_probe()
instead of reporting it again with dev_err_probe().
Reviewed-by: Joshua Crofts <crofts@kernel.org>
Signed-off-by: Abdelnasser Hussein <abdelnasserhussein11@gmail.com>
---
drivers/iio/adc/at91_adc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c
index a4b1d08e8081..9e7fa4adfc40 100644
--- a/drivers/iio/adc/at91_adc.c
+++ b/drivers/iio/adc/at91_adc.c
@@ -1082,8 +1082,7 @@ static int at91_adc_probe(struct platform_device *pdev)
at91_adc_rl_interrupt, 0,
pdev->dev.driver->name, idev);
if (ret)
- return dev_err_probe(&pdev->dev, ret,
- "Failed to allocate IRQ.\n");
+ return ret;
st->clk = devm_clk_get_enabled(&pdev->dev, "adc_clk");
if (IS_ERR(st->clk))
--
2.56.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v6 3/8] iio: adc: at91_adc: switch to device_get_match_data()
2026-12-03 17:30 [PATCH v6 0/8] iio: adc: at91_adc: fix NULL trigger dereference and convert to devm Abdelnasser Hussein
2026-12-03 17:30 ` [PATCH v6 1/8] iio: adc: at91_adc: skip unpopulated triggers on teardown Abdelnasser Hussein
2026-12-03 17:30 ` [PATCH v6 2/8] iio: adc: at91_adc: drop duplicate IRQ allocation error message Abdelnasser Hussein
@ 2026-12-03 17:30 ` Abdelnasser Hussein
2026-12-03 17:55 ` Andy Shevchenko
2026-12-03 17:30 ` [PATCH v6 4/8] iio: adc: at91_adc: convert to device_property_*() APIs Abdelnasser Hussein
` (4 subsequent siblings)
7 siblings, 1 reply; 12+ messages in thread
From: Abdelnasser Hussein @ 2026-12-03 17:30 UTC (permalink / raw)
To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Nicolas Ferre, Alexandre Belloni, Claudiu Beznea, Maxime Ripard,
Greg Kroah-Hartman, u.kleine-koenig
Cc: linux-iio, linux-arm-kernel, linux-kernel, Abdelnasser Hussein
Replace of_device_get_match_data() with device_get_match_data() and
reject a missing match with -ENODATA instead of deferring the failure to
the first st->caps dereference.
Signed-off-by: Abdelnasser Hussein <abdelnasserhussein11@gmail.com>
---
drivers/iio/adc/at91_adc.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c
index 9e7fa4adfc40..9439eef7b564 100644
--- a/drivers/iio/adc/at91_adc.c
+++ b/drivers/iio/adc/at91_adc.c
@@ -18,6 +18,7 @@
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
+#include <linux/property.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/wait.h>
@@ -1010,7 +1011,9 @@ static int at91_adc_probe(struct platform_device *pdev)
st = iio_priv(idev);
- st->caps = of_device_get_match_data(&pdev->dev);
+ st->caps = device_get_match_data(&pdev->dev);
+ if (!st->caps)
+ return -ENODATA;
st->use_external = of_property_read_bool(node, "atmel,adc-use-external-triggers");
--
2.56.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v6 4/8] iio: adc: at91_adc: convert to device_property_*() APIs
2026-12-03 17:30 [PATCH v6 0/8] iio: adc: at91_adc: fix NULL trigger dereference and convert to devm Abdelnasser Hussein
` (2 preceding siblings ...)
2026-12-03 17:30 ` [PATCH v6 3/8] iio: adc: at91_adc: switch to device_get_match_data() Abdelnasser Hussein
@ 2026-12-03 17:30 ` Abdelnasser Hussein
2026-12-03 17:57 ` Andy Shevchenko
2026-12-03 17:30 ` [PATCH v6 5/8] iio: adc: at91_adc: use local struct device pointer in probe Abdelnasser Hussein
` (3 subsequent siblings)
7 siblings, 1 reply; 12+ messages in thread
From: Abdelnasser Hussein @ 2026-12-03 17:30 UTC (permalink / raw)
To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Nicolas Ferre, Alexandre Belloni, Claudiu Beznea, Maxime Ripard,
Greg Kroah-Hartman, u.kleine-koenig
Cc: linux-iio, linux-arm-kernel, linux-kernel, Abdelnasser Hussein
Read the atmel,adc-* properties through device_property_*() in
at91_adc_probe() and at91_adc_probe_ts(), dropping the local
device_node.
Use a local struct device pointer and a propname variable, return the
actual property-read error with the property name in the message, and
replace the atmel,adc-use-res string comparison with
device_property_match_string().
With the of_* helpers gone, drop <linux/of.h> (<linux/platform_device.h>
already provides struct of_device_id).
Signed-off-by: Abdelnasser Hussein <abdelnasserhussein11@gmail.com>
---
drivers/iio/adc/at91_adc.c | 60 +++++++++++++++++++++++++++-------------------
1 file changed, 35 insertions(+), 25 deletions(-)
diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c
index 9439eef7b564..cbaad9473239 100644
--- a/drivers/iio/adc/at91_adc.c
+++ b/drivers/iio/adc/at91_adc.c
@@ -16,7 +16,6 @@
#include <linux/jiffies.h>
#include <linux/kernel.h>
#include <linux/module.h>
-#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/sched.h>
@@ -798,13 +797,14 @@ static u32 calc_startup_ticks_9x5(u32 startup_time, u32 adc_clk_khz)
return ticks;
}
-static int at91_adc_probe_dt_ts(struct device_node *node,
- struct at91_adc_state *st, struct device *dev)
+static int at91_adc_probe_ts(struct device *dev, struct at91_adc_state *st)
{
+ const char *propname;
int ret;
u32 prop;
- ret = of_property_read_u32(node, "atmel,adc-ts-wires", &prop);
+ propname = "atmel,adc-ts-wires";
+ ret = device_property_read_u32(dev, propname, &prop);
if (ret) {
dev_info(dev, "ADC Touch screen is disabled.\n");
return 0;
@@ -822,15 +822,20 @@ static int at91_adc_probe_dt_ts(struct device_node *node,
if (!st->caps->has_tsmr)
return 0;
+
prop = 0;
- of_property_read_u32(node, "atmel,adc-ts-pressure-threshold", &prop);
+ propname = "atmel,adc-ts-pressure-threshold";
+ ret = device_property_read_u32(dev, propname, &prop);
+ if (ret)
+ return dev_err_probe(dev, ret, "Missing %s property.\n", propname);
+
st->ts_pressure_threshold = prop;
- if (st->ts_pressure_threshold) {
- return 0;
- } else {
+ if (!st->ts_pressure_threshold) {
dev_err(dev, "Invalid pressure threshold for the touchscreen\n");
return -EINVAL;
}
+
+ return 0;
}
static const struct iio_info at91_adc_info = {
@@ -998,12 +1003,12 @@ static void at91_ts_unregister(struct at91_adc_state *st)
static int at91_adc_probe(struct platform_device *pdev)
{
unsigned int prsc, mstrclk, ticks, adc_clk, adc_clk_khz, shtim;
- struct device_node *node = pdev->dev.of_node;
+ struct device *dev = &pdev->dev;
+ const char *propname;
int ret;
struct iio_dev *idev;
struct at91_adc_state *st;
u32 reg, prop;
- const char *s;
idev = devm_iio_device_alloc(&pdev->dev, sizeof(struct at91_adc_state));
if (!idev)
@@ -1015,33 +1020,38 @@ static int at91_adc_probe(struct platform_device *pdev)
if (!st->caps)
return -ENODATA;
- st->use_external = of_property_read_bool(node, "atmel,adc-use-external-triggers");
+ propname = "atmel,adc-use-external-triggers";
+ st->use_external = device_property_read_bool(dev, propname);
- if (of_property_read_u32(node, "atmel,adc-channels-used", &prop))
- return dev_err_probe(&idev->dev, -EINVAL,
- "Missing adc-channels-used property in the DT.\n");
+ propname = "atmel,adc-channels-used";
+ ret = device_property_read_u32(dev, propname, &prop);
+ if (ret)
+ return dev_err_probe(dev, ret, "Missing %s property.\n", propname);
st->channels_mask = prop;
- st->sleep_mode = of_property_read_bool(node, "atmel,adc-sleep-mode");
+ propname = "atmel,adc-sleep-mode";
+ st->sleep_mode = device_property_read_bool(dev, propname);
- if (of_property_read_u32(node, "atmel,adc-startup-time", &prop))
- return dev_err_probe(&idev->dev, -EINVAL,
- "Missing adc-startup-time property in the DT.\n");
+ propname = "atmel,adc-startup-time";
+ ret = device_property_read_u32(dev, propname, &prop);
+ if (ret)
+ return dev_err_probe(dev, ret, "Missing %s property.\n", propname);
st->startup_time = prop;
prop = 0;
- of_property_read_u32(node, "atmel,adc-sample-hold-time", &prop);
+ propname = "atmel,adc-sample-hold-time";
+ device_property_read_u32(dev, propname, &prop);
st->sample_hold_time = prop;
- if (of_property_read_u32(node, "atmel,adc-vref", &prop))
- return dev_err_probe(&idev->dev, -EINVAL,
- "Missing adc-vref property in the DT.\n");
+ propname = "atmel,adc-vref";
+ ret = device_property_read_u32(dev, propname, &prop);
+ if (ret)
+ return dev_err_probe(dev, ret, "Missing %s property.\n", propname);
st->vref_mv = prop;
st->res = st->caps->high_res_bits;
if (st->caps->low_res_bits &&
- !of_property_read_string(node, "atmel,adc-use-res", &s)
- && !strcmp(s, "lowres"))
+ device_property_match_string(dev, "atmel,adc-use-res", "lowres") >= 0)
st->res = st->caps->low_res_bits;
dev_info(&idev->dev, "Resolution used: %u bits\n", st->res);
@@ -1051,7 +1061,7 @@ static int at91_adc_probe(struct platform_device *pdev)
/* Check if touchscreen is supported. */
if (st->caps->has_ts) {
- ret = at91_adc_probe_dt_ts(node, st, &idev->dev);
+ ret = at91_adc_probe_ts(dev, st);
if (ret)
return ret;
}
--
2.56.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v6 5/8] iio: adc: at91_adc: use local struct device pointer in probe
2026-12-03 17:30 [PATCH v6 0/8] iio: adc: at91_adc: fix NULL trigger dereference and convert to devm Abdelnasser Hussein
` (3 preceding siblings ...)
2026-12-03 17:30 ` [PATCH v6 4/8] iio: adc: at91_adc: convert to device_property_*() APIs Abdelnasser Hussein
@ 2026-12-03 17:30 ` Abdelnasser Hussein
2026-12-03 17:30 ` [PATCH v6 6/8] iio: adc: at91_adc: pass struct device to at91_ts_register() Abdelnasser Hussein
` (2 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: Abdelnasser Hussein @ 2026-12-03 17:30 UTC (permalink / raw)
To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Nicolas Ferre, Alexandre Belloni, Claudiu Beznea, Maxime Ripard,
Greg Kroah-Hartman, u.kleine-koenig
Cc: linux-iio, linux-arm-kernel, linux-kernel, Abdelnasser Hussein
Convert the remaining &pdev->dev and &idev->dev uses in at91_adc_probe()
to the local dev pointer, and pass sizeof(*st) to
devm_iio_device_alloc().
Diagnostics that previously used &idev->dev now use the platform device.
Signed-off-by: Abdelnasser Hussein <abdelnasserhussein11@gmail.com>
---
drivers/iio/adc/at91_adc.c | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c
index cbaad9473239..2d49fb98fa47 100644
--- a/drivers/iio/adc/at91_adc.c
+++ b/drivers/iio/adc/at91_adc.c
@@ -1010,13 +1010,13 @@ static int at91_adc_probe(struct platform_device *pdev)
struct at91_adc_state *st;
u32 reg, prop;
- idev = devm_iio_device_alloc(&pdev->dev, sizeof(struct at91_adc_state));
+ idev = devm_iio_device_alloc(dev, sizeof(*st));
if (!idev)
return -ENOMEM;
st = iio_priv(idev);
- st->caps = device_get_match_data(&pdev->dev);
+ st->caps = device_get_match_data(dev);
if (!st->caps)
return -ENODATA;
@@ -1054,7 +1054,7 @@ static int at91_adc_probe(struct platform_device *pdev)
device_property_match_string(dev, "atmel,adc-use-res", "lowres") >= 0)
st->res = st->caps->low_res_bits;
- dev_info(&idev->dev, "Resolution used: %u bits\n", st->res);
+ dev_info(dev, "Resolution used: %u bits\n", st->res);
st->registers = &st->caps->registers;
st->num_channels = st->caps->num_channels;
@@ -1068,7 +1068,7 @@ static int at91_adc_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, idev);
- idev->name = dev_name(&pdev->dev);
+ idev->name = dev_name(dev);
idev->modes = INDIO_DIRECT_MODE;
idev->info = &at91_adc_info;
@@ -1087,24 +1087,24 @@ static int at91_adc_probe(struct platform_device *pdev)
at91_adc_writel(st, AT91_ADC_IDR, 0xFFFFFFFF);
if (st->caps->has_tsmr)
- ret = devm_request_irq(&pdev->dev, st->irq,
+ ret = devm_request_irq(dev, st->irq,
at91_adc_9x5_interrupt, 0,
- pdev->dev.driver->name, idev);
+ dev->driver->name, idev);
else
- ret = devm_request_irq(&pdev->dev, st->irq,
+ ret = devm_request_irq(dev, st->irq,
at91_adc_rl_interrupt, 0,
- pdev->dev.driver->name, idev);
+ dev->driver->name, idev);
if (ret)
return ret;
- st->clk = devm_clk_get_enabled(&pdev->dev, "adc_clk");
+ st->clk = devm_clk_get_enabled(dev, "adc_clk");
if (IS_ERR(st->clk))
- return dev_err_probe(&pdev->dev, PTR_ERR(st->clk),
+ return dev_err_probe(dev, PTR_ERR(st->clk),
"Could not prepare or enable the clock.\n");
- st->adc_clk = devm_clk_get_enabled(&pdev->dev, "adc_op_clk");
+ st->adc_clk = devm_clk_get_enabled(dev, "adc_op_clk");
if (IS_ERR(st->adc_clk))
- return dev_err_probe(&pdev->dev, PTR_ERR(st->adc_clk),
+ return dev_err_probe(dev, PTR_ERR(st->adc_clk),
"Could not prepare or enable the ADC clock.\n");
/*
@@ -1116,13 +1116,13 @@ static int at91_adc_probe(struct platform_device *pdev)
adc_clk = clk_get_rate(st->adc_clk);
adc_clk_khz = adc_clk / 1000;
- dev_dbg(&pdev->dev, "Master clock is set as: %d Hz, adc_clk should set as: %d Hz\n",
+ dev_dbg(dev, "Master clock is set as: %d Hz, adc_clk should set as: %d Hz\n",
mstrclk, adc_clk);
prsc = (mstrclk / (2 * adc_clk)) - 1;
if (!st->startup_time)
- return dev_err_probe(&pdev->dev, -EINVAL,
+ return dev_err_probe(dev, -EINVAL,
"No startup time available.\n");
ticks = (*st->caps->calc_startup_ticks)(st->startup_time, adc_clk_khz);
@@ -1149,7 +1149,7 @@ static int at91_adc_probe(struct platform_device *pdev)
/* Setup the ADC channels available on the board */
ret = at91_adc_channel_init(idev);
if (ret < 0)
- return dev_err_probe(&pdev->dev, ret,
+ return dev_err_probe(dev, ret,
"Couldn't initialize the channels.\n");
init_waitqueue_head(&st->wq_data_avail);
@@ -1163,12 +1163,12 @@ static int at91_adc_probe(struct platform_device *pdev)
if (!st->touchscreen_type) {
ret = at91_adc_buffer_init(idev);
if (ret < 0)
- return dev_err_probe(&pdev->dev, ret,
+ return dev_err_probe(dev, ret,
"Couldn't initialize the buffer.\n");
ret = at91_adc_trigger_init(idev);
if (ret < 0) {
- dev_err(&pdev->dev, "Couldn't setup the triggers.\n");
+ dev_err(dev, "Couldn't setup the triggers.\n");
at91_adc_buffer_remove(idev);
return ret;
}
@@ -1182,7 +1182,7 @@ static int at91_adc_probe(struct platform_device *pdev)
ret = iio_device_register(idev);
if (ret < 0) {
- dev_err(&pdev->dev, "Couldn't register the device.\n");
+ dev_err(dev, "Couldn't register the device.\n");
goto error_iio_device_register;
}
--
2.56.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v6 6/8] iio: adc: at91_adc: pass struct device to at91_ts_register()
2026-12-03 17:30 [PATCH v6 0/8] iio: adc: at91_adc: fix NULL trigger dereference and convert to devm Abdelnasser Hussein
` (4 preceding siblings ...)
2026-12-03 17:30 ` [PATCH v6 5/8] iio: adc: at91_adc: use local struct device pointer in probe Abdelnasser Hussein
@ 2026-12-03 17:30 ` Abdelnasser Hussein
2026-12-03 17:30 ` [PATCH v6 7/8] iio: adc: at91_adc: use HZ_PER_KHZ instead of raw 1000 Abdelnasser Hussein
2026-12-03 17:30 ` [PATCH v6 8/8] iio: adc: at91_adc: convert to device-managed resources Abdelnasser Hussein
7 siblings, 0 replies; 12+ messages in thread
From: Abdelnasser Hussein @ 2026-12-03 17:30 UTC (permalink / raw)
To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Nicolas Ferre, Alexandre Belloni, Claudiu Beznea, Maxime Ripard,
Greg Kroah-Hartman, u.kleine-koenig
Cc: linux-iio, linux-arm-kernel, linux-kernel, Abdelnasser Hussein,
Andy Shevchenko, Joshua Crofts
at91_ts_register() only needs the parent struct device. Pass it
directly from at91_adc_probe() and drop the platform_device round-trip.
Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Joshua Crofts <crofts@kernel.org>
Signed-off-by: Abdelnasser Hussein <abdelnasserhussein11@gmail.com>
---
drivers/iio/adc/at91_adc.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c
index 2d49fb98fa47..ca998dc91af4 100644
--- a/drivers/iio/adc/at91_adc.c
+++ b/drivers/iio/adc/at91_adc.c
@@ -939,8 +939,7 @@ static int at91_ts_hw_init(struct iio_dev *idev, u32 adc_clk_khz)
return 0;
}
-static int at91_ts_register(struct iio_dev *idev,
- struct platform_device *pdev)
+static int at91_ts_register(struct iio_dev *idev, struct device *dev)
{
struct at91_adc_state *st = iio_priv(idev);
struct input_dev *input;
@@ -954,7 +953,7 @@ static int at91_ts_register(struct iio_dev *idev,
input->name = DRIVER_NAME;
input->id.bustype = BUS_HOST;
- input->dev.parent = &pdev->dev;
+ input->dev.parent = dev;
input->open = atmel_ts_open;
input->close = atmel_ts_close;
@@ -969,7 +968,7 @@ static int at91_ts_register(struct iio_dev *idev,
input_set_abs_params(input, ABS_PRESSURE, 0, 0xffffff, 0, 0);
} else {
if (st->touchscreen_type != ATMEL_ADC_TOUCHSCREEN_4WIRE) {
- dev_err(&pdev->dev,
+ dev_err(dev,
"This touchscreen controller only support 4 wires\n");
ret = -EINVAL;
goto err;
@@ -1173,7 +1172,7 @@ static int at91_adc_probe(struct platform_device *pdev)
return ret;
}
} else {
- ret = at91_ts_register(idev, pdev);
+ ret = at91_ts_register(idev, dev);
if (ret)
return ret;
--
2.56.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v6 7/8] iio: adc: at91_adc: use HZ_PER_KHZ instead of raw 1000
2026-12-03 17:30 [PATCH v6 0/8] iio: adc: at91_adc: fix NULL trigger dereference and convert to devm Abdelnasser Hussein
` (5 preceding siblings ...)
2026-12-03 17:30 ` [PATCH v6 6/8] iio: adc: at91_adc: pass struct device to at91_ts_register() Abdelnasser Hussein
@ 2026-12-03 17:30 ` Abdelnasser Hussein
2026-12-03 17:30 ` [PATCH v6 8/8] iio: adc: at91_adc: convert to device-managed resources Abdelnasser Hussein
7 siblings, 0 replies; 12+ messages in thread
From: Abdelnasser Hussein @ 2026-12-03 17:30 UTC (permalink / raw)
To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Nicolas Ferre, Alexandre Belloni, Claudiu Beznea, Maxime Ripard,
Greg Kroah-Hartman, u.kleine-koenig
Cc: linux-iio, linux-arm-kernel, linux-kernel, Abdelnasser Hussein,
Joshua Crofts
Convert adc_clk to kHz with HZ_PER_KHZ instead of the open-coded
divisor in at91_adc_probe().
Reviewed-by: Joshua Crofts <crofts@kernel.org>
Signed-off-by: Abdelnasser Hussein <abdelnasserhussein11@gmail.com>
---
drivers/iio/adc/at91_adc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c
index ca998dc91af4..ed3431b17ad8 100644
--- a/drivers/iio/adc/at91_adc.c
+++ b/drivers/iio/adc/at91_adc.c
@@ -20,6 +20,7 @@
#include <linux/property.h>
#include <linux/sched.h>
#include <linux/slab.h>
+#include <linux/units.h>
#include <linux/wait.h>
#include <linux/iio/iio.h>
@@ -1113,7 +1114,7 @@ static int at91_adc_probe(struct platform_device *pdev)
*/
mstrclk = clk_get_rate(st->clk);
adc_clk = clk_get_rate(st->adc_clk);
- adc_clk_khz = adc_clk / 1000;
+ adc_clk_khz = adc_clk / HZ_PER_KHZ;
dev_dbg(dev, "Master clock is set as: %d Hz, adc_clk should set as: %d Hz\n",
mstrclk, adc_clk);
--
2.56.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v6 8/8] iio: adc: at91_adc: convert to device-managed resources
2026-12-03 17:30 [PATCH v6 0/8] iio: adc: at91_adc: fix NULL trigger dereference and convert to devm Abdelnasser Hussein
` (6 preceding siblings ...)
2026-12-03 17:30 ` [PATCH v6 7/8] iio: adc: at91_adc: use HZ_PER_KHZ instead of raw 1000 Abdelnasser Hussein
@ 2026-12-03 17:30 ` Abdelnasser Hussein
7 siblings, 0 replies; 12+ messages in thread
From: Abdelnasser Hussein @ 2026-12-03 17:30 UTC (permalink / raw)
To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Nicolas Ferre, Alexandre Belloni, Claudiu Beznea, Maxime Ripard,
Greg Kroah-Hartman, u.kleine-koenig
Cc: linux-iio, linux-arm-kernel, linux-kernel, Abdelnasser Hussein
Convert the driver to device-managed APIs so that all resources are
freed automatically on probe failure or driver detach.
Includes dropping redundant error messages and helpers.
The triggers are now only directly referred to in probe() so drop the
pointers from struct at91_adc_state.
Suggested-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Abdelnasser Hussein <abdelnasserhussein11@gmail.com>
---
drivers/iio/adc/at91_adc.c | 195 ++++++++-------------------------------------
1 file changed, 34 insertions(+), 161 deletions(-)
diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c
index ed3431b17ad8..6c1a09c4d9f2 100644
--- a/drivers/iio/adc/at91_adc.c
+++ b/drivers/iio/adc/at91_adc.c
@@ -229,7 +229,6 @@ struct at91_adc_state {
u32 startup_time;
u8 sample_hold_time;
bool sleep_mode;
- struct iio_trigger **trig;
bool use_external;
u32 vref_mv;
u32 res; /* resolution used for conversions */
@@ -606,104 +605,6 @@ static const struct iio_trigger_ops at91_adc_trigger_ops = {
.set_trigger_state = &at91_adc_configure_trigger,
};
-static struct iio_trigger *at91_adc_allocate_trigger(struct iio_dev *idev,
- const struct at91_adc_trigger *trigger)
-{
- struct iio_trigger *trig;
- int ret;
-
- trig = iio_trigger_alloc(idev->dev.parent, "%s-dev%d-%s", idev->name,
- iio_device_id(idev), trigger->name);
- if (trig == NULL)
- return NULL;
-
- iio_trigger_set_drvdata(trig, idev);
- trig->ops = &at91_adc_trigger_ops;
-
- ret = iio_trigger_register(trig);
- if (ret) {
- iio_trigger_free(trig);
- return NULL;
- }
-
- return trig;
-}
-
-static int at91_adc_trigger_init(struct iio_dev *idev)
-{
- struct at91_adc_state *st = iio_priv(idev);
- int i, ret;
-
- st->trig = devm_kcalloc(&idev->dev,
- st->caps->trigger_number, sizeof(*st->trig),
- GFP_KERNEL);
-
- if (st->trig == NULL) {
- ret = -ENOMEM;
- goto error_ret;
- }
-
- for (i = 0; i < st->caps->trigger_number; i++) {
- if (st->caps->triggers[i].is_external && !(st->use_external))
- continue;
-
- st->trig[i] = at91_adc_allocate_trigger(idev,
- st->caps->triggers + i);
- if (st->trig[i] == NULL) {
- dev_err(&idev->dev,
- "Could not allocate trigger %d\n", i);
- ret = -ENOMEM;
- goto error_trigger;
- }
- }
-
- return 0;
-
-error_trigger:
- for (i--; i >= 0; i--) {
- /*
- * iio_trigger_unregister() is intentionally not NULL-aware so
- * unregistering an unallocated trigger fails loudly.
- */
- if (!st->trig[i])
- continue;
-
- iio_trigger_unregister(st->trig[i]);
- iio_trigger_free(st->trig[i]);
- }
-error_ret:
- return ret;
-}
-
-static void at91_adc_trigger_remove(struct iio_dev *idev)
-{
- struct at91_adc_state *st = iio_priv(idev);
- int i;
-
- for (i = 0; i < st->caps->trigger_number; i++) {
- /*
- * iio_trigger_unregister() is intentionally not NULL-aware so
- * unregistering an unallocated trigger fails loudly.
- */
- if (!st->trig[i])
- continue;
-
- iio_trigger_unregister(st->trig[i]);
- iio_trigger_free(st->trig[i]);
- }
-}
-
-static int at91_adc_buffer_init(struct iio_dev *idev)
-{
- return iio_triggered_buffer_setup(idev, &iio_pollfunc_store_time,
- &at91_adc_trigger_handler, NULL);
-}
-
-static void at91_adc_buffer_remove(struct iio_dev *idev)
-{
- iio_triggered_buffer_cleanup(idev);
-}
-
static int at91_adc_read_raw(struct iio_dev *idev,
struct iio_chan_spec const *chan,
int *val, int *val2, long mask)
@@ -944,17 +845,13 @@ static int at91_ts_register(struct iio_dev *idev, struct device *dev)
{
struct at91_adc_state *st = iio_priv(idev);
struct input_dev *input;
- int ret;
- input = input_allocate_device();
- if (!input) {
- dev_err(&idev->dev, "Failed to allocate TS device!\n");
+ input = devm_input_allocate_device(dev);
+ if (!input)
return -ENOMEM;
- }
input->name = DRIVER_NAME;
input->id.bustype = BUS_HOST;
- input->dev.parent = dev;
input->open = atmel_ts_open;
input->close = atmel_ts_close;
@@ -968,12 +865,9 @@ static int at91_ts_register(struct iio_dev *idev, struct device *dev)
0, 0);
input_set_abs_params(input, ABS_PRESSURE, 0, 0xffffff, 0, 0);
} else {
- if (st->touchscreen_type != ATMEL_ADC_TOUCHSCREEN_4WIRE) {
- dev_err(dev,
- "This touchscreen controller only support 4 wires\n");
- ret = -EINVAL;
- goto err;
- }
+ if (st->touchscreen_type != ATMEL_ADC_TOUCHSCREEN_4WIRE)
+ return dev_err_probe(dev, -EINVAL,
+ "This touchscreen controller only support 4 wires\n");
input_set_abs_params(input, ABS_X, 0, (1 << MAX_RLPOS_BITS) - 1,
0, 0);
@@ -984,20 +878,7 @@ static int at91_ts_register(struct iio_dev *idev, struct device *dev)
st->ts_input = input;
input_set_drvdata(input, st);
- ret = input_register_device(input);
- if (ret)
- goto err;
-
- return ret;
-
-err:
- input_free_device(input);
- return ret;
-}
-
-static void at91_ts_unregister(struct at91_adc_state *st)
-{
- input_unregister_device(st->ts_input);
+ return input_register_device(input);
}
static int at91_adc_probe(struct platform_device *pdev)
@@ -1161,16 +1042,34 @@ static int at91_adc_probe(struct platform_device *pdev)
* trigger for classic adc.
*/
if (!st->touchscreen_type) {
- ret = at91_adc_buffer_init(idev);
- if (ret < 0)
+ ret = devm_iio_triggered_buffer_setup(dev, idev,
+ &iio_pollfunc_store_time,
+ &at91_adc_trigger_handler,
+ NULL);
+ if (ret)
return dev_err_probe(dev, ret,
"Couldn't initialize the buffer.\n");
- ret = at91_adc_trigger_init(idev);
- if (ret < 0) {
- dev_err(dev, "Couldn't setup the triggers.\n");
- at91_adc_buffer_remove(idev);
- return ret;
+ for (unsigned int i = 0; i < st->caps->trigger_number; i++) {
+ struct iio_trigger *trig;
+
+ if (st->caps->triggers[i].is_external && !st->use_external)
+ continue;
+
+ trig = devm_iio_trigger_alloc(dev, "%s-dev%d-%s",
+ idev->name,
+ iio_device_id(idev),
+ st->caps->triggers[i].name);
+ if (!trig)
+ return -ENOMEM;
+
+ iio_trigger_set_drvdata(trig, idev);
+ trig->ops = &at91_adc_trigger_ops;
+
+ ret = devm_iio_trigger_register(dev, trig);
+ if (ret)
+ return dev_err_probe(dev, ret,
+ "Couldn't register trigger %u.\n", i);
}
} else {
ret = at91_ts_register(idev, dev);
@@ -1180,36 +1079,11 @@ static int at91_adc_probe(struct platform_device *pdev)
at91_ts_hw_init(idev, adc_clk_khz);
}
- ret = iio_device_register(idev);
- if (ret < 0) {
- dev_err(dev, "Couldn't register the device.\n");
- goto error_iio_device_register;
- }
+ ret = devm_iio_device_register(dev, idev);
+ if (ret)
+ return dev_err_probe(dev, ret, "Couldn't register the device.\n");
return 0;
-
-error_iio_device_register:
- if (!st->touchscreen_type) {
- at91_adc_trigger_remove(idev);
- at91_adc_buffer_remove(idev);
- } else {
- at91_ts_unregister(st);
- }
- return ret;
-}
-
-static void at91_adc_remove(struct platform_device *pdev)
-{
- struct iio_dev *idev = platform_get_drvdata(pdev);
- struct at91_adc_state *st = iio_priv(idev);
-
- iio_device_unregister(idev);
- if (!st->touchscreen_type) {
- at91_adc_trigger_remove(idev);
- at91_adc_buffer_remove(idev);
- } else {
- at91_ts_unregister(st);
- }
}
static int at91_adc_suspend(struct device *dev)
@@ -1359,7 +1233,6 @@ MODULE_DEVICE_TABLE(of, at91_adc_dt_ids);
static struct platform_driver at91_adc_driver = {
.probe = at91_adc_probe,
- .remove = at91_adc_remove,
.driver = {
.name = DRIVER_NAME,
.of_match_table = at91_adc_dt_ids,
--
2.56.0
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH v6 1/8] iio: adc: at91_adc: skip unpopulated triggers on teardown
2026-12-03 17:30 ` [PATCH v6 1/8] iio: adc: at91_adc: skip unpopulated triggers on teardown Abdelnasser Hussein
@ 2026-12-03 17:53 ` Andy Shevchenko
0 siblings, 0 replies; 12+ messages in thread
From: Andy Shevchenko @ 2026-12-03 17:53 UTC (permalink / raw)
To: Abdelnasser Hussein
Cc: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Nicolas Ferre, Alexandre Belloni, Claudiu Beznea, Maxime Ripard,
Greg Kroah-Hartman, u.kleine-koenig, linux-iio, linux-arm-kernel,
linux-kernel, stable
On Thu, Dec 03, 2026 at 07:30:05PM +0200, Abdelnasser Hussein wrote:
> at91_adc_trigger_init() and at91_adc_trigger_remove() iterate over all
> st->trig entries. External trigger slots remain NULL when
> "atmel,adc-use-external-triggers" is absent, so skip them in both
> teardown loops.
>
> Keep this as a minimal stable-backportable fix; the devm conversion later
> in the series removes this teardown code.
...
> error_trigger:
> for (i--; i >= 0; i--) {
> + /*
> + * iio_trigger_unregister() is intentionally not NULL-aware so
> + * unregistering an unallocated trigger fails loudly.
> + */
No, this comment should be in the kernel-doc for iio_trigger_unregister().
> + if (!st->trig[i])
> + continue;
Then it will automatically explains this check.
> iio_trigger_unregister(st->trig[i]);
> iio_trigger_free(st->trig[i]);
> }
...
> for (i = 0; i < st->caps->trigger_number; i++) {
> + /*
> + * iio_trigger_unregister() is intentionally not NULL-aware so
> + * unregistering an unallocated trigger fails loudly.
> + */
> + if (!st->trig[i])
> + continue;
> +
> iio_trigger_unregister(st->trig[i]);
> iio_trigger_free(st->trig[i]);
> }
Same here.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v6 3/8] iio: adc: at91_adc: switch to device_get_match_data()
2026-12-03 17:30 ` [PATCH v6 3/8] iio: adc: at91_adc: switch to device_get_match_data() Abdelnasser Hussein
@ 2026-12-03 17:55 ` Andy Shevchenko
0 siblings, 0 replies; 12+ messages in thread
From: Andy Shevchenko @ 2026-12-03 17:55 UTC (permalink / raw)
To: Abdelnasser Hussein
Cc: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Nicolas Ferre, Alexandre Belloni, Claudiu Beznea, Maxime Ripard,
Greg Kroah-Hartman, u.kleine-koenig, linux-iio, linux-arm-kernel,
linux-kernel
On Thu, Dec 03, 2026 at 07:30:07PM +0200, Abdelnasser Hussein wrote:
> Replace of_device_get_match_data() with device_get_match_data() and
> reject a missing match with -ENODATA instead of deferring the failure to
> the first st->caps dereference.
Why?
It looks like a driver is going to use unified device property APIs. Perhaps
that's the reason why this change?
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v6 4/8] iio: adc: at91_adc: convert to device_property_*() APIs
2026-12-03 17:30 ` [PATCH v6 4/8] iio: adc: at91_adc: convert to device_property_*() APIs Abdelnasser Hussein
@ 2026-12-03 17:57 ` Andy Shevchenko
0 siblings, 0 replies; 12+ messages in thread
From: Andy Shevchenko @ 2026-12-03 17:57 UTC (permalink / raw)
To: Abdelnasser Hussein
Cc: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Nicolas Ferre, Alexandre Belloni, Claudiu Beznea, Maxime Ripard,
Greg Kroah-Hartman, u.kleine-koenig, linux-iio, linux-arm-kernel,
linux-kernel
On Thu, Dec 03, 2026 at 07:30:08PM +0200, Abdelnasser Hussein wrote:
> Read the atmel,adc-* properties through device_property_*() in
> at91_adc_probe() and at91_adc_probe_ts(), dropping the local
> device_node.
>
> Use a local struct device pointer and a propname variable, return the
> actual property-read error with the property name in the message, and
> replace the atmel,adc-use-res string comparison with
> device_property_match_string().
> With the of_* helpers gone, drop <linux/of.h> (<linux/platform_device.h>
> already provides struct of_device_id).
Again the commit message lacks of answer to "why?".
...
> st->res = st->caps->high_res_bits;
> if (st->caps->low_res_bits &&
> - !of_property_read_string(node, "atmel,adc-use-res", &s)
> - && !strcmp(s, "lowres"))
> + device_property_match_string(dev, "atmel,adc-use-res", "lowres") >= 0)
> st->res = st->caps->low_res_bits;
As previous patch this change can be split.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2026-12-03 18:05 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 17:30 [PATCH v6 0/8] iio: adc: at91_adc: fix NULL trigger dereference and convert to devm Abdelnasser Hussein
2026-12-03 17:30 ` [PATCH v6 1/8] iio: adc: at91_adc: skip unpopulated triggers on teardown Abdelnasser Hussein
2026-12-03 17:53 ` Andy Shevchenko
2026-12-03 17:30 ` [PATCH v6 2/8] iio: adc: at91_adc: drop duplicate IRQ allocation error message Abdelnasser Hussein
2026-12-03 17:30 ` [PATCH v6 3/8] iio: adc: at91_adc: switch to device_get_match_data() Abdelnasser Hussein
2026-12-03 17:55 ` Andy Shevchenko
2026-12-03 17:30 ` [PATCH v6 4/8] iio: adc: at91_adc: convert to device_property_*() APIs Abdelnasser Hussein
2026-12-03 17:57 ` Andy Shevchenko
2026-12-03 17:30 ` [PATCH v6 5/8] iio: adc: at91_adc: use local struct device pointer in probe Abdelnasser Hussein
2026-12-03 17:30 ` [PATCH v6 6/8] iio: adc: at91_adc: pass struct device to at91_ts_register() Abdelnasser Hussein
2026-12-03 17:30 ` [PATCH v6 7/8] iio: adc: at91_adc: use HZ_PER_KHZ instead of raw 1000 Abdelnasser Hussein
2026-12-03 17:30 ` [PATCH v6 8/8] iio: adc: at91_adc: convert to device-managed resources Abdelnasser Hussein
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox