Skip to content
  1. Nov 08, 2017
    • Arvind Yadav's avatar
      tty: ehv_bytechan: fix spelling mistake · 57f5d648
      Arvind Yadav authored
      
      
      Trivial fix to spelling mistakes "interupt" -> "interrupt".
      
      Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      57f5d648
    • Thomas Rohloff's avatar
      tty: serial: meson: allow baud-rates lower than 9600 · 9b11f19e
      Thomas Rohloff authored
      
      
      Devices like DCF77 receivers need the baud-rate to be as low as 50.
      
      I have tested this on a Meson GXL device with uart_A.
      
      Cc: Jiri Slaby <jslaby@suse.com>
      Cc: Carlo Caione <carlo@caione.org>
      Cc: Kevin Hilman <khilman@baylibre.com>
      Cc: linux-amlogic@lists.infradead.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarThomas Rohloff <v10lator@myway.de>
      Reviewed-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9b11f19e
    • Ji-Ze Hong (Peter Hong)'s avatar
      serial: 8250_fintek: Fix crash with baud rate B0 · 07a708f0
      Ji-Ze Hong (Peter Hong) authored
      
      
      The 8250_fintek.c is support the Fintek F81866/F81216 with dynamic clock.
      But It'll generate "division by zero" exception and crash in
      fintek_8250_set_termios() with baud rate 0 on baudrate_table[i] % baud.
      
      It can be tested with following C code:
      
      	...
      	struct termios options;
      
      	tcgetattr(fd, &options);
      	...
      	options.c_cflag = CS8 | CREAD; /* baud rate 0 */
      	tcsetattr(fd, TCSANOW, &options);
      	tcflush(fd, TCIOFLUSH);
      
      Fixes: 195638b6 ("serial: 8250_fintek: UART dynamic clocksource on Fintek F81866")
      Reported-by: default avatarLukas Redlinger <rel+kernel@agilox.net>
      Cc: Lukas Redlinger <rel+kernel@agilox.net>
      Signed-off-by: default avatarJi-Ze Hong (Peter Hong) <hpeter+linux_kernel@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      07a708f0
    • Ricardo Ribalda Delgado's avatar
      serial: 8250_fintek: Disable delays for ports != 0 · 21c4e7f2
      Ricardo Ribalda Delgado authored
      
      
      According to the datasheet, only the first port supports delay before
      send and delay after send.
      
      Reported-by: default avatar"Ji-Ze Hong (Peter Hong)" <hpeter@gmail.com>
      Signed-off-by: default avatarRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      21c4e7f2
    • Ricardo Ribalda Delgado's avatar
      serial: 8250_fintek: Return -EINVAL on invalid configuration · 7ecc7701
      Ricardo Ribalda Delgado authored
      
      
      Hardware does not support having the same RTS level during RX and TX
      when RS485 mode is on (URA in Fintek terminology).
      
      The manufacturer has also confirmed that the delays are not enabled if
      the RS485 mode is not enabled.
      
      Therefore we should return -EINVAL if the user wants to have the same
      value for RTS_ON_SEND and RTS_AFTER_SEND.
      
      Cc: "Ji-Ze Hong (Peter Hong)" <hpeter@gmail.com>
      Cc: Lukas Wunner <lukas@wunner.de>
      Signed-off-by: default avatarRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7ecc7701
    • Greg Kroah-Hartman's avatar
      tty: Remove redundant license text · e5656d43
      Greg Kroah-Hartman authored
      
      
      Now that the SPDX tag is in all tty files, that identifies the license
      in a specific and legally-defined manner.  So the extra GPL text wording
      can be removed as it is no longer needed at all.
      
      This is done on a quest to remove the 700+ different ways that files in
      the kernel describe the GPL license text.  And there's unneeded stuff
      like the address (sometimes incorrect) for the FSF which is never
      needed.
      
      No copyright headers or other non-license-description text was removed.
      
      Cc: Jiri Slaby <jslaby@suse.com>
      Cc: James Hogan <jhogan@kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e5656d43
    • Greg Kroah-Hartman's avatar
      tty: serdev: Remove redundant license text · 4e17ff37
      Greg Kroah-Hartman authored
      
      
      Now that the SPDX tag is in all tty files, that identifies the license
      in a specific and legally-defined manner.  So the extra GPL text wording
      can be removed as it is no longer needed at all.
      
      This is done on a quest to remove the 700+ different ways that files in
      the kernel describe the GPL license text.  And there's unneeded stuff
      like the address (sometimes incorrect) for the FSF which is never
      needed.
      
      No copyright headers or other non-license-description text was removed.
      
      Cc: Rob Herring <robh@kernel.org>
      Cc: Jiri Slaby <jslaby@suse.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4e17ff37
    • Greg Kroah-Hartman's avatar
      tty: hvc: Remove redundant license text · a9f96f01
      Greg Kroah-Hartman authored
      
      
      Now that the SPDX tag is in all tty files, that identifies the license
      in a specific and legally-defined manner.  So the extra GPL text wording
      can be removed as it is no longer needed at all.
      
      This is done on a quest to remove the 700+ different ways that files in
      the kernel describe the GPL license text.  And there's unneeded stuff
      like the address (sometimes incorrect) for the FSF which is never
      needed.
      
      No copyright headers or other non-license-description text was removed.
      
      Cc: Jiri Slaby <jslaby@suse.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Chris Metcalf <cmetcalf@mellanox.com>
      Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a9f96f01
    • Greg Kroah-Hartman's avatar
      tty: serial: Remove redundant license text · 4793f2eb
      Greg Kroah-Hartman authored
      
      
      Now that the SPDX tag is in all tty files, that identifies the license
      in a specific and legally-defined manner.  So the extra GPL text wording
      can be removed as it is no longer needed at all.
      
      This is done on a quest to remove the 700+ different ways that files in
      the kernel describe the GPL license text.  And there's unneeded stuff
      like the address (sometimes incorrect) for the FSF which is never
      needed.
      
      No copyright headers or other non-license-description text was removed.
      
      Cc: Jiri Slaby <jslaby@suse.com>
      Cc: Eric Anholt <eric@anholt.net>
      Cc: Stefan Wahren <stefan.wahren@i2se.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Ray Jui <rjui@broadcom.com>
      Cc: Scott Branden <sbranden@broadcom.com>
      Cc: bcm-kernel-feedback-list@broadcom.com
      Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
      Cc: Helge Deller <deller@gmx.de>
      Cc: Joachim Eastwood <manabian@gmail.com>
      Cc: Matthias Brugger <matthias.bgg@gmail.com>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Cc: Tobias Klauser <tklauser@distanz.ch>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Vineet Gupta <vgupta@synopsys.com>
      Cc: Richard Genoud <richard.genoud@gmail.com>
      Cc: Alexander Shiyan <shc_work@mail.ru>
      Cc: Baruch Siach <baruch@tkos.co.il>
      Cc: Pat Gefre <pfg@sgi.com>
      Cc: "Guilherme G. Piccoli" <gpiccoli@linux.vnet.ibm.com>
      Cc: Jason Wessel <jason.wessel@windriver.com>
      Cc: Vladimir Zapolskiy <vz@mleia.com>
      Cc: Sylvain Lemieux <slemieux.tyco@gmail.com>
      Cc: Carlo Caione <carlo@caione.org>
      Cc: Kevin Hilman <khilman@baylibre.com>
      Cc: Liviu Dudau <liviu.dudau@arm.com>
      Cc: Sudeep Holla <sudeep.holla@arm.com>
      Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Cc: Andy Gross <andy.gross@linaro.org>
      Cc: David Brown <david.brown@linaro.org>
      Cc: "Andreas Färber" <afaerber@suse.de>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Kevin Cernekee <cernekee@gmail.com>
      Cc: Laxman Dewangan <ldewangan@nvidia.com>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Jonathan Hunter <jonathanh@nvidia.com>
      Cc: Barry Song <baohua@kernel.org>
      Cc: Patrice Chotard <patrice.chotard@st.com>
      Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
      Cc: Alexandre Torgue <alexandre.torgue@st.com>
      Cc: Chris Metcalf <cmetcalf@mellanox.com>
      Cc: Peter Korsgaard <jacmet@sunsite.dk>
      Cc: Timur Tabi <timur@tabi.org>
      Cc: Tony Prisk <linux@prisktech.co.nz>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Cc: "Sören Brinkmann" <soren.brinkmann@xilinx.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4793f2eb
    • Greg Kroah-Hartman's avatar
      tty: add SPDX identifiers to all remaining files in drivers/tty/ · e3b3d0f5
      Greg Kroah-Hartman authored
      
      
      It's good to have SPDX identifiers in all files to make it easier to
      audit the kernel tree for correct licenses.
      
      Update the drivers/tty files files with the correct SPDX license
      identifier based on the license text in the file itself.  The SPDX
      identifier is a legally binding shorthand, which can be used instead of
      the full boiler plate text.
      
      This work is based on a script and data from Thomas Gleixner, Philippe
      Ombredanne, and Kate Stewart.
      
      Cc: Jiri Slaby <jslaby@suse.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Chris Metcalf <cmetcalf@mellanox.com>
      Cc: Jiri Kosina <jikos@kernel.org>
      Cc: David Sterba <dsterba@suse.com>
      Cc: James Hogan <jhogan@kernel.org>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Eric Anholt <eric@anholt.net>
      Cc: Stefan Wahren <stefan.wahren@i2se.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Ray Jui <rjui@broadcom.com>
      Cc: Scott Branden <sbranden@broadcom.com>
      Cc: bcm-kernel-feedback-list@broadcom.com
      Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
      Cc: Helge Deller <deller@gmx.de>
      Cc: Joachim Eastwood <manabian@gmail.com>
      Cc: Matthias Brugger <matthias.bgg@gmail.com>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Cc: Tobias Klauser <tklauser@distanz.ch>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: Vineet Gupta <vgupta@synopsys.com>
      Cc: Richard Genoud <richard.genoud@gmail.com>
      Cc: Alexander Shiyan <shc_work@mail.ru>
      Cc: Baruch Siach <baruch@tkos.co.il>
      Cc: "Maciej W. Rozycki" <macro@linux-mips.org>
      Cc: "Uwe Kleine-König" <kernel@pengutronix.de>
      Cc: Pat Gefre <pfg@sgi.com>
      Cc: "Guilherme G. Piccoli" <gpiccoli@linux.vnet.ibm.com>
      Cc: Jason Wessel <jason.wessel@windriver.com>
      Cc: Vladimir Zapolskiy <vz@mleia.com>
      Cc: Sylvain Lemieux <slemieux.tyco@gmail.com>
      Cc: Carlo Caione <carlo@caione.org>
      Cc: Kevin Hilman <khilman@baylibre.com>
      Cc: Liviu Dudau <liviu.dudau@arm.com>
      Cc: Sudeep Holla <sudeep.holla@arm.com>
      Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Cc: Andy Gross <andy.gross@linaro.org>
      Cc: David Brown <david.brown@linaro.org>
      Cc: "Andreas Färber" <afaerber@suse.de>
      Cc: Kevin Cernekee <cernekee@gmail.com>
      Cc: Laxman Dewangan <ldewangan@nvidia.com>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Jonathan Hunter <jonathanh@nvidia.com>
      Cc: Barry Song <baohua@kernel.org>
      Cc: Patrice Chotard <patrice.chotard@st.com>
      Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
      Cc: Alexandre Torgue <alexandre.torgue@st.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Peter Korsgaard <jacmet@sunsite.dk>
      Cc: Timur Tabi <timur@tabi.org>
      Cc: Tony Prisk <linux@prisktech.co.nz>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Cc: "Sören Brinkmann" <soren.brinkmann@xilinx.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Kate Stewart <kstewart@linuxfoundation.org>
      Cc: Philippe Ombredanne <pombredanne@nexb.com>
      Cc: Jiri Slaby <jslaby@suse.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e3b3d0f5
    • Colin Ian King's avatar
      tty: serial: jsm: remove redundant pointer ts · 2e67c950
      Colin Ian King authored
      
      
      Pointer ts is assigned a value that is never read, ts is therefore
      redundant and can be removed. Cleans up clang warning:
      
      drivers/tty/serial/jsm/jsm_tty.c:285:2: warning: Value stored to 'ts'
      is never read
      
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Acked-by: default avatarGuilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2e67c950
    • Gimcuan Hui's avatar
      tty: serial: jsm: add space before the open parenthesis '(' · 8191762a
      Gimcuan Hui authored
      
      
      This patch fixes the checkpatch.pl complains:
      
      space required before the open parenthesis '('.
      
      Signed-off-by: default avatarGimcuan Hui <gimcuan@gmail.com>
      Acked-by: default avatarGuilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8191762a
    • Gimcuan Hui's avatar
      tty: serial: jsm: fix coding style · 67c6f4b6
      Gimcuan Hui authored
      
      
      This patch fixes the checkpatch.pl complain:
      
      ERROR: else should follow close brace '}'.
      
      Signed-off-by: default avatarGimcuan Hui <gimcuan@gmail.com>
      Acked-by: default avatarGuilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      67c6f4b6
    • Gimcuan Hui's avatar
      tty: serial: jsm: delete space between function name and '(' · 24719a8d
      Gimcuan Hui authored
      
      
      This patch fixes checkpatch.pl warning:
      
      space prohibited between function name and open parenthesis '('.
      
      Signed-off-by: default avatarGimcuan Hui <gimcuan@gmail.com>
      Acked-by: default avatarGuilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      24719a8d
    • Gimcuan Hui's avatar
      tty: serial: jsm: add blank line after declarations · d13551d1
      Gimcuan Hui authored
      
      
      This patch fixes checkpatch.pl warning:
      
      Missing a blank line after declarations.
      
      Signed-off-by: default avatarGimcuan Hui <gimcuan@gmail.com>
      Acked-by: default avatarGuilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d13551d1
    • Gimcuan Hui's avatar
      tty: serial: jsm: change the type of local variable · c100a3f1
      Gimcuan Hui authored
      
      
      The return type of jsm_get_mstat was int, and the local var result
      was for the return should be int, make the change.
      
      This patch fixes the checkpatch.pl warning:
      Prefer 'unsigned int' to bare use of 'unsigned'.
      
      Signed-off-by: default avatarGimcuan Hui <gimcuan@gmail.com>
      Acked-by: default avatarGuilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c100a3f1
  2. Nov 04, 2017
  3. Oct 23, 2017