Em 22-04-2013 07:03, Mark Brown escreveu:
On Mon, Apr 22, 2013 at 01:14:07AM +0200, Laurent Pinchart wrote:
I think that Mark's point was that the regulators should be provided by
platform code (in the generic sense, it could be DT on ARM, board code, or a
USB bridge driver for a webcam that uses the mt9p031 sensor) and used by the
sensor driver. That's exactly what my mt9p031 patch does.
Yes, you understood me perfectly - to a good approximation the matching
up should be done by whatever the chip is soldered down to.
That doesn't make any sense to me. I2C devices can be used anywere,
as they can be soldered either internally on an USB webcam without
any regulators or any other platform code on it or could be soldered
to some platform-specific bus.
Also, what best describes "soldered" here is the binding between
an I2C driver and the I2C adapter. The I2C adapter is a platform
driver on embedded devices, where, on an usual USB camera, it
is just a USB->I2C bridge.
Also, requiring that simple USB cameras to have regulators will
prevent its usual usage, as non-platform distros don't set config
REGULATOR, and it shouldn't.
Regards,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html