Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2158217imm; Mon, 16 Jul 2018 03:19:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfOw2Hdls9YDYkcVlUXaGLcsHL+Hm4qS1mEaoUdrqgCOLQ7gLQSBsGM0npxpbbbinL8SiFt X-Received: by 2002:a17:902:f83:: with SMTP id 3-v6mr15935025plz.282.1531736388151; Mon, 16 Jul 2018 03:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531736388; cv=none; d=google.com; s=arc-20160816; b=T3XzjC2PFl0Ai+0L18D0Xzf1nT4eZeJ9Q8QvWQBK08C4KP6Smr1NkQcFOmAwR5PcN0 BHlKgjc2J7/RXbpDLrp6JrjHDMgwpaoMua/NzDi70Qxtv67zJqdkpfxU9iLzN+0edEIs 3Nf0db/IOmbViHNqe74DVLzGGlVYgtrfiQwJxKROSDWBxYgY8VVvCmYZ/NIU/wskOQ6y fSHMuVQzKQopGIz0uyu/srTUZqW0iUqXaYiCn0K09bCP5hUhnNALmJX3plb90KOXmB+6 wqqyKdxg/bkAaC9/pE1oRpjeSSAsz9+aFEzClRncREx1oxQoud2PVQSVXRvuPp8hNd4E dLHQ== 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:dkim-signature:arc-authentication-results; bh=pocjnIHCOUX8aSFZ6IfYXqrdDf/Y9thHpzKuLgTX7Ms=; b=TSn2Bj0dCsknfz4zeC6sxKnMm5WplA3WjVpJ5xUwP2rLpOfWX55FcBXWBVzwGaTym+ qpdz6l4q+d2m9CBVh9X3N2COzhjAxNc5k3CxVRF39UCW5NfwUwpdceTrlnpEff8Vq2Vj IJ/H/5WQf/+9xMMsnGBm8L6A8+fAvvgxnJL3mv0Ho3RHJWiidiWnPVETt4XCJz2O87u3 HIjoVVxDnVVvtobn1WeOUczDRaNNy4/FR0W85DjyAMsb8myQ+Vr13hcTAOl9QxX/eCPh vEqDs6gHdY8ZJdCYfIcV+mJhamRdCdfrVC1mY8rZeaCZeUrIPTu4OzrZpyqTpRamazW5 CENA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=EA9K6yL7; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1-v6si10399381pll.493.2018.07.16.03.19.33; Mon, 16 Jul 2018 03:19:48 -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=@gmail.com header.s=20161025 header.b=EA9K6yL7; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728359AbeGPKpR (ORCPT + 99 others); Mon, 16 Jul 2018 06:45:17 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:33317 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727431AbeGPKpR (ORCPT ); Mon, 16 Jul 2018 06:45:17 -0400 Received: by mail-lj1-f196.google.com with SMTP id t21-v6so29424638lji.0 for ; Mon, 16 Jul 2018 03:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=pocjnIHCOUX8aSFZ6IfYXqrdDf/Y9thHpzKuLgTX7Ms=; b=EA9K6yL7hG7YywBQ3eT2CPY9p7rDJLwNDGAtWEV5TUt7gLDx1MAUFbIOSPKWYMcG/I /SNHG7t8jR8rXxuGh2tbNfR3/6Mj0pl1VygwIBwG/CdZl0zSElNpuYnXGE8FS2vIxrv7 y/8I3i99HtOfXJSRxtMDwH56w0PrxL9HXcqDOOOTrc5sIazTagsYHmYWKKZdKiDgOnMP VUc6z7XO/YOjNDqXaGKz5wLwwM1PsqUrzAnqnp7L37xp23GeTcUXQ85jWqD+D9aPDq48 zU1OhdLIQFv0lpJjiHxDFMVgGP/9xOkvvKxLKrx2qEOJLqGw7/3F53q04GdciRqZtrsG IVbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=pocjnIHCOUX8aSFZ6IfYXqrdDf/Y9thHpzKuLgTX7Ms=; b=JNyXu3WcEVprE9wYFonSYhS5afZ/Z58wlYnEr/NDOHhPVM/+BmN63L//gClEZBKHf1 niSUEwJaBCENJi+0FY5eNvbmeLZ5ftypj3+LqahZTtLxzXvl/1noCja9FHMxTsH8Tpq+ +ipjIB0ubeesrfb4WYkBMy7hBi239B1ZTQGjRwW7guUU8DyACqqv90VpzKlTKppu9dyM kB1rSNM13BuGkZa12WOLFkvOo6MNMhgRGsw9fU/lm+n5+SkTDT61o2G1SmjXuekze9L5 BGB359PLeC3hGOyMJXYZy8YCzCuoCypS/6kuK7dnuPJyDXiOKTXri6+h1OTzpFwEFyly 4fzg== X-Gm-Message-State: AOUpUlEChJXEV0pSuvotOPbhc75cf/mpPTYzTHgzRfxV85m9zOD/KirF /DTfZ3JrGQmayeyE+hebzsm5Ciex X-Received: by 2002:a2e:9941:: with SMTP id r1-v6mr10510945ljj.53.1531736313142; Mon, 16 Jul 2018 03:18:33 -0700 (PDT) Received: from xi.terra (c-8bb2e655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.178.139]) by smtp.gmail.com with ESMTPSA id j140-v6sm591924lfg.16.2018.07.16.03.18.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jul 2018 03:18:32 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1ff0aG-0007By-51; Mon, 16 Jul 2018 12:18:24 +0200 Date: Mon, 16 Jul 2018 12:18:24 +0200 From: Johan Hovold To: Greg Kroah-Hartman Cc: Johan Hovold , Jiri Slaby , Alan Cox , linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] tty: support CIBAUD without BOTHER Message-ID: <20180716101824.GK10204@localhost> References: <20180715133935.24964-1-johan@kernel.org> <20180715133935.24964-4-johan@kernel.org> <20180716100028.GA20101@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180716100028.GA20101@kroah.com> 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: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. > 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. Thanks, Johan