Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937036AbXFGWPd (ORCPT ); Thu, 7 Jun 2007 18:15:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S935516AbXFGWPN (ORCPT ); Thu, 7 Jun 2007 18:15:13 -0400 Received: from pentafluge.infradead.org ([213.146.154.40]:58857 "EHLO pentafluge.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764544AbXFGWPM (ORCPT ); Thu, 7 Jun 2007 18:15:12 -0400 Subject: Re: [SERIAL] Don't optimise away baud rate changes when BOTHER is used From: David Woodhouse To: Alan Cox Cc: akpm@osdl.org, linux-kernel@vger.kernel.org, paulus@samba.org In-Reply-To: <20070607225528.0d5e7b29@the-village.bc.nu> References: <20070523172739.1d3a918c@the-village.bc.nu> <1180012135.8303.89.camel@shinybook.infradead.org> <20070524144109.7bd0f4d0@the-village.bc.nu> <1180014338.8303.95.camel@shinybook.infradead.org> <20070524160559.54c2c639@the-village.bc.nu> <1181133010.4096.26.camel@pmac.infradead.org> <20070606160310.27d6d3b8@the-village.bc.nu> <1181150998.2785.13.camel@pmac.infradead.org> <20070607163808.19984208@the-village.bc.nu> <1181231421.2785.68.camel@pmac.infradead.org> <20070607225528.0d5e7b29@the-village.bc.nu> Content-Type: text/plain Date: Thu, 07 Jun 2007 23:15:17 +0100 Message-Id: <1181254517.20322.6.camel@shinybook.infradead.org> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 (2.10.1-17.fc7.dwmw2.1) Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1096 Lines: 33 On Thu, 2007-06-07 at 22:55 +0100, Alan Cox wrote: > Umm if your struct termios has the c_ispeed/c_ospeed fields then you > don't need to add the new ioctls to the PPC either - the Alpha is the > same here. Well, OK -- if it only involves editing patch files I might _send_ a patch tonight but I'll _test_ it in the morning... I think we only need this one hunk of what I sent before. diff --git a/include/asm-powerpc/termbits.h b/include/asm-powerpc/termbits.h index 5e79198..a5a87f0 100644 --- a/include/asm-powerpc/termbits.h +++ b/include/asm-powerpc/termbits.h @@ -152,6 +165,10 @@ struct ktermios { #define B3000000 00034 #define B3500000 00035 #define B4000000 00036 +#define BOTHER 00037 + +#define CIBAUD 077600000 +#define IBSHIFT 16 /* Shift from CBAUD to CIBAUD */ #define CSIZE 00001400 #define CS5 00000000 -- dwmw2 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/