07 Aug, 2020

1 commit

  • Pull tty/serial updates from Greg KH:
    "Here is the large set of TTY and Serial driver patches for 5.9-rc1.

    Lots of bugfixes in here, thanks to syzbot fuzzing for serial and vt
    and console code.

    Other highlights include:

    - much needed vt/vc code cleanup from Jiri Slaby

    - 8250 driver fixes and additions

    - various serial driver updates and feature enhancements

    - locking cleanup for serial/console initializations

    - other minor cleanups

    All of these have been in linux-next with no reported issues"

    * tag 'tty-5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (90 commits)
    MAINTAINERS: enlist Greg formally for console stuff
    vgacon: Fix for missing check in scrollback handling
    Revert "serial: 8250: Let serial core initialise spin lock"
    serial: 8250: Let serial core initialise spin lock
    tty: keyboard, do not speculate on func_table index
    serial: stm32: Add RS485 RTS GPIO control
    serial: 8250_dw: Fix common clocks usage race condition
    serial: 8250_dw: Pass the same rate to the clk round and set rate methods
    serial: 8250_dw: Simplify the ref clock rate setting procedure
    serial: 8250: Add 8250 port clock update method
    tty: serial: imx: add imx earlycon driver
    tty: serial: imx: enable imx serial console port as module
    tty/synclink: remove leftover bits of non-PCI card support
    tty: Use the preferred form for passing the size of a structure type
    tty: Fix identation issues in struct serial_struct32
    tty: Avoid the use of one-element arrays
    serial: msm_serial: add sparse context annotation
    serial: pmac_zilog: add sparse context annotation
    newport_con: vc_color is now in state
    serial: imx: use hrtimers for rs485 delays
    ...

    Linus Torvalds
     

29 Jul, 2020

1 commit


24 Jun, 2020

1 commit

  • There are two copies of some members of struct vc_data. This is because
    we need to save them and restore later. Move these memebers to a
    separate structure called vc_state. So now instead of members like:
    vc_x, vc_y and vc_saved_x, vc_saved_y
    we have
    state and saved_state (of type: struct vc_state)
    containing
    state.x, state.y and saved_state.x, saved_state.y

    This change:
    * makes clear what is saved & restored
    * eases save & restore by using memcpy (see save_cur and restore_cur)

    Finally, we document the newly added struct vc_state using kernel-doc.

    Signed-off-by: Jiri Slaby
    Link: https://lore.kernel.org/r/20200615074910.19267-1-jslaby@suse.cz
    Signed-off-by: Greg Kroah-Hartman

    Jiri Slaby
     

14 Jun, 2020

1 commit

  • Since commit 84af7a6194e4 ("checkpatch: kconfig: prefer 'help' over
    '---help---'"), the number of '---help---' has been gradually
    decreasing, but there are still more than 2400 instances.

    This commit finishes the conversion. While I touched the lines,
    I also fixed the indentation.

    There are a variety of indentation styles found.

    a) 4 spaces + '---help---'
    b) 7 spaces + '---help---'
    c) 8 spaces + '---help---'
    d) 1 space + 1 tab + '---help---'
    e) 1 tab + '---help---' (correct indentation)
    f) 1 tab + 1 space + '---help---'
    g) 1 tab + 2 spaces + '---help---'

    In order to convert all of them to 1 tab + 'help', I ran the
    following commend:

    $ find . -name 'Kconfig*' | xargs sed -i 's/^[[:space:]]*---help---/\thelp/'

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

11 Feb, 2020

1 commit

  • We don't call braille_register_console() without CON_BRL flag set.
    And the _braille_unregister_console() already tests for console to have
    CON_BRL flag. No need to repeat this in braille_unregister_console().

    Drop the repetitive checks from Braille console driver.

    Link: http://lkml.kernel.org/r/20200203133130.11591-1-andriy.shevchenko@linux.intel.com
    To: linux-kernel@vger.kernel.org
    To: Steven Rostedt
    Signed-off-by: Andy Shevchenko
    Reviewed-by: Petr Mladek
    Reviewed-by: Sergey Senozhatsky
    Signed-off-by: Petr Mladek

    Andy Shevchenko
     

