Re: [PATCH] iio: accel: mma8452: Expose temperature channel

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

 



On Thu, 13 Feb 2020 16:04:08 -0600
Dylan Howey <Dylan.Howey@xxxxxxxxxxxxx> wrote:

> I tried disabling the temperature channel after every raw read, but I'm
> running into some issues. When the channel is disabled the data ready
> bits in ctrl_reg1 won't go high anymore, and I'm doing the dummy read of
> 33h as the datasheet says. Data ready interrupts also stop working. So
> something is not right with this particular hardware. If you leave the
> channel enabled everything works good.
> 
> What are my options? I could implicitly enable the channel the first
> time it is used and leave it on, but it seems bad to leave the channel
> enabled. In that case there would be no other way to disable the channel
> other than to reload the module.
> 
> Maybe an argument passed to the module to enable temperature output or a
> compile time flag to do this?

So ideally we'd get someone at Freescale to confirm there is a hardware
rather than a documentation issue (i.e. maybe we need some other magic).

Assuming we can't confirm that, then compile time is not a good idea.
Could do a module parameter.   The reason we might not want to always
have it on is that it limits the maximum sampling frequency. 
The question is whether anyone actually cares about 800Hz?

If they do we probably need to avoid breaking them so would need a module
parameter to be 'enable temp' rather than the more natural option
of 'disable temp' to be set only by people who need the highest
frequency.

Jonathan
> 




[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