Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp363908pxf; Thu, 8 Apr 2021 04:56:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/NYzlTbqeJg38d5qnumcxqt4LqMRe+mNuffYBxFTS4egqkWbxstcmqNRjG/X6lKwweOZR X-Received: by 2002:a17:906:b1c1:: with SMTP id bv1mr9899447ejb.24.1617883000449; Thu, 08 Apr 2021 04:56:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617883000; cv=none; d=google.com; s=arc-20160816; b=nff/iO8erubfQHna72hxJOhjX2KJ5XKCOFG4OknVz0CWje7fa/cnT67WVwMZAm/48B eRfsDMSL/ZnEnIeLBkry7+/T7dyHDQ/6kGSp3rHZ+O1FUZUlOnIXfe1aKIx+gBEV5Ftw rG5gDONjEnRux8Yfs8i+XREEX0X1Db2dkFTK6S13VbK4a7Q/aMlLHvGKh7b4cy5grobl ya/K3lsmBodu30KDuxfrTxmqWXrTPgyFCkBq0vdD08nuvdc0d+2bCGOh096cXDpAf2gV JTncadorlrXM5dOIwQM8nS7HWAZ3DfoIJY7FytfU2hmHvMpsYL5fr/XMzibn2bl/7ABA B58A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=L8Ap+voGLWr4yQQCxZJoTDtlaDznJLvG0feVFWGgm5w=; b=WY8rUeND4nIRLlZMZwjAxOKwOr98BQnO0uAeAHtihgEigffw0xYlSgMexXa1YUjYXe fP9dmkhqSTgusmVK7GN7K06H8tVLTFWdb62QDGPBjQ/Y0KPsxUf1rtAr83MhKy/FUyPv Z3RXnBen13tRas4zeT87TtiYhPqGU+Xx6CNDCI2H/SZ1hAJASzdmkOHKshZobMMm5s0u T39Mz+mhW3HJnA86PB0DqhDmTlx/KhAcemoXbORW6C0kWJ3ZV/m7GF6YqzDejt5ug5UT v1XoiaaeMYLVY6tBQmzBB5FNdqUNP/DyL+cu9p/tRjxwSk/92Cjd939TNvUB2PN32Kyp uHmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nIgHbqkF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g4si6644134ejj.279.2021.04.08.04.56.16; Thu, 08 Apr 2021 04:56:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nIgHbqkF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231158AbhDHLzO (ORCPT + 99 others); Thu, 8 Apr 2021 07:55:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:43794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbhDHLzN (ORCPT ); Thu, 8 Apr 2021 07:55:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5598061074; Thu, 8 Apr 2021 11:55:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617882902; bh=iQk6+bM0UOUsorND9uQvTGZPvJSGKBUdzwIBG7StOd0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nIgHbqkFvfRyFgeEuKMH+0cJfL44FIcLDdjmWuwU4hewQwZEjpnXfeslfh0TQd6cL UzKJfMfmz94+vOh14zO7Izv3do+DUfT4HCkOJjeTjdHCQuV6mQdKXJzySLfCbnC8ku 1vEs1S2zX5ULnO3VOuVdPUXTnihgRds0yVEmLzC1Nf1oxQ3+WGLEVq8EX79WgSWhIj TkHRE642ciIgvftXHGeP+LoT70gEkMbM69lGkGLBtDjvL3Uk/3oXNUC8LrIhav8B1p msVEiRFsNuSbfkJnqciZ/l5oLPjWvZwIJUCcjUtyrd+zRlcs076ptSuEI48uCcEnKv jFZPd6YFNlPIA== Received: from johan by xi.lan with local (Exim 4.93.0.4) (envelope-from ) id 1lUTFR-0003Pz-NF; Thu, 08 Apr 2021 13:54:57 +0200 Date: Thu, 8 Apr 2021 13:54:57 +0200 From: Johan Hovold To: Oliver Neukum Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] USB: cdc-acm: fix TIOCGSERIAL implementation Message-ID: References: <20210407102845.32720-1-johan@kernel.org> <20210407102845.32720-4-johan@kernel.org> <0049152ce9da85c50fda91c1b77ca233ba0fef3d.camel@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0049152ce9da85c50fda91c1b77ca233ba0fef3d.camel@suse.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 08, 2021 at 01:34:12PM +0200, Oliver Neukum wrote: > Am Donnerstag, den 08.04.2021, 11:48 +0200 schrieb Johan Hovold: > > On Thu, Apr 08, 2021 at 10:36:46AM +0200, Oliver Neukum wrote: > > > Am Mittwoch, den 07.04.2021, 12:28 +0200 schrieb Johan Hovold: > > > > Well, the devices report it. It is part of the standard. > > > > No, the standard doesn't include anything about a baud-base clock > > AFAICT. > > Unfortunately it does. > dwDTERate - chapter 6.3.11 - table 17 That's not the base clock rate, that's just the currently configured line speed which you can read from termios. > If we does this wrongly, we should certainly fix it, but just removing > the reporting doesn't look right to me. The driver got its interpretation of baud_base wrong, and CDC doesn't even have a concept of base clock rate so removing it is the right thing to do. Again, baud_base is really only relevant with legacy UARTs and when using the deprecated ASYNC_SPD_CUST. And if the user wants to knows the current line speed we have a different interface for that. Johan