Re: BUG in sermouse driver

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

 



Hi!

> > There is a bug in sermouse driver that inputattach program terminates 
> > during suspend (or resume) to ram hence mouse does not work afer resume. 
> > When i execute inputattach after resume, the mouse is working.
> 
> I know that Pavel (added to CC) knows where the problem is (improper fake 
> signal handling around try_to_freeze() call), I guess he'd be able to 
> provide a patch to test.

I don't have a patch ready, but I believe we localized the problem to
serport_ldisc_read().

        wait_event_interruptible(serport->wait,
+test_bit(SERPORT_DEAD,&serport->flags));

It does interruptible wait, but does not expect signals. We tried
something like:

do {
        wait_event_interruptible(serport->wait, test_bit(SERPORT_DEAD,&serport->flags));
} while (try_to_freeze());

...but that did not help IIRC.
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux