linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* usage of sparse or other trick for improved type safety
@ 2012-05-24 18:12 Woodruff, Richard
  2012-05-25  7:53 ` Tony Lindgren
  0 siblings, 1 reply; 5+ messages in thread
From: Woodruff, Richard @ 2012-05-24 18:12 UTC (permalink / raw)
  To: tony@atomide.com
  Cc: Hilman, Kevin, Menon, Nishanth, jean.pihet@newoldbits.com,
	Sripathy, Vishwanath, linux-omap@vger.kernel.org, Pasam, Vijay

Hi Tony,

I am hoping to solicit an opinion from you for OMAP frameworks in general.

In some recent review there was some debate about how it was good practice to form parameters in a way which didn't get misused. Nishanth was having some experience where end users doing custom ports made some hard to find mistakes.

I was wondering if it is useful to create a standard or it's a waste of time.  The knee-jerk reaction to comment is to consider annotations for driver users of api's, then inside the framework trust internals to do the right thing.  Complexity divide between a driver and some frameworks might be similar to user-vs-kernel.

I think example in this case was IVA and other external subsystems commonly got away using stale definitions when managing their own power domains.  Example seemed a little pedantic but it is true that this has broken several times through migrations. At customer fan out it causes a lot of effort which could have been avoided.

Just last week someone was trying to caste away an iomem annotation from external driver based on warning. For me warning was a good thing and forced discussion.

I do recall you pushing what ARM and Linux tress did in this area back into OMAP years back.  Question is if it's worth internalizing more for our ever growing frameworks.

Thanks,
Richard W.


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

end of thread, other threads:[~2012-06-15 11:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-24 18:12 usage of sparse or other trick for improved type safety Woodruff, Richard
2012-05-25  7:53 ` Tony Lindgren
2012-06-12 16:34   ` Woodruff, Richard
2012-06-14  8:05     ` Jean Pihet
2012-06-15 11:12       ` Jean Pihet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).