Received: by 10.192.165.148 with SMTP id m20csp2132241imm; Thu, 3 May 2018 10:54:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrfHtRcUElYLQayQUJcP37TpfFZO5FcUk39458yPgisE89DKeDk7GeZE2esEqkN7c2mwOiL X-Received: by 2002:a17:902:407:: with SMTP id 7-v6mr24927191ple.47.1525370073134; Thu, 03 May 2018 10:54:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525370073; cv=none; d=google.com; s=arc-20160816; b=di7JxZ43X2U6FhByiaMjrmB2F9DP9E2TkJ7w5emfYTrdZtoUUxWT9CmqcuH6sTEI47 m11DH2xbmPSs+DAlSHMo0DSDLINZN9vua1vfXUfFJZB7ZIyaNXWJzFPalZnQXsfoVN7g NPL9ysRLqZT8FNsZ/1CLHnChmzH+qVUZFnYXGTYdfkQgwAK0wE66rDk0J5AguwCSrdDH LwXPA75xjQooV9I1NLn2CIjzQEErY2uzPJeZMsonc7YjaA0GuY4tYL9SJjV3vmlyy5aO nccJweuSG5SNo1ZxPiya213DMScDL0D+i8Clj9iTb502jJEKYUUxHUi0SUet/T+fVNW5 WOkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=QbXXeVSbHGLRYhEPLPEOp1oJQsMsL0OFxhlzB2tp5uE=; b=pxPJqjBKBhRWYdM1+KyQ5wAKYTm+mCJoaBBV5pB8YJX36dhOONSp9Cqkepi/mEeCEj LF758OTzYZMjbfjtyg0/ZQfwnoBZRsEC5l4yLI2pt6d/RHel/OYRvTuC9z+boG0Cwv9V HFaB6TOFAeqdAmW917u39TQihiApCSa6JEWLs/Iv7wqD7+JRuN8VzgYHYOxe1lZZRspL qoxgKlI+EXCHM7BsWLsW9ka5IGp2d2LI1GHpZXsVGRbmQAz1qwLltl2cQz3XRXETgDSc sXqjdrzwNJzpR2bLdV4Ae3EsaVU4vKv94n49U202EWK8Y7zw1JQro5FMpV7FpPU+3C+K bGog== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=Wqg+yhRv; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t8si14260608pfl.344.2018.05.03.10.54.18; Thu, 03 May 2018 10:54:33 -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=fail header.i=@thunk.org header.s=ef5046eb header.b=Wqg+yhRv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751240AbeECRyF (ORCPT + 99 others); Thu, 3 May 2018 13:54:05 -0400 Received: from imap.thunk.org ([74.207.234.97]:58968 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751075AbeECRyD (ORCPT ); Thu, 3 May 2018 13:54:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=QbXXeVSbHGLRYhEPLPEOp1oJQsMsL0OFxhlzB2tp5uE=; b=Wqg+yhRvV2kywbC6NBOnEacZZF 9+7I4xUKfmmsDf3LojRprZSZPGSvVNo/abn8P9v+cPrpbtiW7/Q3+F/+k3qYspNUiwrt3naJHD5me ERT5C+05DZSLoH2AwuwcT8yIFTsSoL7lzdPdTGra4uPmR3VQD/Z2uexoqo1YxqshM2HE=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1fEIQc-0002Bu-DF; Thu, 03 May 2018 17:54:02 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id 3BD417A4B0A; Thu, 3 May 2018 13:54:01 -0400 (EDT) Date: Thu, 3 May 2018 13:54:01 -0400 From: "Theodore Y. Ts'o" To: Muni Sekhar Cc: linux-serial , linux-kernel@vger.kernel.org Subject: Re: serial: custom baud rate Message-ID: <20180503175401.GD29205@thunk.org> Mail-Followup-To: "Theodore Y. Ts'o" , Muni Sekhar , linux-serial , linux-kernel@vger.kernel.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. - Ted