From patchwork Mon Jan 16 22:54:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 91579 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp232830qgi; Mon, 16 Jan 2017 14:54:44 -0800 (PST) X-Received: by 10.84.135.34 with SMTP id 31mr53202332pli.50.1484607283996; Mon, 16 Jan 2017 14:54:43 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y5si22841525pgf.172.2017.01.16.14.54.43; Mon, 16 Jan 2017 14:54:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750996AbdAPWyl (ORCPT + 2 others); Mon, 16 Jan 2017 17:54:41 -0500 Received: from mail-ot0-f194.google.com ([74.125.82.194]:36657 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750877AbdAPWyj (ORCPT ); Mon, 16 Jan 2017 17:54:39 -0500 Received: by mail-ot0-f194.google.com with SMTP id 36so7676860otx.3; Mon, 16 Jan 2017 14:54:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Fin+WshxpTWRnxUSpo0d9pgV7EakXqYnqMHC0WLMHmI=; b=jUQLCisAUc5tEMovFuR0VUBRIAd19yNoU21+QUeB9ymlSHoKheleLZx/UK9kBxh4uj IjxZ3aRW2k55ix2D37wMwIyBv+0dIUz0hoKNvynkRjJ/HJMDLfLoEpq+RNztnx/+DJi5 rq3ItLYisx0KWwlzKcPy6iJqZMrWpHOkn1Yi2mbMwJ9rYoRRA7pdU4CL1rb6jTBXrjQE x2e99nPJuBwtSsEqyQhM2nZc+9pJT3M04aNHfRyBa4RaMScH6BIMTPRNDMAlvzNc11Wc jJJYEAfRbG8nBqMWlhZ0yFAg5gi5kVO4h1qX9pPv8Sb4de4PwXmoHo/mcAgrwh8qmcKx 2BXQ== X-Gm-Message-State: AIkVDXKuXD5St1yTcj0JWzMFu5THYnhXQpZEyiEn3ZxmNKdECfcmQA1rhizalUwU8Heagg== X-Received: by 10.157.9.238 with SMTP id 43mr18658977otz.124.1484607278899; Mon, 16 Jan 2017 14:54:38 -0800 (PST) Received: from rob-hp-laptop.herring.priv (72-48-98-129.dyn.grandenetworks.net. [72.48.98.129]) by smtp.googlemail.com with ESMTPSA id s125sm11601254oia.0.2017.01.16.14.54.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jan 2017 14:54:37 -0800 (PST) From: Rob Herring To: Greg Kroah-Hartman , Marcel Holtmann , Jiri Slaby , Sebastian Reichel , Arnd Bergmann , "Dr . H . Nikolaus Schaller" , Peter Hurley , Andy Shevchenko , Alan Cox Cc: Loic Poulain , Pavel Machek , NeilBrown , Linus Walleij , linux-bluetooth@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/9] Serial slave device bus Date: Mon, 16 Jan 2017 16:54:27 -0600 Message-Id: <20170116225436.17505-1-robh@kernel.org> X-Mailer: git-send-email 2.10.1 Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Here's a new version of the serdev bus support with all the review feedback so far incorporated. I've left it named serdev for now pending any further votes one way or the other, but I did rename the sysfs visible portions to "serial". There's still some discussion about what to do with devices that pass thru data to userspace unmodified like GPS and could still use tty device for the data path. IMO, we should treat this as a separate problem following this series. Drivers we want to convert to serdev and already in the kernel don't need this functionality. I need a SoB from Alan on his patch 2 and would like review from Alan and/or Peter on the locking in patch 5. I have hacked up versions of the BT ldisc and TI ST drivers moved over to use the serdev bus. I have BT working on the HiKey board which has TI BT. With the serdev bus support, it eliminates the need for the TI userspace UIM daemon. I've made some progress cleaning up the TI-ST into proper patches and also got it working at 3Mbps. Changelog is in individual patches. Previous version is here[1]. This series and the mentioned drivers can be found here[2]. Rob [1] https://lkml.org/lkml/2017/1/6/411 [2] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git serial-bus-v3 Alan Cox (1): tty_port: allow a port to be opened with a tty that has no file handle Rob Herring (8): tty: move the non-file related parts of tty_release to new tty_release_struct tty_port: make tty_port_register_device wrap tty_port_register_device_attr tty: constify tty_ldisc_receive_buf buffer pointer tty_port: Add port client functions dt/bindings: Add a serial/UART attached device binding serdev: Introduce new bus for serial attached devices serdev: add a tty port controller driver tty_port: register tty ports with serdev bus .../devicetree/bindings/serial/slave-device.txt | 36 ++ MAINTAINERS | 8 + drivers/char/Kconfig | 1 + drivers/tty/Makefile | 1 + drivers/tty/serdev/Kconfig | 16 + drivers/tty/serdev/Makefile | 5 + drivers/tty/serdev/core.c | 421 +++++++++++++++++++++ drivers/tty/serdev/serdev-ttyport.c | 240 ++++++++++++ drivers/tty/tty_buffer.c | 19 +- drivers/tty/tty_io.c | 52 ++- drivers/tty/tty_port.c | 58 ++- include/linux/serdev.h | 234 ++++++++++++ include/linux/tty.h | 12 +- 13 files changed, 1062 insertions(+), 41 deletions(-) create mode 100644 Documentation/devicetree/bindings/serial/slave-device.txt create mode 100644 drivers/tty/serdev/Kconfig create mode 100644 drivers/tty/serdev/Makefile create mode 100644 drivers/tty/serdev/core.c create mode 100644 drivers/tty/serdev/serdev-ttyport.c create mode 100644 include/linux/serdev.h -- 2.10.1 -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html