From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5810BC606B0 for ; Tue, 9 Jul 2019 06:46:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2A865216C4 for ; Tue, 9 Jul 2019 06:46:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="EbYqBGmg" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726260AbfGIGqk (ORCPT ); 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 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