lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200213091600.554-1-uwe@kleine-koenig.org>
Date:   Thu, 13 Feb 2020 10:15:56 +0100
From:   Uwe Kleine-König <uwe@...ine-koenig.org>
To:     Jacek Anaszewski <jacek.anaszewski@...il.com>,
        Pavel Machek <pavel@....cz>, Dan Murphy <dmurphy@...com>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Jiri Slaby <jslaby@...e.com>
Cc:     Uwe Kleine-König 
        <u.kleine-koenig@...gutronix.de>, linux-leds@...r.kernel.org,
        linux-kernel@...r.kernel.org, kernel@...gutronix.de,
        linux-serial@...r.kernel.org
Subject: [PATCH v6 0/4] leds: trigger: implement a tty trigger

From: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>

Hello,

This is v6 of my quest to introduce ledtriggers for UARTs. The previous
series is available at

	http://lore.kernel.org/r/20191219093947.15502-1-u.kleine-koenig@pengutronix.de

The changes compared to that are that parsing of the dev parameter is
more strict and that I set brightness directly from the kworker instead
of using led_blink_set_oneshot which makes use of another kworker. (Both
requested by Pavel Machek.)

For the former I introduced a new helper kstrtodev_t() in the spirit of
kstrtoul() to implement the stricter parsing (instead of the lax one
using plain sscanf() in v5).

Best regards
Uwe

Uwe Kleine-König (4):
  lib: new helper kstrtodev_t()
  tty: rename tty_kopen() and add new function tty_kopen_shared()
  tty: new helper function tty_get_icount()
  leds: trigger: implement a tty trigger

 .../ABI/testing/sysfs-class-led-trigger-tty   |   6 +
 drivers/leds/trigger/Kconfig                  |   7 +
 drivers/leds/trigger/Makefile                 |   1 +
 drivers/leds/trigger/ledtrig-tty.c            | 159 ++++++++++++++++++
 drivers/staging/speakup/spk_ttyio.c           |   2 +-
 drivers/tty/tty_io.c                          |  87 +++++++---
 include/linux/kdev_t.h                        |   2 +
 include/linux/kernel.h                        |   1 +
 include/linux/tty.h                           |   7 +-
 lib/kstrtox.c                                 |  46 +++++
 10 files changed, 293 insertions(+), 25 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-class-led-trigger-tty
 create mode 100644 drivers/leds/trigger/ledtrig-tty.c


base-commit: 0bf999f9c5e74c7ecf9dafb527146601e5c848b9
-- 
2.24.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