Re: Detecting host connection with gadget serial driver, and WARNING backtraces

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

 




--- On Fri, 6/11/10, Jon Povey <Jon.Povey@xxxxxxxxxxxxxxx> wrote:

> 
> Date: Friday, June 11, 2010, 2:55 AM
> I am trying to get a system working
> with the gadget serial driver, I need userland apps to
> change behaviour when connected to a PC (and enumerated).
> The driver detects this event and prints a message, but no
> hotplug event fires. The tty is created at driver load time
> (i.e. on boot).
> 
> Is there some way I can / should be detecting this event
> from userland? Maybe some kind of ioctl on the gadget serial tty?


It should work the same was as on a Real UART(tm),
whatever that is ... when the handshaking signals
are activated by the host, it shouldn't matter
whether the link uses USB or RS232 signaling.

> Also, I was getting a WARNING backtrace (pasted below) as
> soon as I sent data into the linux box until I found this in
> the archives:
> 
> http://lkml.indiana.edu/hypermail/linux/kernel/0906.2/03650.html
> 
> I commented out the "low_latency = 1" in gadget/u_serial.c
> and the problem seems to have gone away.
> 
> WARNING: at kernel/mutex.c:207

Yeah, the rules for use of that flag "evolved",
but nobody patched that driver.

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" 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]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux