Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp544989imw; Fri, 8 Jul 2022 07:30:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uxKRJ8t7tQn0xrnZyt/y8zH0+YmU8o3RgkGX0gtpb6Q2Z8Yoai2AKXFy0wPpZkKKxHtfeP X-Received: by 2002:a05:6a00:32c5:b0:525:933e:252f with SMTP id cl5-20020a056a0032c500b00525933e252fmr3996288pfb.26.1657290600095; Fri, 08 Jul 2022 07:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657290600; cv=none; d=google.com; s=arc-20160816; b=KiLgKvLkpUsS7IhUg82+XTnr4Nt9g53mVRft4/Cgmlk1/dvUDg2CCi0GM9w3ggQart Id++pES+YS4R1hXQ838JZ5vQjgfzotrr7SLm1xuVUNo5qNIIrZ0uk0hMlwas2fDokWwx pOsimNz/JqLZX+X5zDsTBunG7E9MSrcB6bxn6JG5tsONjnAcEVtrpB4xqP7fKJ+AfWV4 WRNkd9Vg28FitWIUKIPPGKOfwt4etUECHs+ICfWoFGelhyUlDiOZRHmwqsSlx3XD3s7I 9QRZWgeTU60yOL1OnlD7fJ46QUn4MVtV600s2DNf0fEgmbTcivDQQ9K0qAg8tjJ9uSA/ 1UhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lQrFOKYst8NU9UQKMae04dkIMO8sqembcGuv23Qay+Y=; b=uKbObWvpqi1IcqIUHODuHg0oKuFXr9Kr28GgtjZNswZzuBM5GLeCN135pxQHhY/zpb ZMxVB8mJzeMnjRPrB1w47q6Eo3cPaL4VLefmfFvQTBZvlUwx2FNYKTdOeRE/o7L0eirP XXzs8FyHbUfYgRyquERhUuIXalVbWi88OzjFIRHHY4JjQvqy6Mahkx6vz9orJyy31xnL PvDfjMGBAFyqJXQcQMX4kEGLRlclx5H6jvm/ijq4fesBfj1V53EQG7XFvg0PeAbrzWOZ d2bNGl6ixloHETm0PqF7Em5VhiIRMakEwwHgT6Q2GcThKNlod6X9ceRs9SEbD2K+N9Of llVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Llpr1fGu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cu14-20020a056a00448e00b0051b9771d617si53865505pfb.179.2022.07.08.07.29.25; Fri, 08 Jul 2022 07:30:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Llpr1fGu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S237500AbiGHOUM (ORCPT + 99 others); Fri, 8 Jul 2022 10:20:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236547AbiGHOUL (ORCPT ); Fri, 8 Jul 2022 10:20:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7137D24F2F; Fri, 8 Jul 2022 07:20:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 88B1462831; Fri, 8 Jul 2022 14:20:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E400C341C0; Fri, 8 Jul 2022 14:20:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657290005; bh=bnnMOD+hVTtfzjkgSbWTdqdFyQ813Gs/UhdaiJL80eU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Llpr1fGuCLViKrjtK5Czp26O1u18WarIs8xUC+Vl4YIqkb1sBLEXzFhyGBcz4Ni6B mPWVUPQKxDWiR1FI6lNF/Mn6VF5ltqji9767/q1WmbaZDxOTLeEM2mHuGRICaARAIo 2YAkxWoSYmWTCIJzUCu7YFmQtH2ik8B3BIksJatqsRBOQ7cCusf1d4GabslcbHOFkS Ic0ao6rIOsT8olsJgRZfETY0pwChDGxSFA92nd1BFc9+hQmCtE2IYRrcW0HhgPg5qa EgLsUxH5de88mknx2bnahbiMq9Rp9xGu9F4KOKWqCZdWTv2Dl7uS/ctLVMi2yd9dLP prKblrFK3mmcg== Received: by pali.im (Postfix) id 4BC237D1; Fri, 8 Jul 2022 16:20:01 +0200 (CEST) Date: Fri, 8 Jul 2022 16:20:01 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Greg Kroah-Hartman Cc: Andy Shevchenko , Jiri Slaby , Johan Hovold , Marek =?utf-8?B?QmVow7pu?= , "open list:SERIAL DRIVERS" , Linux Kernel Mailing List Subject: Re: [PATCH 0/3] serial: Fix support for UPF_SPD_* flags Message-ID: <20220708142001.7fciqnfckznlvsa4@pali> References: <20220321163055.4058-1-pali@kernel.org> <20220707084840.jvsstvyx2ul5ltb6@pali> <20220708132621.4v2es73h52aq3izn@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 08 July 2022 15:51:01 Greg Kroah-Hartman wrote: > On Fri, Jul 08, 2022 at 03:26:21PM +0200, Pali Rohár wrote: > > On Friday 08 July 2022 15:07:43 Greg Kroah-Hartman wrote: > > > On Thu, Jul 07, 2022 at 10:48:40AM +0200, Pali Rohár wrote: > > > > On Friday 22 April 2022 16:28:06 Greg Kroah-Hartman wrote: > > > > > On Tue, Mar 22, 2022 at 04:29:08PM +0200, Andy Shevchenko wrote: > > > > > > On Mon, Mar 21, 2022 at 11:07 PM Pali Rohár wrote: > > > > > > > > > > > > > > Support for UPF_SPD_* flags is currently broken in more drivers for two > > > > > > > reasons. First one is that uart_update_timeout() function does not > > > > > > > > > > > > the uart_update_timeout() > > > > > > > > > > > > > calculate timeout for UPF_SPD_CUST flag correctly. Second reason is that > > > > > > > userspace termios structre is modified by most drivers after each > > > > > > > > > > > > structure > > > > > > > > > > > > ... > > > > > > > > > > > > > (error handling was ommited for simplification) > > > > > > > > > > > > omitted > > > > > > > > > > > > > After calling set_active_spd_cust_baud() function SPD custom divisor > > > > > > > should be active and therefore is_spd_cust_active() should return true. > > > > > > > > > > > > > > But it is not active (cfgetospeed does not return B38400) and this patch > > > > > > > series should fix it. I have tested it with 8250 driver. > > > > > > > > > > > > drivers > > > > > > > > > > > > > Originally Johan Hovold reported that there may be issue with these > > > > > > > ASYNC_SPD_FLAGS in email: > > > > > > > https://lore.kernel.org/linux-serial/20211007133146.28949-1-johan@kernel.org/ > > > > > > > > > > > > > > > > > > > > > Johan, Greg, could you please test these patches if there is not any > > > > > > > regression? > > > > > > > > > > > > I'm wondering why we are still supporting this ugly hack? > > > > > > Doesn't BOTHER work for you? > > > > > > > > > > Yes, I too do not want to add more support for these old flags. If they > > > > > have not been working, let's not add support for them as obviously no > > > > > one is using them. Let's try to remove them if at all possible. > > > > > > > > Well, it works partially. For more drivers SET method is working, but > > > > GET method returns incorrect value. If your userspace application is > > > > written in a way that does not retrieve from kernel current settings > > > > then it has big probability that application works. > > > > > > I do not understand, sorry, what do you mean by this? > > > > I mean that SET methods are working, GET methods not. In this case SET > > done via ioctl(TIOCSSERIAL) and GET via ioctl(TIOCGSERIAL). > > > > > And as you are responding to a months-old thread, I am totally lost, and > > > don't even know what the patch here was... > > > > > > > So, do you really want to remove support for these old flags completely? > > > > That would of course break above applications. > > > > > > I'm not saying remove them, I'm saying let us not add any more > > > dependancies on them in order to keep new applications from ever wanting > > > to use them. > > > > Last time you wrote to remove them. Now saying not to remove them. So I > > do not understand you now. > > I'm sorry, I am totally lost. So look what you have wrote? Who is lost here is me. > How about starting over and resubmitting > the changes you want and we can go from there. > > greg k-h What to resubmit? I do not understand you. In case you lost emails or accidentally removed them, you can look at them in archive, not? I hope that you do not want me to copy+paste all existing patches with all your quotes on them which you wrote into new emails.