Re: [Patch] MPC Adapter: read class attribute from device tree

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

 



Hi Wolfram,

On Fri, 24 Apr 2009 10:52:56 +0200, Wolfram Sang wrote:
> > And how do you want to implement setting the class attribute?
> 
> Not at all. I see ".class" as a reminiscent to overcome some flaws of
> the old binding model.

Not really. The old binding model didn't have this concept of class
originally, it was added later but never enforced and only sparsely
used.

Nowadays classes are an extension of the new binding model, used to
restrict the field of application of .detect() callbacks (because we
definitely do not want probing to be enabled by default.)

> If we finally got rid of that we can surely think
> of a more elegant way to enforce instanciation of clients run-time. And
> with that, probably get rid of .class altogether. D'accord, Jean?

In an ideal world, yes. In the real world, no. There are several
thousand PC mainboards out there with devices on the SMBus and we don't
have a list, and in most cases no way to ask the system about them.
Probing is the only realistic way there, so at least I2C_CLASS_HWMON,
I2C_CLASS_DDC and I2C_CLASS_SPD are there to stay. We should be able to
get rid of I2C_CLASS_TV_ANALOG and I2C_CLASS_TV_DIGITAL though.

While classes will stay for PC mainboards, it should be possible (and
desirable) to stop using them completely on embedded systems.

-- 
Jean Delvare
--
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