Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp455145imm; Tue, 5 Jun 2018 23:59:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIp7TYCLhl6g9082y7L/DpVFljjaXTYrDcjGMrZRlOGJ95Vmz1WXuhR8nHvZ6fjmjtEOw2l X-Received: by 2002:aa7:84cf:: with SMTP id x15-v6mr1274176pfn.220.1528268375378; Tue, 05 Jun 2018 23:59:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528268375; cv=none; d=google.com; s=arc-20160816; b=Hs2MEg6kl2wA4i3M42jM2cRa6zW2L3Yq/uVYC+ZdBJAPxuQfmKvMvpovxQ6r/JVegl VesFPO1a332EippPngQpqBylx9tIUJhFHolYqamPVB8mYuzsdQLwb7CwCqMot37lAjkx dR4Ki+OOk2BSTCyo27maXMFgbzUDwCQcLx7klasAeiTcVCQM+Qyt2l3yWngwZ7HRnqS4 LOtcwNxeWaRYDDlzHXDWkqiLUohrWOZ0WB7MdZYHAmFKmlav+pnzKBt2rxde8sTNdV50 UqjIFQxaDTy9ra671gTM7Pnb0c/itNLhTd1zjFGZCNcnwxnHO7X/8WO/+40IRofKnuGp swKQ== 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 :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=oCbnjkJmOa5UdlbuyXb+WVxWWSWgilMpJ6FbssIzVoI=; b=PPlcPNUC6GvmU2LuzZd2wHnRXKZ4ZKP4CipyGjNrz6QfxGFBMJjTb1iSRto3lFkvCh ptlMOXUNs3xoCgIFUsjW0O/DcrXlV3GUBUOTFSD4dAN/gicD0rJN59OOsuof9aVTeAwS 5PR6SfxPN7rdX2Q8RBEdPju9AE72X+g51seABZbYluWkTg0dQeyH8+d/ATaQxt6K+BUa mLiq7vhzzhvACzOT8BX3J151NidmWHM4s5h4xByQmrGl1shoWxsoxg6co5mUnZOREI9I sC01nn7P082r/V4jl6Gv+n7Gfw7L24JG2G+VgC7YImzpoiH0KTqwgUf4Rbk7V1U4EJit di5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ldp6YvO4; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v73-v6si21697068pfi.22.2018.06.05.23.59.21; Tue, 05 Jun 2018 23:59:35 -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=@gmail.com header.s=20161025 header.b=Ldp6YvO4; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932328AbeFFG6g (ORCPT + 99 others); Wed, 6 Jun 2018 02:58:36 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:45498 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932310AbeFFG6e (ORCPT ); Wed, 6 Jun 2018 02:58:34 -0400 Received: by mail-lf0-f67.google.com with SMTP id n3-v6so7366306lfe.12; Tue, 05 Jun 2018 23:58:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oCbnjkJmOa5UdlbuyXb+WVxWWSWgilMpJ6FbssIzVoI=; b=Ldp6YvO44bQmhvqghdZkD5Ypg9foz7Xuh0bYz+9WCh4bmLp3BNSzpfQVSdG2VsP+JV CvXMGud73kHqc70ciSl2caajATuQ2t63yLPNq32YDsOWaVOG9zsHaSJofVyHnx5KPTue Ue03HjWtXETz2f+fqk+LQWW97ql7mqoC+TdPrk8xqUI4EjDM5NdrTFd2e8s20Vj+Z2hM 6pSMQIQHg4lM7IjS5pNUCzgjUhg6Bm5P0eq5xgJ1orchBgP6dnMwYIU3BMPSuRqGJ9yb mi/aofGPOM0w1Zht60ptMVAZS9Wn8qFZkPntwNfKOR7XPja7vgumT14GyRFDsba2lvPM nFIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oCbnjkJmOa5UdlbuyXb+WVxWWSWgilMpJ6FbssIzVoI=; b=Io4VJyjy8a3J9TIrhRcHF1uDQqpK0I7XOZqmStevLGYs+I30hHGC8js8g0ZB5BcEh3 TrdL1+XdKswvzmVrvYZb1vfYTvQT9pEpaCeKInA/U2IjNMNY7SijgeSPoQjuVOhwKbDq VwE7dAJTu97JxrUZbMmy/yrDHedIBKY26LkQKCzbDY1MLzaaoJDyEvPobMJbozF8LjZw n3PdYPidpn5KAySCgHzuJQhEysycNZ0AaTSEznbrFIx7zi1Xs1iNeIw4n+agusI8ZZye xHzIt0nuqkL4DIdqbwH7kSruuEd1L+bxfcwgDa1a6m5hE1KYjRljvzXEmHE3ysM1bMV3 se8Q== X-Gm-Message-State: APt69E1u/wyYg+0I4x8lA0MFWCF3Ul9NCDnmoi/fS2dl7+RM8pU6saUb 5O/YNKXJpVAio7Nbv1xE8Xv/CvAJt9atLlghuME= X-Received: by 2002:a2e:f11:: with SMTP id 17-v6mr472697ljp.47.1528268312648; Tue, 05 Jun 2018 23:58:32 -0700 (PDT) MIME-Version: 1.0 References: <20180529131014.18641-1-ricardo.ribalda@gmail.com> <20180529131014.18641-19-ricardo.ribalda@gmail.com> In-Reply-To: From: Ricardo Ribalda Delgado Date: Wed, 6 Jun 2018 08:58:15 +0200 Message-ID: Subject: Re: [PATCH 18/19] serdev: ttydev: Serdev driver that creates an standard TTY port To: Andy Shevchenko Cc: LKML , "open list:SERIAL DRIVERS" , Rob Herring , Johan Hovold , Greg Kroah-Hartman , Jiri Slaby 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 Hi Andy On Tue, Jun 5, 2018 at 3:42 PM Andy Shevchenko wrote: > > On Tue, May 29, 2018 at 4:10 PM, 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. > > > +config SERIAL_DEV_CTRL_TTYDEV > > + tristate "TTY port dynamically loaded by the Serial Device Bus" > > + help > > + Say Y here if you want to create a bridge driver between the Serial > > + device bus and the TTY chardevice. This driver can be dynamically > > + loaded/unloaded by the Serial Device Bus. > > + > > + If unsure, say Y. > > + depends on SERIAL_DEV_CTRL_TTYPORT > > > + default m > > Hmm... Can't we survive w/o this by default? If this module is not available and serdev is enabled the user would miss his /dev/ttyS* nodes, so I rather leave this on. > > > +static int __init ttydev_serdev_init(void) > > +{ > > + return serdev_device_driver_register(&ttydev_serdev_driver); > > +} > > +module_init(ttydev_serdev_init); > > + > > +static void __exit ttydev_serdev_exit(void) > > +{ > > + return serdev_device_driver_unregister(&ttydev_serdev_driver); > > +} > > +module_exit(ttydev_serdev_exit); > > Isn't above is just a macro in serdev.h? > I.e. module_serdev_device_driver(). ACK, thanks! > > -- > With Best Regards, > Andy Shevchenko Best regards -- Ricardo Ribalda