Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp377141pxf; Thu, 8 Apr 2021 05:11:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSZtmAof0g/11xkPj1asJ2d/UmpPpvQW7C8Wj2oIvXs4O6FzzfK/8P8znRu9fmzj35NTSA X-Received: by 2002:a50:fc94:: with SMTP id f20mr10947311edq.77.1617883875483; Thu, 08 Apr 2021 05:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617883875; cv=none; d=google.com; s=arc-20160816; b=jlsZ3H9/wG5ly2+u3GHNCsIyjCiBSgvsxbBQ4PT9dnjdg1do5xIw8X80YONntR0JWQ 40vwYhRWrj+2C6ZOvoYlz3l48vJESF4V5cEelTiCVlO6Vevcnk7R9FVCsrXNLnsIfGHE V/RwsRTlbT62118LXmvpY6YPllfc7GGQC4raoVi4DeOYG6xdNqPH//VbloP/rAXkPtlt T/o5MdB/b/s8iV1DhawpVJFJMWrlFjdEVCm/EOs2tqeW+pIWZ5tK9jtx8BBMNTIaeCZ9 xhj/buA8hCjUxniUvpO6tPN45rlF/CRlLAANigMktN+PQv1JL9aOjhjwSKqx3pHp5r/j wDJQ== 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=yl0PFG+Wj3MM3PUzFAEYuyy+AAVaTjzWlk656Fc2Xe8=; b=0z6smg/Dl1S8Irh0AionYy1ZG2UZ6hzBtNVGBHN/uXsJLaQSx/zPOsQeUMITTJ/cWe z6k3GoaCImCo7Vjf58Pcg12bOmHLYhDQavkPbESSq2dQe+/QROHySHfFv8amJYSCA/pj 0FbuexwwM3TCK1xUUFCeeFzx1/KWY85JSoN6XcjY7w8WrotF6Z7TDAF45FtK7brcOF4t afGpSkenmUwdILPSq/G5v+AXlOr5VLEPReTBdqstmy5Nfb6FFld3G9AZjciQqBGmE+4n bjpeERXE2UJHw3vOxeCGB9+1A8cJUulqTP8vgRXy7PwqMpywFSFWa4DNLfsELXlWLoAX PBqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=a2tXcNAQ; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o14si5375391edq.381.2021.04.08.05.10.50; Thu, 08 Apr 2021 05:11:15 -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=@linuxfoundation.org header.s=korg header.b=a2tXcNAQ; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230412AbhDHMIO (ORCPT + 99 others); Thu, 8 Apr 2021 08:08:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:46328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229751AbhDHMIN (ORCPT ); Thu, 8 Apr 2021 08:08:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8066461164; Thu, 8 Apr 2021 12:08:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617883682; bh=CsoPgNcV3Hlu6+SPa15r83WWFyZ4xy+mR+J4x0wp6a0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a2tXcNAQLC7RNFviqgmj1TIAuavR48MEvUi17tzr+8v6074QqXAM7Vm2fKP5EZaGY gbajnd636UMQ2Yfz88XDlQ5E9pzwlGqIkCRmKLj6UBJEhS80ZKXPVPNFotUr+YCw8u wJY8itsiPggejsR3XSfO3eBAX6zl4Pe7uxYSBrho= Date: Thu, 8 Apr 2021 14:07:59 +0200 From: Greg Kroah-Hartman To: Oliver Neukum Cc: Johan Hovold , 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> <61df47f6708fc4bc9add8d42aff6edcbad6e9618.camel@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <61df47f6708fc4bc9add8d42aff6edcbad6e9618.camel@suse.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 08, 2021 at 01:59:43PM +0200, Oliver Neukum wrote: > Am Donnerstag, den 08.04.2021, 13:54 +0200 schrieb Johan Hovold: > > 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. > > Hi, > > thank you, that clarifies things. I am happy with the patch itself, > but could I ask you to do two things: > > 1. Edit the commit description > making clear that the difference > between the base clock rate and the line speed. > > 2. Mark the patch specially to NOT be included in stable. We may > have > users misusing the current API. That doesn't matter, if there are misusers then their use will "break" on newer kernels. And if so, then it doesn't deserve to be in any release. If a change is good enough for Linus's tree, that means it is good enough for a stable tree, the requirements are exactly the same when it comes to userspace interactions. thanks, greg k-h