Hello,

I have recently got slave usb working on 823/850 boards.

now i am facing a severe problem only when klogd is started.

problem is that , as klogd sets a console_loglevel i am
getting the prints of usb messages on screen very very
unpredictably.

even usb stops generating receive and transmit interrupts
if i don't enforce the changes in kernel/printk.c
like below..

ORIGINAL CODE THAT DOESN'T WORK
----------------------------------
if (msg_level < console_loglevel && console_drivers)
     {
       struct console *c = console_drivers;
        while(c) {
           if ((c->flags & CON_ENABLED) && c->write)
            c->write(c, msg, p - msg + line_feed);
              c = c->next;
                         }

HACK THAT MAKES IT WORK
-----------------------
if (console_drivers)
     {
      struct console *c = console_drivers;
      while(c) {
     if ((c->flags & CON_ENABLED) && c->write)
      c->write(c, msg, p - msg + line_feed);
      c = c->next;
     }

point to note is that usb interrupt is among the highest priority 
while the uart is quite lower one also usb generates lot of 
interrupts ( one msec. SOF)

basically it works if it is made to print on SCREEN .
also it will work when you set (KERN_EMERG) in printk.

my interupt hasndler runs as kernel thread.
alternatively it also works when i enable the DEBUG options (lot 
of printk's in usb routines)

can any body sugest me some pointer..?

Best Regards,
Ashish


_________________________________________________________
There is always a better job for you at Monsterindia.com.
Go now http://monsterindia.rediff.com/jobs



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Oh, it's good to be a geek.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to