* Re: USB: symbolserial: log the ioctl commands [not found] <200903261929.n2QJTUX1009811@hera.kernel.org> @ 2009-03-26 19:44 ` Alan Cox 2009-04-06 5:40 ` Greg KH 0 siblings, 1 reply; 3+ messages in thread From: Alan Cox @ 2009-03-26 19:44 UTC (permalink / raw) To: Linux Kernel Mailing List; +Cc: greg > +static int symbol_tiocmget(struct tty_struct *tty, struct file *file) > +{ > + struct usb_serial_port *port = tty->driver_data; > + struct device *dev = &port->dev; > + > + /* TODO */ > + /* probably just need to shadow whatever was sent to us here */ > + dev_info(dev, "%s\n", __func__); > + return 0; > +} If you don't have a modem you don't provide these methods. If you do have a modem you return the values for the modem. Please do not try and stick in stuff faking responses, it just makes a nasty mess in the longer term and I've already cleared the same out of a ton of drivers - with I note no breakages of user space. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: USB: symbolserial: log the ioctl commands 2009-03-26 19:44 ` USB: symbolserial: log the ioctl commands Alan Cox @ 2009-04-06 5:40 ` Greg KH 2009-04-06 9:16 ` Alan Cox 0 siblings, 1 reply; 3+ messages in thread From: Greg KH @ 2009-04-06 5:40 UTC (permalink / raw) To: Alan Cox; +Cc: Linux Kernel Mailing List On Thu, Mar 26, 2009 at 07:44:21PM +0000, Alan Cox wrote: > > > +static int symbol_tiocmget(struct tty_struct *tty, struct file *file) > > +{ > > + struct usb_serial_port *port = tty->driver_data; > > + struct device *dev = &port->dev; > > + > > + /* TODO */ > > + /* probably just need to shadow whatever was sent to us here */ > > + dev_info(dev, "%s\n", __func__); > > + return 0; > > +} > > If you don't have a modem you don't provide these methods. If you do have > a modem you return the values for the modem. Please do not try and stick > in stuff faking responses, it just makes a nasty mess in the longer term > and I've already cleared the same out of a ton of drivers - with I note > no breakages of user space. I'm trying to get this driver working properly for a USB device that is being controlled by a Windows program running under WINE. Right now there are some ioctls being called by either WINE or the serial program on Windows that the driver isn't handling and so it's not working properly. This change was so that I could get feedback from the user with this situation to try to work it all out. I've now got a trace of an attempt and will work to try to implement the needed ioctls to get it running properly. thanks, greg k-h ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: USB: symbolserial: log the ioctl commands 2009-04-06 5:40 ` Greg KH @ 2009-04-06 9:16 ` Alan Cox 0 siblings, 0 replies; 3+ messages in thread From: Alan Cox @ 2009-04-06 9:16 UTC (permalink / raw) To: Greg KH; +Cc: Linux Kernel Mailing List > I'm trying to get this driver working properly for a USB device that is > being controlled by a Windows program running under WINE. Right now > there are some ioctls being called by either WINE or the serial program > on Windows that the driver isn't handling and so it's not working > properly. This change was so that I could get feedback from the user > with this situation to try to work it all out. In future perhaps you could keep your private debugging patches in your own tree as it would make it easier for anyone else. What you actually submitted was code which in the presence of the hardware gets autoloaded and allows people to spam the log files depending upon the distro serial permissions policy for USB dongles. > I've now got a trace of an attempt and will work to try to implement the > needed ioctls to get it running properly. Out of interest what does WINE think it needs ? Alan ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-06 9:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200903261929.n2QJTUX1009811@hera.kernel.org>
2009-03-26 19:44 ` USB: symbolserial: log the ioctl commands Alan Cox
2009-04-06 5:40 ` Greg KH
2009-04-06 9:16 ` Alan Cox
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox