03 Mar, 2010
1 commit
-
Stanse found unnecessary test in mxser_startup.
tty is dereferenced earlier, the test is superfluous. Remove it.
Signed-off-by: Jiri Slaby
Cc: Alan Cox
Signed-off-by: Andrew Morton
Signed-off-by: Greg Kroah-Hartman
12 Dec, 2009
2 commits
-
Propogate the init/shutdown mutex through the setserial logic. Use the proper
locks for the various bits still using the BKL. Kill the BKL in this driver.Updated to fix the bug noted by Dan Carpenter
Signed-off-by: Alan Cox
Signed-off-by: Greg Kroah-Hartman -
At first this looks a fairly trivial conversion but we can't quite push
everything into the right format yet. The open side is easy but care is needed
over the setserial methods. Fix up the locking now that we've adopted the
port->mutex locking rule for the initialization.Signed-off-by: Alan Cox
Signed-off-by: Greg Kroah-Hartman
20 Sep, 2009
4 commits
-
In moxa specific ASPP_OQUEUE ioctl command, they apparently want
only know whether there is space in transmitter hold register.So switch UART_LSR_TEMT to UART_LSR_THRE in that specific case
according to the change in 1.14 moxa drivers.Signed-off-by: Jiri Slaby
Signed-off-by: Greg Kroah-Hartman -
Add support for MOXA:0x1120 pci device. It's a 2-port device and differs
in no way from the others. So this turns out to be a trivial
pci_device_id change.Increase also the version number.
Signed-off-by: Jiri Slaby
Signed-off-by: Greg Kroah-Hartman -
This is used by various drivers not just serial and can be extracted
as commonalitySigned-off-by: Alan Cox
-
Prepare for the tty_port_close function by splitting out methods
Signed-off-by: Alan Cox
13 Jul, 2009
1 commit
-
* Remove smp_lock.h from files which don't need it (including some headers!)
* Add smp_lock.h to files which do need it
* Make smp_lock.h include conditional in hardirq.h
It's needed only for one kernel_locked() usage which is under CONFIG_PREEMPTThis will make hardirq.h inclusion cheaper for every PREEMPT=n config
(which includes allmodconfig/allyesconfig, BTW)Signed-off-by: Alexey Dobriyan
Signed-off-by: Linus Torvalds
25 Jun, 2009
1 commit
-
The kernel oopses if this flag is set.
[and neither driver should set it as they call tty_flip_buffer_push from IRQ
paths so have always been buggy]Signed-off-by: Chuck Ebbert
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds
11 Jun, 2009
1 commit
-
Some drivers implement this internally, others miss it out. Push the
behaviour into the core code as that way everyone will do it consistently.Update the dtr rts method to raise or lower depending upon flags. Having a
single method in this style fits most of the implementations more cleanly than
two funtions.We need this in place before we tackle the USB side
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds
10 Jun, 2009
1 commit
-
There's a bug in the mxser kernel module that still appears in the
2.6.29.4 kernel.mxser_get_ISA_conf takes a ioaddress as its first argument, by passing the
not of the ioaddr, you're effectively passing 0 which means it won't be
able to talk to an ISA card. I have tested this, and removing the !
fixes the problem.Cc: "Peter Botha"
Signed-off-by: Jiri Slaby
Acked-by: Alan Cox
Cc:
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
07 Apr, 2009
1 commit
-
mxser_check_modem_status is called with tty parameter, so the
reference should be increased by callers already -- for ioctl
syscall it is held whole time gap since open to close, for
interrupt, the reference count is increased in the irq handler.There is no tty_kref_put in that function, so this also fixes
a refcounting bug.Signed-off-by: Jiri Slaby
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds
03 Jan, 2009
5 commits
-
Again this is a lot of common code we can unify
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Start sucking more commonality out of the drivers into a single piece of
core code.Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
This moves another per device special out of what should be shared open
wait paths into private methodsSigned-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
This is the first step to generalising the various pieces of waiting logic
duplicated in all sorts of serial drivers.Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds
12 Nov, 2008
1 commit
-
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds
14 Oct, 2008
2 commits
-
Many tty drivers contain 'can't happen' checks against NULL pointers passed
in by the tty layer. These have never been possible to occur. Even more
importantly if they ever do occur we want to know as it would be a serious
bug.Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds
31 Jul, 2008
1 commit
-
The GET_MAJOR ioctl prints out a warning, make it ratelimited.
Signed-off-by: Jiri Slaby
Acked-by: Alan Cox
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
26 Jul, 2008
5 commits
-
- remove unused macro
- some whitespace cleanup
- useless debug prints removalSigned-off-by: Jiri Slaby
Acked-by: Alan Cox
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Remove a support of ISA addresses predefined at compile time. It is
unused (filled by zeroes) and prolongs the code. Don't initialize global
array and add `ioaddr' module param description.Signed-off-by: Jiri Slaby
Acked-by: Alan Cox
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
- use dev_* for printing in pci probe function
- move ISA p[rints directly into isa find function, do not postpone it.
Remove macros bound to it then.
- prepend some prints by "mxser: " to know what it belongs toSigned-off-by: Jiri Slaby
Acked-by: Alan Cox
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
- remove unused mxvar_diagflag
- move mxser_msr into the only user/function
- GMStatus, hmm, fix race-prone access to it. We need only one instance for
real, not MXSER_PORTS. Move it to MOXA_GETMSTATUS ioctl.
- mxser_mon_ext, almost the same, but alloc it on heap, since it has more than
2 kilos.
- fix indexing, `i' is not the index value, `i * MXSER_PORTS_PER_BOARD + j' isSigned-off-by: Jiri Slaby
Acked-by: Alan Cox
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
- remove break ctl from ioctl handler, it's never reached, since
tty_ops->break_ctl is defined (mxser break handling is done in software)
- mark MOXA_GET_MAJOR as deprecated
- fix TIOCGICOUNT (some retval non-checks of put_user). Use copy_to_user
to whole structure instead.Signed-off-by: Jiri Slaby
Acked-by: Alan Cox
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
23 Jul, 2008
3 commits
-
Add support for CP-102UF moxa card (update to 1.12 original driver) and
increment this driver version.(Somewhat reworked by alan@redhat.com to merge in with other patches)
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Some hardware needs to do break handling itself and may have partial
support only. Make break_ctl return an error code. Add a tty driver flag
so you can indicate driver hardware side break support.Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Old style ioctl break code can go
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds
21 Jul, 2008
2 commits
-
Move more bits into the tty_port structure
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Switch mxser to use the new tty_port structure
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds
30 Apr, 2008
4 commits
-
Signed-off-by: Christoph Hellwig
Signed-off-by: Jiri Slaby
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Signed-off-by: Alan Cox
Cc: Jiri Slaby
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
- Stop drivers calling their own flush method indirectly, it obfuscates code
and it will change soon anyway- A few more lock_kernel paths temporarily needed in some driver internal
waiting code- Remove private put_char method that does a write call for one char - we
have that anyway- Most but not yet all of the termios copy under lock fixing (some has other
dependencies to follow)- Note a few locking bugs in drivers found in the process
- Kill remaining [ab]users of TIOCG/SSOFTCAR in the driver, these must go to
fix the termios lockingSigned-off-by: Alan Cox
Cc: Jiri Slaby
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Push the BKL down into various internal routines in the driver ready to
remove it from the break, ioctl and other call points.Signed-off-by: Alan Cox
Cc: Jiri Slaby
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
08 Feb, 2008
4 commits
-
Add new card (0x1393:0x1143) support added in 1.11 original driver, also
allow rate change in set_serial_info ioctl (as per 1.11 too).Signed-off-by: Jiri Slaby
Reviewed-by: Alan Cox
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
(Old) mxser is obsoleted by mxser_new and scheduled for removal on Dec 2007.
Remove it by renaming mxser_new to mxser.Signed-off-by: Jiri Slaby
Reviewed-by: Alan Cox
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Signed-off-by: Alan Cox
Cc: Jiri Slaby
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Signed-off-by: Jiri Slaby
Cc: Alan Cox
Cc: Alan Cox
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
07 Feb, 2008
1 commit
-
Nothing should ever include this file.
Signed-off-by: Ralf Baechle
Acked-by: "Mike Frysinger"
Acked-by: "Bryan Wu"
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds