Re: [PATCH v5 3/3] drivers: iio: adc: add support for ad777x family

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

 



On Thu, 10 Oct 2024 14:35:52 +0000
"Nechita, Ramona" <Ramona.Nechita@xxxxxxxxxx> wrote:

> Hello Jonathan,
> 
> >> >> +
> >> >> +	ret = ad7779_reset(indio_dev, reset_gpio);
> >> >> +	if (ret)
> >> >> +		return ret;
> >> >> +
> >> >> +	ad7779_powerup(st, start_gpio);
> >> >> +	if (ret)
> >> >> +		return ret;  
> >> >What powers the device down again if we hit an error?
> >> >
> >> >Probably need a devm_add_action_or_reset() or if it self powers down may a comment on that.    
> >> 
> >> In the powerup function there are only some register writes and the 
> >> start gpio is only a synchronization pulse (perhaps the name powerup is not very appropriate), would an action or reset be necessary in this case? Since the regulators are not used in the driver, should there be a function disabling them anyway?
> >>   
> >If there is nothing useful to do indeed not but when I see a power up, I rather expect a power down.  Is there anything that can do that or is it a case of it will go to sleep anyway for some other reason?  
> 
> I don't think there would be anything to do in a powerdown function specifically, but I could rename the powerup function to "_config" or something similar, to make it more intuitive.
ok. That will at least make me less suspicious when I read this
after forgetting all about it ;)

thanks,

Jonathan

> 
> >  
> Best Regards,
> Ramona
> 
> 





[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux