Received: by 10.192.165.148 with SMTP id m20csp536538imm; Fri, 4 May 2018 02:05:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZowwIbJgTyFmDw6RJeN46HL7WwLWTiGNbepYGQLDyzdS6W14rCkYEEQ91aiPh49PKulhXci X-Received: by 10.98.24.214 with SMTP id 205mr26229577pfy.242.1525424727372; Fri, 04 May 2018 02:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525424727; cv=none; d=google.com; s=arc-20160816; b=t72ZnGF/R+BgM9a3hYl8M7wQ9vP0zYZYj08r2Yi2xqZGyuLxT2gZZzNlT5pSvtk2MX eO7zoAL5a9bOL2oUeyNbqADJH9kRl7HMbBt4z/wKUNY6T5JJM8uYdGFM72QGpFSARGQW Hzoxm5UOuVbTbfJJjJ5fR6XxXFKvRT4Fz4IUTMhXXPV6XFPEYqX0OLqkHt1awupjYEoL L/hNNJPqgAi0eTShYZVpJLWeceMIBJ3W++AUId0rV7EpCFGw9kEaONiixpXIuLGnrZZa VcLGQREiixU0AYKGJUTS6GiG87vxPBxUIaAdf5WLEXmY5N+xaacc30sfz6xiY934szYw JdTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=kEq7RCiDzFK/oKtF74ZQRW4tml/ZZN8FUnyieTZ+6Bs=; b=GuAGLMIsRQrf8Rh5UpcbiHJHJAEQFKBZ+wgKNx5OwXAVtJtPyzgM93tHIS8XoHornT eRuM5v1Tvlm95nbPLewgtCKUaCayZSlaCMTUVpA3cjYnSBnpzPgipLmpZBbJgiLL65SG bF1i81nFfJtNnWGp3E48EntmWNoDhPxKgCwyQC5ZNjaNj8xbOiUzYwLU5L4gz7PzYFqw BrCciRcgOQWU669BGg8vkDE5fbgf0u1sfD0F66XsVRigobNaE3tcaNg0gFevcBghz2+x iY24Cm/Mw11iGomVjYUT7246G6hAkLNWlD0Oq3NdeqIc6ZbLTFlZ1yFcsEywgNXyyANU yIRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MyaED9Jj; 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 b38-v6si16211234pla.124.2018.05.04.02.05.12; Fri, 04 May 2018 02:05:27 -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=MyaED9Jj; 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 S1751508AbeEDJEy (ORCPT + 99 others); Fri, 4 May 2018 05:04:54 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:46850 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751060AbeEDJEw (ORCPT ); Fri, 4 May 2018 05:04:52 -0400 Received: by mail-ot0-f196.google.com with SMTP id t1-v6so23689491ott.13; Fri, 04 May 2018 02:04:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=kEq7RCiDzFK/oKtF74ZQRW4tml/ZZN8FUnyieTZ+6Bs=; b=MyaED9JjLJXwHRa4x8/ctOkOnUt6m3vBovL7fwtaQlPMP20nzL80RWVdcPEX0zmZtS CS0o4lcAbB0BauRDyLY7dDKorNVTnMsB5xNhnFJb+mSfoC+H1CIN8yKp2LebumA+Ns+t gSA49EePr73GaE4AuUp688W+9s9OMoA2Ezvv6qYpm7GmbxaXviKsEXvfEO+Y3IWpfnho F7YkCScjtDYJdELS9jMQ6Ja/20Kqnpw/T9WcvWYLLqIIx53fdxPQ4YaI9XPg13Sp1UVs d2rR/v08MO6mywZBX4cIBLyFtRuWiJR5cCHagUzsan1ecbXCMKqtp124nt7MiTVCxndI fVmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=kEq7RCiDzFK/oKtF74ZQRW4tml/ZZN8FUnyieTZ+6Bs=; b=H11WgWcxpPybqD3Y1DGD5lxHUa9vnuU324hlEPtvLI3004MjE2Jhd7wd1ltGSN0e0J CmJA1yQ0HIy9HVsqV036pZiYdnynLL6I+PDctC5w3Dw1EgK8IvBjNz4jZ/8LejRF5kzm lUfAEVHI7TmSXmIrXirW6OqNM3NlDw2Tcoa410Go4v7uAGY+5ic/UIveYAM3dkA/n+sY n8mfzC6XEcQbV/3URzT6KTorEQMRTrdspTF2n7THbvwWzp01bgCcoCBviLgqnjp7kAME qPnz1s8N7i7r6m2sg7tE20taOXGq3rg7MAnNSE9q6mkzZ3BVIJrEWvh25b96+rcSxKQx ENjA== X-Gm-Message-State: ALQs6tA7MJoxLLoKKfi3nGUG5HdkQW6zGM3VoDPpac83EwK/BxxVJ36J MnjRBQvh8v4w173Js3+Hsq+TZGzVrZeK6WAkAOscFYQ4 X-Received: by 2002:a9d:4494:: with SMTP id v20-v6mr17899616ote.278.1525424692027; Fri, 04 May 2018 02:04:52 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:118b:0:0:0:0:0 with HTTP; Fri, 4 May 2018 02:04:51 -0700 (PDT) In-Reply-To: <20180503175401.GD29205@thunk.org> References: <20180503175401.GD29205@thunk.org> From: Muni Sekhar Date: Fri, 4 May 2018 14:34:51 +0530 Message-ID: Subject: Re: serial: custom baud rate To: "Theodore Y. Ts'o" , Muni Sekhar , linux-serial , linux-kernel@vger.kernel.org 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 Thu, May 3, 2018 at 11:24 PM, Theodore Y. Ts'o wrote: > On Thu, May 03, 2018 at 06:09:13PM +0530, Muni Sekhar wrote: >> Hi All, >> >> From include/asm-generic/termbits.h , I see baudrate can be one of the >> standard values: 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, >> 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400, 460800, 500000, >> 576000, 921600, 1000000, 1152000, 1500000, 2000000, 2500000, 3000000, >> 3500000, 4000000. >> >> If I need to set a custom baud rates(e.g. 14400, 128000, 256000), does >> Linux serial framework has any supporting method? > > See the setserial man page:t > > https://linux.die.net/man/8/setserial > > Not all serial devices support the spd_cust and divisor, however. In > general, only devices where the kernel directly programs the > 8250/16450/16550 UART directly will support this feature. > So custom baud's can be set via TIOCSSERIAL IOCtl in kernel mode? > - Ted -- Thanks, Sekhar