Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp54800imm; Tue, 12 Jun 2018 18:21:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLIv6w2U3M8Arh4naZs9Gligw1ddHpNfaFIchg2yNa+nF93ba1SkqH2TITKaTBuR4ZwAiqD X-Received: by 2002:a65:6252:: with SMTP id q18-v6mr2335381pgv.106.1528852877556; Tue, 12 Jun 2018 18:21:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528852877; cv=none; d=google.com; s=arc-20160816; b=TQye6bw/vyuXi23a9awkt8bTqDPb6MVdHJuYimBwoq/Y7DRBsgFVh19BOa6CeMupH8 3GbHy+3b5AkVHt55Qf+flpZlIhv21jUnOOHmJOyqz/x2D0l6gWvkEc4uCqvIm5wWqo6r d56hgzfgcFaQ4MjK+8hSZHSGyAYEpxKz1C7s5vsEgTThTGbwGeTgX/vc1k2CR3jOywSs y8KSbjOzk8XpN2u/RInYd9zFK0rmaqYqaXioYkw/EIhakIvPFm+YXGP9VCRvF2m4FJZy u/tfVJa4V+LrrkKgMY7EHwp8NnAjvLbF7AQPa8YC6gA63jOiJCK9tE9oQ2r0pqHpS76Q iu9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Xj1HkZfmAHAtaMx5PntjsIgP2wCX40gvB3d87p27/H8=; b=Z0i9NK7JzKqgr/rdwTuEJXbMVLpcRnOjEgtOzqO62ru9OJ4zcbR8wGVE6mclU82kSX EynJ/6nZWLGBX4Tc6bqQ61c7VWdiEoWjWHZFiaMaj+nFuWShbuZ/ktBMtDVemtE6BWGI LjQdHtJQ+h2iX4zHAKJOTkHLZJ4vk8/q3AS7mty63g/dRR0zm/OQcHsux6SCzPVjc0Lw HhbUtRhfIbaYesiUgY4MjnLYoT5YjRB0cyJ8EQolhdNPcGu7CSS7hjXBgmDoXlh8BQfU tI5Dxxdn53/DGv/V/UlAT6ojk0+nkH4V4FNqrla0VKCG/jph9P8o2UxNtkw02NFkTpet fryg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="WTG/jt6z"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v73-v6si1430496pfi.22.2018.06.12.18.21.02; Tue, 12 Jun 2018 18:21:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="WTG/jt6z"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935106AbeFMBU0 (ORCPT + 99 others); Tue, 12 Jun 2018 21:20:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:48512 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935007AbeFMBUY (ORCPT ); Tue, 12 Jun 2018 21:20:24 -0400 Received: from mail-it0-f49.google.com (mail-it0-f49.google.com [209.85.214.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 43786208B3; Wed, 13 Jun 2018 01:20:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528852824; bh=Xj1HkZfmAHAtaMx5PntjsIgP2wCX40gvB3d87p27/H8=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=WTG/jt6zo3GeyVCW8LP48M6I2tOr9h8eLSAFcLDgEY7A9F+0ARpTaWrsJ5BbEVFdi 14oB2s6f2Ev+zljeFzEhSL7LdZC04APKMIoFHzfYrBYNawliAfU8euOt2bhRDxPhvL GeLl1rtextZvWNcOZjH3+swWcVSFPcUeUQp5RPmc= Received: by mail-it0-f49.google.com with SMTP id p185-v6so1778736itp.4; Tue, 12 Jun 2018 18:20:24 -0700 (PDT) X-Gm-Message-State: APt69E2Q9FA3t7f4Poh9gfF+biZtHjAqcSzpUM3ATMiNYAi+ug0+rkS6 /80U0kjoWANYfbq0jI2Sa4KSm8v069pINmQfDQ== X-Received: by 2002:a24:798f:: with SMTP id z137-v6mr2647852itc.19.1528852823684; Tue, 12 Jun 2018 18:20:23 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:6403:0:0:0:0:0 with HTTP; Tue, 12 Jun 2018 18:20:03 -0700 (PDT) In-Reply-To: <20180611115240.32606-19-ricardo.ribalda@gmail.com> References: <20180611115240.32606-1-ricardo.ribalda@gmail.com> <20180611115240.32606-19-ricardo.ribalda@gmail.com> From: Rob Herring Date: Tue, 12 Jun 2018 19:20:03 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 18/24] serdev: ttydev: Serdev driver that creates an standard TTY port To: Ricardo Ribalda Delgado Cc: "linux-kernel@vger.kernel.org" , "open list:SERIAL DRIVERS" , Johan Hovold , Greg Kroah-Hartman , Jiri Slaby , Andy Shevchenko Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 11, 2018 at 5:52 AM, Ricardo Ribalda Delgado wrote: > Standard TTY port that can be loaded/unloaded via serdev sysfs. This > serdev driver can only be used by serdev controllers that are compatible > with ttyport. I'm hesitant to expose a tty device on top of serdev to userspace that we then have to support forever unless that's the only way tty devices (for serial ports) are created. I did a similar patch which just registered both serdev and a tty allowing them to coexist. It suffered from warnings about open counts though and felt hacky. Rob