Re: [Celinux-dev] [PATCH] LDT - Linux Driver Template

2012-11-13 Thread Tim Bird
My apologies. As celinux-dev list administrator, I messed up my moderation and this response from Greg got discarded instead of sent to the list. Here it is, sent by me on Greg's behalf... -- Tim On Wed, Nov 14, 2012 at 02:14:58AM +0200, Constantine Shulyupin wrote: > On Tue, Nov 13, 2012 at 9:

Re: [Celinux-dev] [PATCH] LDT - Linux Driver Template

2012-11-13 Thread Constantine Shulyupin
On Tue, Nov 13, 2012 at 9:01 PM, Greg KH wrote: >> +#define pr_debug_hex(h) pr_debug("%s:%d %s %s = 0x%lX\n", \ >> + __file__, __LINE__, __func__, #h, (long int)h) > > This is not needed at all, just use the proper printk() attribute. Macro above allows tidy tracing code: pr_deb

Re: [Celinux-dev] [PATCH] LDT - Linux Driver Template

2012-11-13 Thread Constantine Shulyupin
> Now I agree using the char interface isn't the most "obvious" and I have > a set of ideas/half-baked patches floating around that aim to clean it > up, but for now, I'd recommend just using the misc interface, it's > worlds simpler, makes sense, and handles all of the struct device work > for you

Re: [Celinux-dev] [PATCH] LDT - Linux Driver Template

2012-11-13 Thread Constantine Shulyupin
On Wed, Nov 14, 2012 at 1:02 AM, Greg KH wrote: > On Wed, Nov 14, 2012 at 12:31:13AM +0200, Constantine Shulyupin wrote: >> >> + * Device Model (class, device) >> > Don't use class code in an example, it is slowly going away from the >> > whole kernel. >> What to use instead class_create and dev

Re: [Celinux-dev] [PATCH] LDT - Linux Driver Template

2012-11-13 Thread Constantine Shulyupin
>> + * Device Model (class, device) > Don't use class code in an example, it is slowly going away from the > whole kernel. What to use instead class_create and device_create? Thank you. ___ Celinux-dev mailing list Celinux-dev@lists.celinuxforum.org ht

Re: [Celinux-dev] [PATCH] LDT - Linux Driver Template

2012-11-13 Thread Greg KH
On Tue, Nov 13, 2012 at 08:46:37PM +0200, Constantine Shulyupin wrote: > +++ b/samples/ltd/ldt.c > @@ -0,0 +1,764 @@ > +/* > + * LDT - Linux Driver Template > + * > + * Copyright (C) 2012 Constantine Shulyupin http://www.makelinux.net/ > + * > + * Dual BSD/GPL License That makes no sense for

[Celinux-dev] [PATCH] LDT - Linux Driver Template

2012-11-13 Thread Constantine Shulyupin
From: Constantine Shulyupin LDT is useful for Linux driver development beginners, hackers and as starting point for a new drivers. The driver uses following Linux facilities: module, platform driver, file operations (read/write, mmap, ioctl, blocking and nonblocking mode, polling), kfifo, comple

[Celinux-dev] [FOSDEM] Embedded and mobile devroom CFP

2012-11-13 Thread Geert Uytterhoeven
Every year there is a special dedicated track for embedded and mobile projects at Fosdem (see: http://www.fosdem.org/). If you are interested to highlight or give a talk about your project check out the cfp. FOSDEM will be held the 2nd and 3th of February 2013 in Brussels, Belgium. As usual and fo

[Celinux-dev] huge boot time

2012-11-13 Thread David MONTICELLI
Hi, Our embedded linux is using a NOR flash. Recently I have noticed the following: 1) I erase the root fs partition from uboot 2) I tftp the root fs image from uboot 3) I boot up on 25 sec 4) I SCP 2 files of 14 Mb each to /home 5) I boot up on 45 sec 6) I delete those 2 files 7) I still boot