Re: [PATCH 3/3] iio: imu: inv_mpu6050: Add basic support for mpu9150

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

 



On 15/02/14 13:39, Wolfram Sang wrote:

Wolfram, what do you think?

In short we have a device that sits on an i2c bus and supports its own
i2c bus (mainly so that the internal processor can use data from devices
on that bus) including support for passing the bus straight through.
The issues is the dependencies when the intermediate device is sleeping
for example.

Just judging from the paragraph above and not digging into the topic
deeper, I think the idea of an 1-1 multiplexer is suitable. Would the
pass-throu device then be a MFD? Are the alternative ideas?

Seems like overkill to introduce an MFD for this little addition to a fairly
large (and likely to grow driver).  Its a little ugly, but would you mind
if the multiplexer is just handled directly within the  main driver?
(perhaps via a config option).  It would be 'odd' to say the least if
someone really wanted the pass through and not the complex inertial chip
it is part of.

Might just be simpler to do a very trivial mfd with the two parts hanging of it.
The complexity is that the inertial sensor will often take over the device
hanging off it completely so we will need to have it cleanly blocked as busy.

Lee, what do you think?

Jonathan
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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