24 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version this program is distributed in the
    hope that it will be useful but without any warranty without even
    the implied warranty of merchantability or fitness for a particular
    purpose see the gnu general public license for more details you
    should have received a copy of the gnu general public license along
    with the program if not write to the free software foundation inc
    675 mass ave cambridge ma 02139 usa

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 2 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Kate Stewart
    Reviewed-by: Allison Randal
    Reviewed-by: Richard Fontana
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190520071859.572421635@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

21 May, 2019

1 commit


02 Nov, 2017

1 commit

  • Many source files in the tree are missing licensing information, which
    makes it harder for compliance tools to determine the correct license.

    By default all files without license information are under the default
    license of the kernel, which is GPL version 2.

    Update the files which contain no license information with the 'GPL-2.0'
    SPDX license identifier. The SPDX identifier is a legally binding
    shorthand, which can be used instead of the full boiler plate text.

    This patch is based on work done by Thomas Gleixner and Kate Stewart and
    Philippe Ombredanne.

    How this work was done:

    Patches were generated and checked against linux-4.14-rc6 for a subset of
    the use cases:
    - file had no licensing information it it.
    - file was a */uapi/* one with no licensing information in it,
    - file was a */uapi/* one with existing licensing information,

    Further patches will be generated in subsequent months to fix up cases
    where non-standard license headers were used, and references to license
    had to be inferred by heuristics based on keywords.

    The analysis to determine which SPDX License Identifier to be applied to
    a file was done in a spreadsheet of side by side results from of the
    output of two independent scanners (ScanCode & Windriver) producing SPDX
    tag:value files created by Philippe Ombredanne. Philippe prepared the
    base worksheet, and did an initial spot review of a few 1000 files.

    The 4.13 kernel was the starting point of the analysis with 60,537 files
    assessed. Kate Stewart did a file by file comparison of the scanner
    results in the spreadsheet to determine which SPDX license identifier(s)
    to be applied to the file. She confirmed any determination that was not
    immediately clear with lawyers working with the Linux Foundation.

    Criteria used to select files for SPDX license identifier tagging was:
    - Files considered eligible had to be source code files.
    - Make and config files were included as candidates if they contained >5
    lines of source
    - File already had some variant of a license header in it (even if
    Reviewed-by: Philippe Ombredanne
    Reviewed-by: Thomas Gleixner
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

01 Aug, 2013

1 commit


09 Mar, 2012

1 commit

  • Keyboard struct lifetime is easy, but the locking is not and is completely
    ignored by the existing code. Tackle this one head on

    - Make the kbd_table private so we can run down all direct users
    - Hoick the relevant ioctl handlers into the keyboard layer
    - Lock them with the keyboard lock so they don't change mid keypress
    - Add helpers for things like console stop/start so we isolate the poking
    around properly
    - Tweak the braille console so it still builds

    There are a couple of FIXME locking cases left for ioctls that are so hideous
    they should be addressed in a later patch. After this patch the kbd_table is
    private and all the keyboard jiggery pokery is in one place.

    This update fixes speakup and also a memory leak in the original.

    Signed-off-by: Alan Cox
    Signed-off-by: Greg Kroah-Hartman

    Alan Cox
     

13 Jan, 2012

1 commit


12 Dec, 2009

1 commit


03 Oct, 2008

1 commit


09 May, 2008

1 commit


30 Apr, 2008

1 commit

  • This adds a minimalistic braille screen reader support. This is meant to
    be used by blind people e.g. on boot failures or when / cannot be mounted
    etc and thus the userland screen readers can not work.

    [akpm@linux-foundation.org: fix exports]
    Signed-off-by: Samuel Thibault
    Cc: Jiri Kosina
    Cc: Dmitry Torokhov
    Acked-by: Alan Cox
    Cc: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Samuel Thibault