From: Johan Hovold <johan@kernel.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Rob Herring <robh@kernel.org>, Jiri Slaby <jslaby@suse.com>,
linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org,
Johan Hovold <johan@kernel.org>
Subject: [PATCH v2 0/2] serdev: fix broken lifetime assumptions
Date: Thu, 18 May 2017 17:32:59 +0200 [thread overview]
Message-ID: <20170518153301.28885-1-johan@kernel.org> (raw)
This series fixes a number of issues with the new serdev code, which was
based on incorrect tty-port lifetime assumptions.
The first patch in v1 of this series disables serdev support by reverting the
patch which hooked into the tty layer in a broken way that leads to crashes and
leaks when deregistering devices. That one has now been applied to tty-linus
with a stable tag (for v4.11).
The remaining two patches again re-enables serdev (first enabled in 4.11, but
soon reverted in stable) for a subset of tty drivers by adding adding a new
interface for registering serdev devices and using that in serial core only.
More details can be found in the individual commit messages.
Johan
Changes in v2
- rebase on tty-linus
- drop first two patches that have already been applied
- remove a stray newline in patch 1/2
- add Rob's reviewed-by tag
Johan Hovold (2):
tty/serdev: add serdev registration interface
serial: enable serdev support
drivers/tty/serdev/serdev-ttyport.c | 6 ++-
drivers/tty/serial/serial_core.c | 4 +-
drivers/tty/tty_port.c | 75 +++++++++++++++++++++++++++++++++++++
include/linux/serdev.h | 7 +++-
include/linux/tty.h | 9 +++++
5 files changed, 95 insertions(+), 6 deletions(-)
--
2.13.0
next reply other threads:[~2017-05-18 15:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-18 15:32 Johan Hovold [this message]
2017-05-18 15:33 ` [PATCH v2 1/2] tty/serdev: add serdev registration interface Johan Hovold
2017-05-18 15:33 ` [PATCH v2 2/2] serial: enable serdev support Johan Hovold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170518153301.28885-1-johan@kernel.org \
--to=johan@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=jslaby@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.