Re: [PATCH 10/11] viafb: rework the I2C support in the VIAframebuffer driver
From: Harald Welte
Date: Sat Apr 24 2010 - 11:09:11 EST
Hi Jon,
On Sat, Apr 24, 2010 at 07:33:59AM -0600, Jonathan Corbet wrote:
> This patch creates an i2c bus on every port which could conceivably
> have one. That's rather different from the original code, which
> created a single bus (in the kernel) then swapped it between ports 31
> and 2c in weird ways. In particular, it takes over ports which,
> conceivably, somebody else could be using for GPIO. So, perhaps, there
> is some contention going on there.
>
> If my hypothesis is correct, this problem will go away with the
> application of the second series, which doesn't create i2c buses on
> ports used for GPIO. But the problem should be fixed here so we don't
> have things broken in the middle.
>
> Harald, does this reasoning make sense to you? If so, what I should do
> is bring forward just enough of the via-core code to be able to
> configure which ports actually get i2c buses created on them. Easily
> done.
It makes a lot of sense. When I added all possible I2C busses, this was merely
the result of "let's try to make sure every possible configuration is
supported" rather than some kind of neccessity.
Simply converting the original two busses to the new code is definitely
the way to go. Maybe we'll keep the code for the other two around, but
somehow keep them inactive and don't advertise them unless somebody explicitly
does so?
--
- Harald Welte <laforge@xxxxxxxxxxxx> http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/