Re: [PATCH] i2c-designware: add optional regulator support

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

 



On Mon, Mar 19, 2012 at 04:24:34PM +0000, Mark Brown wrote:

> This is all exactly what I'd expect and really sounds exactly like the
> case I described - the panel needs the supply so the panel driver should
> be managing it when required.  There's nothing system or controller
> specific about the fact that the panel needs all its supplies up to run,
> and indeed there's already some LCD and backlight drivers which manage
> their supplies.

We already have the panel driver to manage its regulator and it works as
should. The problem is that when we blank the display and switch off the
panel power, it drives the whole I2C bus to low (due to HW bug in the
panel). This effectively prevents any other driver to talk to their device
on the same bus :-/

This is the reason we shared the same panel regulator with I2C controller -
power is only cut off when both drivers do regulator_disable().

> So what happens in a system where the regulator is required but fails to
> appear for some reason is that the driver happily runs on without saying
> anything which isn't going to be great for diagnostics and will produce
> some interesting races when we start to deploy deferred probe.

Ah, true - it should print some sort of warning in that case instead of
silently failing.

I understand your point wrt. this patch and I think we can go forward by
keeping this in our local kernel tree as a workaround for particular HW
issue.

Thank you for your comments.
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux