Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2178591imm; Mon, 16 Jul 2018 03:45:44 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeexCKiEYx+zWiqOb3sZ5qGInH81mt30IekhYSRYoMx3Hp294oy9n9N0auqsQKiomQWKnsP X-Received: by 2002:a17:902:1081:: with SMTP id c1-v6mr16126213pla.153.1531737944818; Mon, 16 Jul 2018 03:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531737944; cv=none; d=google.com; s=arc-20160816; b=UnTre2m7NyxGTbSr5bA+V+pDhnqUBc1fwUO5hMRlNymj+lGy39TkhFhJQCbz6FMJdz bJ0q4HOUBoSKsCCgXCftdGeu1f0TVu1t9TNYT+N/atVt3DQWZFIt73+le0P7rUAHUbmf fhRdnHuSaXNIELQyP+5MazxWdM7Bui9+I3FvzVtSNIxvCb6ZFgsGmi71wZQu1jgqqWq/ k0ndzMkn+IybhMLm9SZqs0XxwmIaek58BzjPL3wNiU3qt3FLuzNQz26935ewESPrk9h6 VkXhRjOt5Nx2jFdI1DDvtGXW4LJmLf5A2WM/BEsJ9ubaA/X7na8QSJ/SmpF7diOVlOwq nhtQ== 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:message-id:subject:cc :to:from:date:arc-authentication-results; bh=eCenjHzDhuNKrPlsfMZF2HODbLHa+GuU8MkOgURwRis=; b=xcVi2WOMBmfrbOwt9/33Bnn+wUOVx0oeTmGgaBABtQf+MX9I81mPfjXnPixvRhR+kf cIpFE/uD4vivDOSVwqj22+gL82flql+BTN70IiT9CecmbnMQpyPP0jXM8PdfZ1Srt5JD NAnHCLwzzsN7dI2pPsyvmGxk+Z32wWjbZ3goH7spA06AmTLwu4igIWDPty+jrIQFfARL JilXyqNgxuznKOcyKB2koACjOwWsZo6Vls542+VV3N75JutcNzueLJ+ZFRajWJg49BU5 026IBluBQNxHlpZT9da6yPDaqWnzeC6iF++pz0x7rhRklH+mxcSzquPZ/y9NbUGv/u3A d6HA== ARC-Authentication-Results: i=1; mx.google.com; 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 c38-v6si29685159pgb.489.2018.07.16.03.45.29; Mon, 16 Jul 2018 03:45:44 -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; 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 S1728457AbeGPLLE (ORCPT + 99 others); Mon, 16 Jul 2018 07:11:04 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35764 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727128AbeGPLLE (ORCPT ); Mon, 16 Jul 2018 07:11:04 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id EF2D989B; Mon, 16 Jul 2018 10:44:13 +0000 (UTC) Date: Mon, 16 Jul 2018 12:44:11 +0200 From: Greg Kroah-Hartman To: Johan Hovold Cc: Jiri Slaby , Alan Cox , linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] tty: support CIBAUD without BOTHER Message-ID: <20180716104411.GA11023@kroah.com> References: <20180715133935.24964-1-johan@kernel.org> <20180715133935.24964-4-johan@kernel.org> <20180716100028.GA20101@kroah.com> <20180716101824.GK10204@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180716101824.GK10204@localhost> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 16, 2018 at 12:18:24PM +0200, Johan Hovold wrote: > On Mon, Jul 16, 2018 at 12:00:28PM +0200, Greg Kroah-Hartman wrote: > > On Sun, Jul 15, 2018 at 03:39:35PM +0200, Johan Hovold wrote: > > > Since commit edc6afc54968 ("[PATCH] tty: switch to ktermios and new > > > framework") arbitrary baud rates can be requested using BOTHER and input > > > rates can be requested using the termios CIBAUD bits (CBAUD shifted > > > IBSHIFT bits). > > > > > > This functionality has been conditionally compiled depending on whether > > > an architecture defines BOTHER and IBSHIFT respectively, but would in > > > fact fail to compile unless both symbols were defined due to cross > > > dependencies. > > > > > > Relax the IBSHIFT => BOTHER dependency so that an architecture could > > > theoretically support CIBAUD without the Linux-specific BOTHER, while > > > hopefully making the current conditional-compilation directives a bit > > > less confusing. > > > > > > Note that the long-term goal is still to have all architectures support > > > both features, so an alternative could just be to have the lot depend on > > > BOTHER. > > > > I thought we had all arches converted to use BOTHER already, what ones > > are not yet done? It's hard to unwind the asm-generic use of termbits.h > > to obviously see which ones are not doing this yet, any ideas? > > It looks like alpha does not yet define BOTHER at least. Someday we will get to delete alpha and many people will be happy :) > > Oh, and thanks for fixing this all up, odd that no one has noticed it > > before. > > Probably due to there being no in-tree drivers that support separate > input rates. And with no glibc support for BOTHER (still), it's somewhat > less likely that people will trigger the bug that could end up setting > CIBAUD for them. Ugh, I thought glibc got support for it, I guess everyone just hand-codes it in their applications for now. Sad. Anyway, thanks for the patches, all now applied. greg k-h