Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7531144ybi; Mon, 8 Jul 2019 23:47:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwCfb3rQOOX9CFxPpepKCC9t435BsIjItUP0PQ5OjFDqicnXDXHuZRuS40chq1Fl/sUgERM X-Received: by 2002:a63:5114:: with SMTP id f20mr29121653pgb.173.1562654879052; Mon, 08 Jul 2019 23:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562654879; cv=none; d=google.com; s=arc-20160816; b=FHy2Kaq8ZOQm2zejb34yL3n6tzdpcFBe999M2n5sXZc/X8nte+SM27M67MUWUpQWYu m43Oatdy2z29X7BO8BL1LhohTq36fR/YERpJQAe4fsZi4Hxusl0MxzswKD/QcJeizzb9 oSpMNMTCg6ekzUDUAPVGVZW7IqVfJgL09sbkvUxBzqJp0sDOINbp/Y4EmD+WAsVHJ5wM Rwqp++xgewTSMRUOjdwa87W3ShHKW9v/CAnbyGd06Pj2dBFlBX2orGh5ln0T9iZJLEX0 MntwwAvNneFHdZji1q9+8mtFtMo/PNHFbsYu81LxWb+V9XFjAtkBMHk5AtjnxrccQtKO WDBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QEIrnaPP1ASREWlDwPZB1azeBROcQ7NAFBy1DF0esxE=; b=TevGeT8PPtl6WsvXPmZoWy6PK2UiSMrSCNaUx0pvIL7HkE078qH5He7khPkDllVDdu rxO9oUxuJJjOhvDx70vEjTReTH/2Pz5yEOW0A5rP0SbG/CpMuo0VbOFCaaSBOb6YRAHU /33+6G41+69M12Ug820n1f0Skyxsf1kC93W4Y6aErtQ5La64rLFEPtM3uBqZpOd3bDo8 Uu7L0nybqlp/IOAgq5HsbpG0abPbQfN/+fXIYKw9G1NiLRqwAwOnlhl6q5Pby4Vge05Z q52zTZjTJJrb1S34fYuqzAjYMAvMKa0uqW0dqeUcF4e3sb+ZjaGkBVKWfyCXpIq6k2+7 TFLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=first header.b=EbYqBGmg; 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=geanix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1si20785089pgp.45.2019.07.08.23.47.43; Mon, 08 Jul 2019 23:47:59 -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=@geanix.com header.s=first header.b=EbYqBGmg; 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=geanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726229AbfGIGqk (ORCPT + 99 others); Tue, 9 Jul 2019 02:46:40 -0400 Received: from first.geanix.com ([116.203.34.67]:46414 "EHLO first.geanix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725818AbfGIGqk (ORCPT ); Tue, 9 Jul 2019 02:46:40 -0400 Received: from zen.localdomain (unknown [85.184.140.241]) by first.geanix.com (Postfix) with ESMTPSA id AB0B51837; Tue, 9 Jul 2019 06:45:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=geanix.com; s=first; t=1562654709; bh=PdgqI8646iXntCvCsjL6ENComOD8XeuUgfwk7P2Wtu4=; h=From:To:Cc:Subject:Date; b=EbYqBGmgGKCdqKz1VJ8ZvxNucjZV4N+Iis77cFZIqBYfTXt8C9uZxpDMRx3m7tQ67 BiPUlnzYpzOViDZryydi03AAGcZTAxc3/FOyBOsMMwAO5EDRz68N+dIikKO9Wf9KmO 17bA8yYUltokaV4qOwLmEj2PplMPFrQfpV8Kz+bYCFeITJrpapJclEdZctX75WYrCx cBi/H884MuY/mfkaleyW3K/vPAtu6M1uRCY90SFlTbN9ann769phSmSjo55AysX2h7 xvl/dS8x561BvQHAHsdYOxOpjrb7auQmDVv6NdfMB4s+fXJCM+0ivdX9e/C2bItDRp OUbBj22vraYwQ== From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= To: Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= , =?UTF-8?q?Sean=20Nyekj=C3=A6r?= , Esben Haabendal Subject: [PATCHv2 1/4] tty: n_gsm: remove obsolete mknod doc example Date: Tue, 9 Jul 2019 08:46:30 +0200 Message-Id: <20190709064633.45411-1-martin@geanix.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on 884f5ce5917a Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The n_gsm driver handles registration of /dev/gsmttyX nodes, so there's no need to do mknod manually. Signed-off-by: Martin Hundebøll --- Changes since v1: * updated bullet numbering Documentation/serial/n_gsm.rst | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Documentation/serial/n_gsm.rst b/Documentation/serial/n_gsm.rst index f3ad9fd26408..4f37198423f7 100644 --- a/Documentation/serial/n_gsm.rst +++ b/Documentation/serial/n_gsm.rst @@ -63,24 +63,14 @@ Major parts of the initialization program : daemon(0,0); pause(); -4. create the devices corresponding to the "virtual" serial ports (take care, - each modem has its configuration and some DLC have dedicated functions, - for example GPS), starting with minor 1 (DLC0 is reserved for the management - of the mux):: - - MAJOR=`cat /proc/devices |grep gsmtty | awk '{print $1}` - for i in `seq 1 4`; do - mknod /dev/ttygsm$i c $MAJOR $i - done - -5. use these devices as plain serial ports. +4. use these devices as plain serial ports. for example, it's possible: - and to use gnokii to send / receive SMS on ttygsm1 - to use ppp to establish a datalink on ttygsm2 -6. first close all virtual ports before closing the physical port. +5. first close all virtual ports before closing the physical port. Note that after closing the physical port the modem is still in multiplexing mode. This may prevent a successful re-opening of the port later. To avoid -- 2.22.0