All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] More compatibles or more quirk properties
@ 2009-03-06  7:09 ` Li Yang-R58472
  0 siblings, 0 replies; 4+ messages in thread
From: Li Yang-R58472 @ 2009-03-06  7:09 UTC (permalink / raw)
  To: devicetree-discuss; +Cc: linuxppc-dev

SGksDQoNCkknbSBydW5uaW5nIGludG8gYSBkaWxlbW1hIGNob29zaW5nIGJldHdlZW4gdHdvIGFw
cHJvYWNoZXMgb2YgZGVmaW5pbmcgZGV2aWNlIHRyZWUgYmluZGluZy4gIExldCdzIHNheSBpZiB3
ZSBoYXZlIHNldmVyYWwgY2hpcHMgd2l0aCBhIHNpbWlsYXIgU29DIGJsb2NrLCBidXQgZWFjaCBv
ZiB0aGVtIGhhdmUgZGlmZmVyZW50IHF1aXJrcy4gIElmIEkgZGVmaW5lIGRpZmZlcmVudCBjb21w
YXRpYmxlcyBmb3IgZWFjaCBvZiB0aGUgY2hpcHMsIHRoZSBkcml2ZXIgd2lsbCBoYXZlIGEgbG9u
Z2VyIG1hdGNoIHRhYmxlIGFuZCB0aHVzIGJsb2F0IHRoZSBkZXZpY2UgbWF0Y2hpbmcgcHJvY2Vz
cy4gIE9yIHdlIGNhbiB1c2UgYSBzYW1lIGNvbXBhdGlibGUgZm9yIGFsbCBvZiB0aGVtIGFuZCAg
ZGVmaW5lIHByb3BlcnRpZXMgZm9yIGVhY2ggb2YgdGhlIHF1aXJrcy4gIEJ1dCBpdCBzb21ld2hh
dCBibG9hdHMgdGhlIGRldmljZSB0cmVlLiAgSSdtIG1vcmUgcHJvbmUgdG8gdGhlIHNlY29uZCBz
b2x1dGlvbiwgYnV0IEkgZG8gd2FudCB0byBoZWFyIHdoYXQgeW91IGd1eXMgdGhpbmsgYWJvdXQg
aXQuDQoNCi0gTGVvDQo=

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [RFC] More compatibles or more quirk properties
@ 2009-03-06  7:09 ` Li Yang-R58472
  0 siblings, 0 replies; 4+ messages in thread
From: Li Yang-R58472 @ 2009-03-06  7:09 UTC (permalink / raw)
  To: devicetree-discuss; +Cc: linuxppc-dev

Hi,

I'm running into a dilemma choosing between two approaches of defining device tree binding.  Let's say if we have several chips with a similar SoC block, but each of them have different quirks.  If I define different compatibles for each of the chips, the driver will have a longer match table and thus bloat the device matching process.  Or we can use a same compatible for all of them and  define properties for each of the quirks.  But it somewhat bloats the device tree.  I'm more prone to the second solution, but I do want to hear what you guys think about it.

- Leo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFC] More compatibles or more quirk properties
@ 2009-03-06  7:32   ` Mitch Bradley
  0 siblings, 0 replies; 4+ messages in thread
From: Mitch Bradley @ 2009-03-06  7:32 UTC (permalink / raw)
  To: Li Yang-R58472; +Cc: linuxppc-dev, devicetree-discuss

>
> I'm running into a dilemma choosing between two approaches of defining device tree binding.  Let's say if we have several chips with a similar SoC block, but each of them have different quirks.  If I define different compatibles for each of the chips, the driver will have a longer match table and thus bloat the device matching process.  Or we can use a same compatible for all of them and  define properties for each of the quirks.  But it somewha
Properties to describe quirks precisely are definitely better.  In fact, 
that's fundamental principle - describe the situation, don't infer a 
bunch of details from a name.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFC] More compatibles or more quirk properties
@ 2009-03-06  7:32   ` Mitch Bradley
  0 siblings, 0 replies; 4+ messages in thread
From: Mitch Bradley @ 2009-03-06  7:32 UTC (permalink / raw)
  To: Li Yang-R58472
  Cc: linuxppc-dev-mnsaURCQ41sdnm+yROfE0A,
	devicetree-discuss-mnsaURCQ41sdnm+yROfE0A

>
> I'm running into a dilemma choosing between two approaches of defining device tree binding.  Let's say if we have several chips with a similar SoC block, but each of them have different quirks.  If I define different compatibles for each of the chips, the driver will have a longer match table and thus bloat the device matching process.  Or we can use a same compatible for all of them and  define properties for each of the quirks.  But it somewha
Properties to describe quirks precisely are definitely better.  In fact, 
that's fundamental principle - describe the situation, don't infer a 
bunch of details from a name.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-06  7:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-06  7:09 [RFC] More compatibles or more quirk properties Li Yang-R58472
2009-03-06  7:09 ` Li Yang-R58472
2009-03-06  7:32 ` Mitch Bradley
2009-03-06  7:32   ` Mitch Bradley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.