summaryrefslogtreecommitdiff
path: root/kernel/debug/debug_core.c
diff options
context:
space:
mode:
authorLoic Poulain <loic.poulain@oss.qualcomm.com>2026-11-01 11:09:02 +0800
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-11-02 00:40:36 +0000
commit25d15b4192b9ae45be61670b5424721f5a0e0cf2 (patch)
tree9b54f8b585d45187b2bc779bee91c13062a10194 /kernel/debug/debug_core.c
parentc83cc7d7ed204245ec50d974aefcfcc66e910cd5 (diff)
iio: adc: qcom-spmi-adc5-gen3: Reuse IIO device ID for ADC_TM aux device
adc5_gen3_add_aux_tm_device() never sets the auxiliary device id, so every ADC5 Gen3 instance with at least one qcom,adc-tm channel tries to register the same device name. With ADC_TM channels on more than one PMIC, the second instance to probe fails: sysfs: cannot create duplicate filename '/bus/auxiliary/devices/qcom_spmi_adc5_gen3.adc5_tm_gen3.0' ... auxiliary qcom_spmi_adc5_gen3.adc5_tm_gen3.0: adding auxiliary device failed!: -17 qcom-spmi-adc5-gen3 c400000.spmi:pmic@8:adc@7200: error -EEXIST: Failed to add auxiliary TM device The ADC probe then fails as a whole, so that PMIC loses both its IIO channels and its thermal zones. This shows up on Nord, which has thermistor channels on two PMAU0102 PMICs. Each ADC instance already has a unique IIO device ID. Use it as the auxiliary device id instead of allocating one from a separate driver-wide IDA, which removes the custom ID allocation and release handling. The ADC_TM driver matches on the device name only, so the instance number does not affect binding. Fixes: baff45179e90 ("iio: adc: Add support for QCOM PMIC5 Gen3 ADC") Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com> Signed-off-by: Shawn Guo <shengchao.guo@oss.qualcomm.com> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'kernel/debug/debug_core.c')
0 files changed, 0 insertions, 0 deletions