Re: Reading ADC that comes from a multiplexer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2021-09-22 14:44, Fabio Estevam wrote:
> Just realized that iio-mux.c does not get probed.
> 
> In mux_probe():
> 
> parent = devm_iio_channel_get(dev, "parent");
> 
> is always returning -EPROBE_DEFER, even though I passed:
> 
>         io-channel-names = "parent";
> 

I think that's because the "parent" channel (i.e. <&adc 4> in your case)
is referring to a node that is not providing any iio channels at all.

Just because you added "#io-channel-cells = <1>;" to that node, does not
make it so. The driver has to support it as well.

Cheers,
Peter



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux