27 Sep, 2013
1 commit
-
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.Signed-off-by: Jingoo Han
Signed-off-by: Greg Kroah-Hartman
12 Dec, 2012
1 commit
-
Pull TTY/Serial merge from Greg Kroah-Hartman:
"Here's the big tty/serial tree set of changes for 3.8-rc1.Contained in here is a bunch more reworks of the tty port layer from
Jiri and bugfixes from Alan, along with a number of other tty and
serial driver updates by the various driver authors.Also, Jiri has been coerced^Wconvinced to be the co-maintainer of the
TTY layer, which is much appreciated by me.All of these have been in the linux-next tree for a while.
Signed-off-by: Greg Kroah-Hartman "
Fixed up some trivial conflicts in the staging tree, due to the fwserial
driver having come in both ways (but fixed up a bit in the serial tree),
and the ioctl handling in the dgrp driver having been done slightly
differently (staging tree got that one right, and removed both
TIOCGSOFTCAR and TIOCSSOFTCAR).* tag 'tty-3.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (146 commits)
staging: sb105x: fix potential NULL pointer dereference in mp_chars_in_buffer()
staging/fwserial: Remove superfluous free
staging/fwserial: Use WARN_ONCE when port table is corrupted
staging/fwserial: Destruct embedded tty_port on teardown
staging/fwserial: Fix build breakage when !CONFIG_BUG
staging: fwserial: Add TTY-over-Firewire serial driver
drivers/tty/serial/serial_core.c: clean up HIGH_BITS_OFFSET usage
staging: dgrp: dgrp_tty.c: Audit the return values of get/put_user()
staging: dgrp: dgrp_tty.c: Remove the TIOCSSOFTCAR ioctl handler from dgrp driver
serial: ifx6x60: Add modem power off function in the platform reboot process
serial: mxs-auart: unmap the scatter list before we copy the data
serial: mxs-auart: disable the Receive Timeout Interrupt when DMA is enabled
serial: max310x: Setup missing "can_sleep" field for GPIO
tty/serial: fix ifx6x60.c declaration warning
serial: samsung: add devicetree properties for non-Exynos SoCs
serial: samsung: fix potential soft lockup during uart write
tty: vt: Remove redundant null check before kfree.
tty/8250 Add check for pci_ioremap_bar failure
tty/8250 Add support for Commtech's Fastcom Async-335 and Fastcom Async-PCIe cards
tty/8250 Add XR17D15x devices to the exar_handle_irq override
...
22 Nov, 2012
4 commits
-
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.Signed-off-by: Bill Pemberton
Cc: "Michał Mirosław"
Cc: Wolfram Sang
Cc: Eric Piel
Cc: Jiri Slaby
Signed-off-by: Greg Kroah-Hartman -
CONFIG_HOTPLUG is going away as an option so __devinitconst is no
longer needed.Signed-off-by: Bill Pemberton
Signed-off-by: Greg Kroah-Hartman -
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.Signed-off-by: Bill Pemberton
Cc: "Michał Mirosław"
Cc: Eric Piel
Cc: Jiri Slaby
Signed-off-by: Greg Kroah-Hartman -
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.Signed-off-by: Bill Pemberton
Cc: "Michał Mirosław"
Cc: Wolfram Sang
Cc: Eric Piel
Cc: Jiri Slaby
Signed-off-by: Greg Kroah-Hartman
16 Nov, 2012
1 commit
-
After commit "TTY: move tty buffers to tty_port", the tty buffers are
not freed in some drivers. This is because tty_port_destructor is not
called whenever a tty_port is freed. This was an assumption I counted
with but was unfortunately untrue. So fix the drivers to fulfil this
assumption.To be sure, the TTY buffers (and later some stuff) are gone along with
the tty_port, we have to call tty_port_destroy at tear-down places.
This is mostly where the structure containing a tty_port is freed.
This patch does exactly that -- put tty_port_destroy at those places.Signed-off-by: Jiri Slaby
Signed-off-by: Greg Kroah-Hartman
11 Aug, 2012
8 commits
-
So now we have enough of tty_ports, so we can signal the TTY layer to
use them by tty_port_register_device.The upside is that we look like we can introduce tty_port_easy_open
and put it directly as tty_operations->open to drivers doing nothing
in open and using tty_port_register_device. Because the easy open can
obtain a tty_port rather easily from a tty now. Heh, what a nice
by-product.Signed-off-by: Jiri Slaby
Cc: J Freyensee
Signed-off-by: Greg Kroah-Hartman -
We now have *one* tty_port for both TTYs. How this was supposed to
work? Change it to have a tty_port for each of TTYs.Signed-off-by: Jiri Slaby
Cc: J Freyensee
Signed-off-by: Greg Kroah-Hartman -
Fail paths in ->probe and pti_init are incomplete. Fix that by adding
proper clean-up paths.Note that we used to leak tty_driver on module unload. This is fixed
here too.tty_unregister_driver needs not retval checking, so remove that.
Signed-off-by: Jiri Slaby
Cc: J Freyensee
Signed-off-by: Greg Kroah-Hartman -
Currently, probe initializes some parts. Then, some of them are
unwound in ->remove, some in module_exit. Let us do the opposite of
whole ->probe in ->remove.Signed-off-by: Jiri Slaby
Cc: J Freyensee
Signed-off-by: Greg Kroah-Hartman -
The function is lost somewhere in the forest. Move it to have it along
with probe and other pci_driver stuff.Signed-off-by: Jiri Slaby
Cc: J Freyensee
Signed-off-by: Greg Kroah-Hartman -
Ioremap space is different to iomap. ->probe function uses ioremap,
but ->remove calls pci_iounmap. That one is illegal. Fix that by using
iounmap.Signed-off-by: Jiri Slaby
Cc: J Freyensee
Signed-off-by: Greg Kroah-Hartman -
As we set drvdata unconditionally in ->probe, we need not check if it
is NULL. Let us remove the check.Signed-off-by: Jiri Slaby
Cc: J Freyensee
Signed-off-by: Greg Kroah-Hartman -
It is annotated as __devinitconst. Despite the annotation is useless
in most cases, const keyword is misssing there. So we are placing
non-const data into rodata section. Fix that now.Signed-off-by: Jiri Slaby
Cc: J Freyensee
Signed-off-by: Greg Kroah-Hartman
19 Apr, 2012
1 commit
-
Drivers that refer to a __devexit function in an operations
structure need to annotate that pointer with __devexit_p so it
is replaced with a NULL pointer when the section gets discarded.Signed-off-by: Arnd Bergmann
Signed-off-by: Mathieu Poirier
Signed-off-by: Greg Kroah-Hartman
09 Mar, 2012
2 commits
-
All num, magic and owner are set by alloc_tty_driver. No need to
re-set them on each allocation site.pti driver sets something different to what it passes to
alloc_tty_driver. It is not a bug, since we don't use the lines
parameter in any way. Anyway this is fixed, and now we do the right
thing.Signed-off-by: Jiri Slaby
Acked-by: Tilman Schmidt
Signed-off-by: Greg Kroah-Hartman -
It was added back in 2004 and never used for anything real. Remove the
only assignment in the tree as well.Signed-off-by: Jiri Slaby
Signed-off-by: Greg Kroah-Hartman
03 Feb, 2012
1 commit
-
Use the helper in the rest of the tty drivers. This is a simple
replacement.Signed-off-by: Jiri Slaby
Acked-by: Alan Cox
Signed-off-by: Greg Kroah-Hartman
15 Sep, 2011
1 commit
-
In drivers/misc/pti.c::pti_control_frame_built_and_sent() we assign 'comm'
to 'thread_name_p' if (!thread_name). The problem is that 'comm' then
goes out of scope and later we use 'thread_name_p' which now refers to an
out-of-scope variable. To fix that, simply move 'comm' up to have
function scope.Signed-off-by: Jesper Juhl
Cc: Greg Kroah-Hartman
Cc: J Freyensee
Cc: Jeremy Rocher
Cc: Sergei Trofimovich
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
26 Aug, 2011
1 commit
-
Found on allmodconfig build (ARCH=alpha)
drivers/misc/pti.c: In function 'get_id':
drivers/misc/pti.c:249: error: implicit declaration of function 'kmalloc'
drivers/misc/pti.c: In function 'pti_char_write':
drivers/misc/pti.c:658: error: implicit declaration of function 'copy_from_user'Signed-off-by: Sergei Trofimovich
Cc: Greg Kroah-Hartman
Cc: J Freyensee
Cc: Jeremy Rocher
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
26 Jul, 2011
2 commits
-
* 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6: (26 commits)
amba pl011: workaround for uart registers lockup
n_gsm: fix the wrong FCS handling
pch_uart: add missing comment about OKI ML7223
pch_uart: Add MSI support
tty: fix "IRQ45: nobody cared"
PTI feature to allow user to name and mark masterchannel request.
0 for o PTI Makefile bug.
tty: serial: samsung.c remove legacy PM code.
SERIAL: SC26xx: Fix link error.
serial: mrst_max3110: initialize waitqueue earlier
mrst_max3110: Change max missing message priority.
tty: s5pv210: Add delay loop on fifo reset function for UART
tty/serial: Fix XSCALE serial ports, e.g. ce4100
serial: bfin_5xx: fix off-by-one with resource size
drivers/tty: use printk_ratelimited() instead of printk_ratelimit()
tty: n_gsm: Added refcount usage to gsm_mux and gsm_dlci structs
tty: n_gsm: Add raw-ip support
tty: n_gsm: expose gsmtty device nodes at ldisc open time
pch_phub: Fix register miss-setting issue
serial: 8250, increase PASS_LIMIT
... -
…/gregkh/driver-core-2.6
* 'driver-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
updated Documentation/ja_JP/SubmittingPatches
debugfs: add documentation for debugfs_create_x64
uio: uio_pdrv_genirq: Add OF support
firmware: gsmi: remove sysfs entries when unload the module
Documentation/zh_CN: Fix messy code file email-clients.txt
driver core: add more help description for "path to uevent helper"
driver-core: modify FIRMWARE_IN_KERNEL help message
driver-core: Kconfig grammar corrections in firmware configuration
DOCUMENTATION: Replace create_device() with device_create().
DOCUMENTATION: Update overview.txt in Doc/driver-model.
pti: pti_tty_install documentation mispelling.
02 Jul, 2011
1 commit
-
This feature addition provides a new parameter in
pti_request_masterchannel() to allow the user
to provide their own name to mark the request when
the trace is viewed in a PTI SW trace viewer
(like MPTA). If a name is not provided and
NULL is provided, the 'current' process name is used.
API function header documentation documents this.Signed-off-by: Jeremy Rocher
Signed-off-by: J Freyensee
Signed-off-by: Greg Kroah-Hartman
08 Jun, 2011
4 commits
-
This patch tidies up the documentation for pti_tty_install()
function.Signed-off-by: J Freyensee
Signed-off-by: Greg Kroah-Hartman -
This patch fixes a semantics issue in the pti_tty_cleanup()
routine.Signed-off-by: J Freyensee
Signed-off-by: Greg Kroah-Hartman -
This patch fixes a memory leak that can occur in the error case
ENXIO is returned in the pti_tty_install() routine.Signed-off-by: J Freyensee
Signed-off-by: Greg Kroah-Hartman -
This patch fixes a double-free error that will not always be
seen unless /dev/pti char interface is stressed.Signed-off-by: J Freyensee
Signed-off-by: Greg Kroah-Hartman
14 May, 2011
1 commit
-
The PTI (Parallel Trace Interface) driver directs
trace data routed from various parts in the system out
through an Intel Penwell PTI port and out of the mobile
device for analysis with a debugging tool (Lauterbach or Fido).
Though n_tracesink and n_tracerouter line discipline drivers
are used to extract modem tracing data to the PTI driver
and other parts of an Intel mobile solution, the PTI driver
can be used independent of n_tracesink and n_tracerouter.You should select this driver if the target kernel is meant for
an Intel Atom (non-netbook) mobile device containing a MIPI
P1149.7 standard implementation.Signed-off-by: J Freyensee
Signed-off-by: Greg Kroah-Hartman