Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2610637rwr; Fri, 28 Apr 2023 12:57:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4mqQi45Rp9cagdZZgikiyzGWk9zX+xSHt85cotnRCa8WFBZgYqIP4zeRpvY6UcoXXZWWrK X-Received: by 2002:a17:90a:ea12:b0:246:b898:5f54 with SMTP id w18-20020a17090aea1200b00246b8985f54mr6620079pjy.16.1682711829216; Fri, 28 Apr 2023 12:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682711829; cv=none; d=google.com; s=arc-20160816; b=p0wRkDBdAzqwtN1v6VnLUX8195Swv84XTfsqBQlw/LNHpo4XceGbdJt+S4uzczmv5y 8f4DLkrKQ6JaXeujE6mo/pV+/BW27AN03eoxzODy8ltxExc9rc+VSqpyxq4hAUTCAHZi plTVTo1N6/UujTLrukbNz/f1/0IjFlo/wwaEiyBxLbnjOPbcIcBBjN0EoMcxvg4JUnGc 06eic/HARet7uTVM05GvXovczmKSdszHDt4U6J0xbEQUQZRuGrStmqXLX2rPe/GpFwG8 A/0adL3rEz9Qyq0bJeugsTSTs73HI6jk6wRMOxcVEedFxRyHRSMNP+5l2ZLuv58VZf8y qr4w== 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=WHPsFDmDH4e6bcwmm2MedMDFCNz8rSawrQA+SpMotHU=; b=aAPS0QQbltayoZTCJwIWeSAykitz/7SIcEF+T0bl2EiDMjBnTwY8j4O8gCbO5K/tRt Dn8KluQcekRYRW9xgGSCHWBzr92PfaRDRlUAD47gcR9s5DpMZMrwm/7pBfNz1l3AarR6 GD0GTeIXxpecl+zqHagZXfxIj7vJPpaditVJEMRcfWdJD4P9jOgT3n3JSS/oBsA/cThS WGMy8giD1N7ycw7Zunej1s6QUoezOlvG2MeoKu+JSZiI2TNwOYJJkavCyfdOtIGXDXi5 F+VQk2KISqIX+V+2bIMHtr3lr/Y2wSrI+xBFAw6FR99ZRz+xmKDWS/yqaCF3vQUex2OS b55w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=KDCL8CKf; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g192-20020a636bc9000000b0050fad5c0e52si21658094pgc.830.2023.04.28.12.56.55; Fri, 28 Apr 2023 12:57:09 -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=@gmail.com header.s=20221208 header.b=KDCL8CKf; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346609AbjD1TyI (ORCPT + 99 others); Fri, 28 Apr 2023 15:54:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346594AbjD1TyF (ORCPT ); Fri, 28 Apr 2023 15:54:05 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E08442700; Fri, 28 Apr 2023 12:54:04 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1a69f686345so2985595ad.2; Fri, 28 Apr 2023 12:54:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682711644; x=1685303644; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=WHPsFDmDH4e6bcwmm2MedMDFCNz8rSawrQA+SpMotHU=; b=KDCL8CKfthS/VjPfI1tpGJn4Me28ELEGrnITyD5EkHPxaTi0oA4X/r9CxJ37uGsj5M wy2SUO73B+C4toDS0nLcU8X6wEI0PB5kFo5kL7swfwbPpp03DN9bFskal+kgO+jMGkT5 MlkeZ29/XznfVNHqlsQ8AstS46fhn6Ir0IfmQ+R0ttsdgpdZb+feJq7ftZGHmPKNIiVD RJGs+EAg390jfgDUTjiB+UaGydF0lgH8PConBT0xdb7mLDXP6y8wvn/Q+YMl0rmXpGYb 36TiYjCJUbW6m54pHxNzFeClSW8CCKSZ1vvpGYZYZOkY3APTzhUJa7TErD71IgqcWxjO j4pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682711644; x=1685303644; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WHPsFDmDH4e6bcwmm2MedMDFCNz8rSawrQA+SpMotHU=; b=HtjXopTOX5wPTcERJQYaw1lTER7n+IrPXXz7iYN887ETGRTyxOEEFvuX06WxnKng+x 6wTApauPhez0SgTjbZhTSsWSH1nWBhXv+HYRpHVVRcqej53pHy7BwZnM7MG+YKNolgzu WADVa5j2ayzDCH4Gq3WeLliNW1Ut/0QZ1TjUL18v2qB65k8NyydDuEdW4Vjuqr/gMYe9 nBLflEjrkgO32A7T/I7QcIk1KVRJ0LT7RAjBoKJRrnwfv1NHfqyfybNkc7eyhTHsAbAJ SVQ+vP8Y3S7GA/6x00kU2QLgS4y/UIGVtmwDeWnSkNuosZXXcjBIdMBSigQ64Ku62hcf GhvQ== X-Gm-Message-State: AC+VfDwSyMWYiIloUIwetNrhbBnDQz6Hp1sERt4zmAs0Tp37KUzLHIkW PMSJHT7qxsFzBdsmasodo5A= X-Received: by 2002:a17:902:e5d2:b0:1a6:5487:3f97 with SMTP id u18-20020a170902e5d200b001a654873f97mr7349682plf.64.1682711644202; Fri, 28 Apr 2023 12:54:04 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:f36d:d0d9:ea96:1c8f]) by smtp.gmail.com with ESMTPSA id p12-20020a170902b08c00b0019c919bccf8sm13684500plr.86.2023.04.28.12.54.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 12:54:03 -0700 (PDT) Date: Fri, 28 Apr 2023 12:54:00 -0700 From: Dmitry Torokhov To: Siarhei Vishniakou Cc: Biswarup Pal , kernel-team@android.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Call input_set_timestamp for events injected using uinput Message-ID: References: <20230427000152.1407471-1-biswarupp@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FSL_HELO_FAKE, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 Fri, Apr 28, 2023 at 12:52:43PM -0700, Dmitry Torokhov wrote: > Hi, > > On Fri, Apr 28, 2023 at 11:38:36AM -0700, Siarhei Vishniakou wrote: > > Thanks Biswarup! > > Please avoid top posting. > > > > > Just to add a bit of context: we were concerned with breaking the > > existing uinput usages where the caller might be setting an incorrect > > value (since previously, that had no effect). > > So the 10 second guard was added to fall back to the default behaviour > > for those devices. > > What is the benefit of sending this in uinput? It is not much close > to the exact time the hardware generated the event than the timestamp > generated in the input core, so I do not see why it is needed in uinput. Ah, sorry, my apologies, I mis-parsed the code. -- Dmitry